/* r10.8.35.1: text and control layout only, shared by all existing themes.
   Theme colors, shapes, shadows, motion and the primary navigation stay intact. */
html :is(#content,#toolbar,.sheet-modal) :is(button,a.primary-button,a.ghost-button,a.pill-button) {
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  -webkit-hyphens:none!important;
}

/* A row contains complete controls; equal narrow columns must not split labels. */
html :is(.wear-single-row,.wear-controls,.segmented,.tm-nav-grid,.feedback-grid,.timeline-chooser,.suitcase-mode-grid,.share-kind-choice) {
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch;
  gap:var(--space-2,8px)!important;
}
html :is(.wear-single-row,.wear-controls,.segmented,.tm-nav-grid,.feedback-grid,.timeline-chooser,.suitcase-mode-grid,.share-kind-choice) > button,
html .inline-actions > :is(button,a.primary-button,a.ghost-button,a.pill-button) {
  flex:0 1 auto!important;
  width:max-content!important;
  min-width:min-content!important;
  max-width:100%;
  box-sizing:border-box;
  height:auto;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  -webkit-hyphens:none!important;
}
html .inline-actions {flex-wrap:wrap!important}

/* Restore the normal button font and padding instead of the old mobile clamp. */
html .wear-single-row > .compact-choice {
  font-size:13px!important;
  line-height:1.25;
  padding-inline:14px!important;
}
