/* Readability layer: presentation only, same breakpoint as the installed app. */
@media (max-width:700px), (max-width:1100px) and (pointer:coarse) {
  html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  body { font-size:16px!important; line-height:1.5; }
  body main .page { line-height:1.5; }
  body main p, body main td, body main li,
  body main table.dpma-mobile-cards tbody tr td:nth-child(n) {
    font-size:16px!important; line-height:1.5;
  }
  body main small, body main label, body main th, body main .pill, body main .metric span,
  body main .simec-item-learning summary, body main .simec-item-learning label,
  body main .simec-document-match, body main .simec-quote-stock,
  body main table.dpma-mobile-cards tbody td[data-mobile-label]::before {
    font-size:14px!important; line-height:1.5;
  }
  body main button, body main .upload, body main summary, body dialog button {
    font-size:16px!important; line-height:1.4; min-height:44px;
  }
  body main input:not([type=checkbox]):not([type=radio]),
  body main select, body main textarea,
  body dialog input:not([type=checkbox]):not([type=radio]),
  body dialog select, body dialog textarea {
    min-height:44px; font-size:16px!important; line-height:1.5;
  }
  body main .simec-quote-fields, body main .simec-quote-sections,
  body main .form-grid, body main .simec-quote-grid {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body main .simec-quote-fields .wide { grid-column:auto; }
  body main .simec-item-learning, body main .simec-item-learning input {
    min-width:0!important; max-width:100%; width:100%;
  }
  body main table.dpma-mobile-cards tbody tr td:nth-child(n),
  body main table.dpma-mobile-cards tbody td b,
  body main table.dpma-mobile-cards tbody td strong {
    white-space:normal!important; overflow-wrap:anywhere; text-overflow:clip;
  }
  body main table.dpma-mobile-cards tbody td[data-mobile-label]::before {
    letter-spacing:.02em; text-transform:none;
  }
  body main .simec-document-import tr.unavailable td { color:#172d26; }
  html[data-theme="dark"] body main .simec-document-import tr.unavailable td { color:#f2e7e4; }
  body .dpma-mobile-bar small { font-size:14px; line-height:1.4; }
  body .dpma-mobile-tabs button span { font-size:14px!important; line-height:1.4; }
  body main .table-wrap { scroll-margin-bottom:90px; }
  body main input, body main textarea, body main select,
  body main button, body main summary { scroll-margin-block:80px 100px; }
  body main button:focus-visible, body main summary:focus-visible,
  body main input:focus-visible, body main select:focus-visible,
  body main textarea:focus-visible { outline:3px solid #45ad8b; outline-offset:2px; }
  body main #inbox .conversation-item p, body main #inbox .bubble,
  body main #inbox #chatName { font-size:16px!important; line-height:1.5; }
  body main #inbox #chatChannel { font-size:14px!important; }
  body main #inbox .bubble { overflow-wrap:anywhere; }
  /* Let the heading yield space on short landscape viewports, not the composer. */
  body main #inbox .chat-head { flex:0 1 auto; min-height:0; overflow-y:auto; }
  body main #inbox .conversation-search .conversation-new-contact { min-height:44px; }
  body main #proposals .proposal-table table.dpma-mobile-cards .proposal-row,
  body main #proposals .proposal-table table.dpma-mobile-cards .proposal-row>td,
  body main #proposals table.proposal-table.dpma-mobile-cards .proposal-row,
  body main #proposals table.proposal-table.dpma-mobile-cards .proposal-row>td,
  body main #proposals table.dpma-mobile-cards .proposal-row-controls {
    height:auto; min-height:0;
  }
  body main #proposals table.dpma-mobile-cards .proposal-cell-value {
    display:block; max-height:none; height:auto; overflow:visible;
    -webkit-line-clamp:unset; line-clamp:unset;
    white-space:normal; overflow-wrap:anywhere;
  }
}
