/* Role-level composition shared by older screens. Loaded after feature styles.
 * Values live in src/features/typography.css; never shrink text to fit a control.
 */
.button, .rasta-custom-select-trigger {
  font-weight: var(--rc-weight-semibold);
}

.personal-music-product .personal-music-title h2,
.personal-video-product .personal-video-title h2,
.personal-files-product .personal-files-title h2,
.audiobook-library-head .audiobook-title-block h2 {
  font-size: var(--rc-text-page-title);
  font-weight: var(--rc-weight-bold);
  line-height: var(--rc-leading-tight);
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

:is(.profile-v3.is-own, .profile-v3.is-public) .profile-name,
.workspace-settings-card .workspace-settings-name-line > strong {
  font-size: var(--rc-text-identity);
  font-weight: var(--rc-weight-bold);
  line-height: var(--rc-leading-tight);
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  overflow: visible;
}

.profile-v3 .profile-v3-tab-copy strong,
.workspace-settings-nav > button,
.workspace-settings-nav > button > span,
.stream-settings-panel .quality-tab,
.chat-material-tabs button {
  font-size: var(--rc-text-control);
  font-weight: var(--rc-weight-semibold);
  line-height: var(--rc-leading-ui);
}

.profile-mobile-overview strong,
.profile-v3 .profile-setting-copy strong,
.profile-v3 .profile-player-setting strong,
.voice-preflight-head strong,
.voice-preset-option strong,
.voice-setting-toggle-copy strong,
.stream-auto-mode-copy strong,
.stream-priority-copy strong,
.stream-settings-details-copy strong,
.stream-priority-option strong {
  font-size: var(--rc-text-control);
  font-weight: var(--rc-weight-semibold);
  line-height: var(--rc-leading-ui);
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-v3 .setting-row,
.profile-v3 .setting-row > span,
.profile-v3 .profile-player-picker .rasta-custom-select-trigger,
.voice-preflight-action,
.voice-settings-section > header,
.voice-control-label,
.workspace-settings-card .workspace-picker-trigger {
  font-size: var(--rc-text-control);
  font-weight: var(--rc-weight-semibold);
  line-height: var(--rc-leading-ui);
}

.profile-mobile-overview small,
.profile-v3 .profile-setting-copy small,
.voice-preflight-head small,
.voice-preset-option small,
.voice-setting-toggle-copy small,
.stream-auto-mode-copy small,
.stream-priority-copy small,
.stream-settings-details-copy small,
.stream-priority-option small,
.stream-live-status-copy small {
  font-size: var(--rc-text-caption);
  font-weight: var(--rc-weight-regular);
  line-height: var(--rc-leading-reading);
  color: var(--rc-text-secondary);
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
}

.profile-v3 .profile-legal-link {
  color: var(--rc-text-link);
  font-size: var(--rc-text-caption);
  line-height: var(--rc-leading-ui);
  text-underline-offset: 3px;
}
.profile-v3 .profile-legal-link:hover,
.profile-v3 .profile-legal-link:focus-visible { text-decoration: underline; }
.profile-v3 .profile-v3-tab-copy small,
.profile-v3 .profile-email { color: var(--rc-text-secondary); }

.workspace-settings-card .workspace-member-tools {
  grid-template-columns: minmax(0, 1fr) minmax(158px, auto);
}
.workspace-settings-card .workspace-picker-trigger {
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  padding-inline: 10px;
  gap: 7px;
  min-height: 46px;
  height: auto;
}
.workspace-settings-card .workspace-picker-trigger > span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.voice-preset-option, .stream-priority-option, .voice-setting-toggle {
  height: auto;
  min-height: 48px;
}

@media (max-width: 520px) {
  .workspace-settings-card .workspace-member-tools { grid-template-columns: minmax(0, 1fr); }
  .workspace-settings-card .workspace-picker-trigger { width: 100%; }
  .stream-settings-panel .voice-preflight-head { grid-template-columns: 38px minmax(0, 1fr); }
  .stream-settings-panel .voice-preflight-action { grid-column: 1 / -1; min-height: 44px; }
  .profile-v3 .profile-tab-button { min-height: 44px; }
}
