/* The pinned framework renders desktop feedback using vertical-lr. Safari can
   clip that button's intrinsic width. Use ordinary horizontal text sizing. */
button[style*="vertical-lr"] {
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  width: auto;
  min-width: 5.5rem;
  max-width: calc(100vw - 1rem);
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Ordinary workflow answers should not require a six-row box. Keep the full
   existing input capacity; grow with content where supported and allow resize. */
textarea[id^="input-offer-fill-"] {
  height: 3rem;
  min-height: 3rem;
}
@supports (field-sizing: content) {
  textarea[id^="input-offer-fill-"] {
    field-sizing: content;
    height: auto;
  }
}

/* Let the existing horizontal table scroller preserve whole words and amounts. */
.prose-chat table th, .prose-chat table td { overflow-wrap: normal; word-break: normal; }
.prose-chat table th { white-space: nowrap; }
