/* LEVELUP V289 — one generous report note field + real step-4 scrolling.
   Scoped only to the report dialog, no other app textarea is affected. */
section[role="dialog"][aria-labelledby="report-dialog-title"] [class*="_scrollerPhotos_"] {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-padding-bottom: max(26px, env(safe-area-inset-bottom, 0px));
}

section[role="dialog"][aria-labelledby="report-dialog-title"] [class*="_stepPhotos_"] {
  height: auto !important;
  min-height: 100%;
  padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)) !important;
}

section[role="dialog"][aria-labelledby="report-dialog-title"] [class*="_noteField_"] {
  flex: 0 0 auto !important;
  grid-template-rows: auto auto !important;
  min-height: 0 !important;
  gap: 10px;
}

section[role="dialog"][aria-labelledby="report-dialog-title"] [class*="_noteField_"] textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 216px !important;
  min-height: 216px !important;
  max-height: 216px !important;
  resize: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 16px;
  line-height: 1.5;
  scroll-padding-bottom: 18px;
}

section[role="dialog"][aria-labelledby="report-dialog-title"] [class*="_noteExpandBtn_"] {
  display: none !important;
}

@media (max-height: 620px) {
  section[role="dialog"][aria-labelledby="report-dialog-title"] [class*="_noteField_"] textarea {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }
}
