@media screen {
  :where(main, .fg-admin-page, .research-app, aside) :is(h1, h2, h3, h4) {
    text-wrap: balance;
  }

  :where(main, aside, .fg-admin-page, .result-box) p {
    text-wrap: pretty;
  }

  :is(.page-head, .intake-hero) .lead {
    max-inline-size: 78ch;
  }

  :lang(zh) :is(.page-head, .intake-hero) .lead {
    max-inline-size: 48em;
  }

  :where(.fg-admin-page, .admin-section, .collection-source, .dashboard-work,
         .support-card, .service-notice, .help-main, .policy, .detail,
         .result-box, .public-service-panel, .intake-hero, .card,
         [data-platform-page="auspicious"]) p:lang(zh),
  :is(.hint, .instruction, .dashboard-lead, .form-hint, .lead, .footnote):lang(zh) {
    text-wrap: balance;
  }

  .fg-admin-page td :is(.role-badge, .status-active, .status-inactive),
  .fg-admin-page .record-value {
    white-space: nowrap;
    word-break: normal;
  }

  .fg-admin-page td.admin-account-actions {
    min-inline-size: 10rem;
  }

  .admin-account-actions .btn {
    white-space: nowrap;
    margin-block-end: 3px;
  }

  .reading-phrase {
    display: inline-block;
    max-inline-size: 100%;
  }

  .intake-aside li > p,
  .appointment-form .form-group p,
  .study-card > p,
  body[data-page="compare"] main p {
    text-wrap: balance;
  }

  body[data-density="compact"].fg-admin-shell .summary-value.currency-summary {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    text-wrap: balance;
  }

  @media (min-width: 1100px) {
    .summary-box:has(> :nth-child(6):last-child .currency-summary) {
      grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.65fr);
    }
  }

  .step-heading .icon svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .home-journey .example-intro > :first-child,
  .home-journey .closing > :first-child {
    min-width: 0;
  }

  body.journey-page main .example-intro .lead,
  body.journey-page main .closing p {
    max-inline-size: 78ch;
    text-wrap: balance;
  }

  body.journey-page:lang(zh) main .example-intro .lead,
  body.journey-page:lang(zh) main .closing p {
    max-inline-size: 48em;
  }

  .home-journey :is(.step-card p, .example-link .micro, .insight p) {
    text-wrap: balance;
  }
}
