/* Shared screen-only typography for /a and tenant CRM. Semantic tokens also
 * work with legacy size sheets. No print, paint, visibility or layering rules. */
@media screen {
 body {
  --goic-ui-text: var(--goic-pref-body-font-size, 16px);
  --goic-ui-heading: var(--goic-pref-card-h2-font-size, 20px);
  --goic-ui-section: var(--goic-pref-card-h3-font-size, 18px);
  --goic-ui-small: var(--goic-pref-small-font-size, 13px);
  --goic-ui-caption: calc(var(--goic-ui-small) + 2px);
  --goic-ui-field: max(16px, var(--goic-ui-text));
  --goic-ui-control-height: 44px;
 }

 body.mobile-text-size-small {
  --goic-ui-text: var(--goic-pref-body-font-size, 14px);
  --goic-ui-heading: var(--goic-pref-card-h2-font-size, 18px);
  --goic-ui-section: var(--goic-pref-card-h3-font-size, 16px);
  --goic-ui-small: var(--goic-pref-small-font-size, 12px);
 }

 body.mobile-text-size-medium {
  --goic-ui-text: var(--goic-pref-body-font-size, 16px);
  --goic-ui-heading: var(--goic-pref-card-h2-font-size, 20px);
  --goic-ui-section: var(--goic-pref-card-h3-font-size, 18px);
  --goic-ui-small: var(--goic-pref-small-font-size, 13px);
 }

 body.mobile-text-size-large {
  --goic-ui-text: var(--goic-pref-body-font-size, 19px);
  --goic-ui-heading: var(--goic-pref-card-h2-font-size, 25px);
  --goic-ui-section: var(--goic-pref-card-h3-font-size, 23px);
  --goic-ui-small: var(--goic-pref-small-font-size, 16px);
 }

 /* Simple deliberately stays Large even after Small was selected. */
 body.user-simple-mode {
  --goic-ui-text: 24px;
  --goic-ui-heading: 30px;
  --goic-ui-section: 26px;
  --goic-ui-small: 20px;
  --goic-ui-caption: 22px;
  --goic-ui-field: 24px;
  --goic-ui-control-height: 56px;
  --goic-simple-text-scale: 1.1875;
 }

 body .main {
  font-size: var(--goic-ui-text);
 }

 body .main :is(.card:not(:where([data-legal-print-area], .legal-document-paper, .legal-document-reader, .legal-public-paper)) > h2, .card-toolbar h2),
 body .ui-modal .ui-modal__title {
  font-size: var(--goic-ui-heading) !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
 }

 body .main :is(.card:not(:where([data-legal-print-area], .legal-document-paper, .legal-document-reader, .legal-public-paper)) > h3, .card-toolbar h3, .section-head h3, .admin-template-section-head h3, .company-message-section-head h3) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
 }

 body .main .page :is(.card:not(:where([data-legal-print-area], .legal-document-paper, .legal-document-reader, .legal-public-paper)) > p, .card-toolbar p, .section-head p),
 body.user-simple-mode .main .page :is(.card:not(:where([data-legal-print-area], .legal-document-paper, .legal-document-reader, .legal-public-paper)) > p, .card-toolbar p, .section-head p),
 body .ui-modal .ui-modal__panel .ui-modal__description {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.5;
  overflow-wrap: anywhere;
 }

 body .main .page :is(.field, .admin-field) > :is(label, span:not(.geo-street-search-controls)),
 body .ui-modal .ui-order-edit__section > label {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
 }

 body .main .table > thead > tr > th {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
 }

 body .main .table > tbody > tr > td {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
 }

 body .main .btn:not(.icon-btn):not(.btn-icon),
 body .ui-modal .btn:not(.icon-btn):not(.btn-icon) {
  min-height: var(--goic-ui-control-height);
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 /* Preserve native hidden/toggle/icon inputs and textarea/editor heights. */
 body .main .page :is(input, select, textarea):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
 body .ui-modal :is(input, select, textarea):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
 body .order-products-card.is-editing :is(input, select, textarea):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]) {
  font-size: var(--goic-ui-field) !important;
  line-height: 1.35 !important;
 }

 body .main .page :is(input, select):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
 body .ui-modal :is(input, select):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]) {
  min-height: var(--goic-ui-control-height) !important;
 }

 /* Concrete operational text; icon/index/chart/QR artwork stays local. */

 body .main .page .dashboard-page :is(
  .dashboard-jackpot-head p,
  .dashboard-orders-day-copy p,
  .dashboard-metric-footer strong,
  .dashboard-quick-filter-chip > span:not(.dashboard-quick-filter-icon),
  .dashboard-quick-filter-chip strong
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .dashboard-page :is(
  .dashboard-jackpot-eyebrow,
  .dashboard-jackpot-prize > div > span,
  .dashboard-jackpot-scoreboard > div > div > span,
  .dashboard-jackpot-prize small,
  .dashboard-jackpot-scoreboard small,
  .dashboard-jackpot-tier-copy small,
  .dashboard-jackpot-tier em,
  .dashboard-black-jackpot small,
  .dashboard-black-jackpot em,
  .dashboard-orders-day-kicker,
  .dashboard-orders-day-values span,
  .dashboard-orders-day-values small,
  .dashboard-metric-footer small,
  .dashboard-metric-footer em,
  .dashboard-metric-context,
  .dashboard-metric-main .muted,
  .dashboard-month-switcher span,
  .dashboard-recent-orders-title p,
  .dashboard-chart-head p
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .dashboard-page :is(
  .dashboard-jackpot-tier-copy strong,
  .dashboard-chart-head h3,
  .dashboard-recent-orders-title h2
 ) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .dashboard-page :is(
  .dashboard-month-switcher a,
  .dashboard-quick-filter-all
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: var(--goic-ui-control-height);
 }

 body .main .page .dashboard-page .dashboard-jackpot-head h2 {
  font-size: calc(clamp(28px, 4vw, 48px) + var(--goic-ui-heading) - 20px) !important;
  line-height: 1.15;
  overflow-wrap: anywhere;
 }

 body .main .page .dashboard-page .dashboard-orders-day-copy h2 {
  font-size: calc(clamp(21px, 2.4vw, 30px) + var(--goic-ui-heading) - 20px) !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
 }

 body .main .page .orders-page :is(
  .orders-table-alpha36 .order-desktop-status-pill,
  .orders-table-alpha36 .order-desktop-type-label,
  .orders-table-alpha36 .tiny-text,
  .orders-table-alpha36 .order-schedule-chip,
  .order-day-separator-cell,
  .order-day-separator-row td,
  .orders-progressive-status,
  .orders-pagination-info,
  .orders-per-page-form,
  .order-compact-extra span,
  .orders-compact-list .order-compact-client > span,
  .orders-compact-list .order-list-phone,
  .orders-compact-list .order-list-location,
  .orders-compact-list .order-compact-status,
  .order-extended-meta-head span
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .orders-page :is(
  .orders-table-alpha36 td > strong,
  .orders-table-alpha36 td > a,
  .orders-compact-list .order-compact-client > strong,
  .order-list-phone,
  .order-list-location
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .orders-page :is(
  .orders-active-filter-clear,
  .orders-active-filter-chip,
  .orders-quick-filter-chip,
  .orders-toggle-btn,
  .orders-pagination-pages a,
  .orders-per-page-form label
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: var(--goic-ui-control-height);
 }

 body .main .page .orders-page .order-desktop-status-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .new-order-page :is(
  .new-order-mode strong,
  .phone-suggestion-copy strong,
  .phone-suggestion-phone,
  .new-order-address-map-empty strong,
  .new-order-estimate-breakdown > div strong,
  .new-order-marketing-consent strong
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .new-order-page :is(
  .new-order-mode span,
  .new-order-section-head p,
  .phone-suggestion-copy em,
  .phone-suggestion-copy small,
  .new-order-address-map-empty span,
  .new-order-estimate-panel span,
  .new-order-estimate-breakdown > div span,
  .new-order-item-total span,
  .new-order-company-note,
  .new-order-company-status,
  .new-order-marketing-consent small
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .new-order-page .new-order-section-head h3 {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
 }

 body .main .page .new-order-page .new-order-estimate-panel strong {
  font-size: calc(var(--goic-ui-heading) + 8px) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 /* Active driver stops keep their intentionally oversized Simple copy. */

 body:not(.user-simple-mode) .main .page .routes-driver-page.routes-driver-ux-page :is(
  .driver-route-hero p,
  .driver-stop-content p,
  .driver-collect-action strong
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body:not(.user-simple-mode) .main .page .routes-driver-page.routes-driver-ux-page :is(
  .driver-stop-content h3
 ) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .routes-driver-page.routes-driver-ux-page :is(
  .driver-segment-heading,
  .driver-segment-heading small,
  .driver-stop-more > summary,
  .driver-route-segment-edit summary > span,
  .driver-route-segment-edit summary > small,
  .driver-route-segment-hint,
  .driver-route-segment-edit label > span,
  .driver-route-segment-edit label em,
  .route-travel-sheet-vehicles label,
  .route-travel-sheet-close-form label,
  .route-travel-sheet-start-form label,
  .route-travel-km-estimate,
  .driver-stop-result-badge,
  .driver-live-summary span
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .routes-driver-page.routes-driver-ux-page :is(
  .driver-nav-action > span:not([aria-hidden]):not(.driver-action-icon)
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body.user-simple-mode .main .page .routes-driver-page.routes-driver-ux-page :is(
  .driver-stop-content-complete h3,
  .driver-stop-content-complete p
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .routes-driver-page.routes-driver-ux-page .driver-nav-action {
  min-height: var(--goic-ui-control-height);
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .routes-office-page :is(
  .route-stop-head strong,
  .route-stop-client b,
  .route-stop-client a,
  .route-stop-main > p,
  .route-candidate-order-client strong,
  .route-candidate-order-route strong,
  .route-ux-route-facts dd,
  .route-map-fallback p,
  .route-planner-hero p,
  .routes-office-top p
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .routes-office-page :is(
  .route-planner-eyebrow,
  .route-day-metric span,
  .route-day-metric small,
  .route-day-controls small,
  .route-workspace-links a,
  .route-planner-rules > summary,
  .routes-board-head p,
  .route-proposal-kicker,
  .route-proposal-plan-badge,
  .route-proposal-planning-state,
  .route-stop-list-heading span,
  .route-stop-time-stack small,
  .route-stop-time-stack b,
  .route-order-load,
  .route-stop-note,
  .route-candidate-note,
  .route-stop-foot .order-compact-status,
  .route-candidate-order-client > span,
  .route-candidate-order-route > span,
  .route-probably-dry-badge,
  .route-ux-route-facts dt,
  .route-ux-fleet > summary small,
  .route-planner-help,
  .route-bulk-capacity-warning,
  .route-candidate-limit-warning,
  .route-generation-notice
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .routes-office-page :is(
  .routes-board-head h3,
  .routes-card-group-head h4,
  .route-proposal-link strong,
  .route-stop-list-heading strong,
  .route-candidate-group-title strong,
  .route-map-fallback strong
 ) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .routes-office-page :is(
  .route-ux-menu > summary,
  .route-ux-fleet > summary,
  .route-ux-selected-summary > summary
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: var(--goic-ui-control-height);
 }

 body :is(.routes-office-page, .routes-map-focus-layer) :is(
  .route-map-summary,
  .route-map-estimates span,
  .route-map-focus-hint
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body :is(.routes-office-page, .routes-map-focus-layer) :is(
  .route-map-estimates strong
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .routes-map-focus-layer :is(
  .route-map-toolbar-actions .btn
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: var(--goic-ui-control-height);
 }

 /* Workflow: real descriptions/rules/scripts, not diagram icon/index spans. */

 body .main .page .production-workflow-page :is(
  .production-workflow-hero > div > p,
  .production-workflow-selector-button strong,
  .production-workflow-notice p,
  .production-workflow-step-heading strong,
  .production-workflow-inspector-description,
  .production-workflow-rule strong,
  .production-workflow-board-footer strong,
  .production-workflow-library-grid strong,
  .production-active-rule-copy strong,
  .production-active-rule-list li,
  .production-dormant-rules-grid strong,
  .production-script-block strong,
  .production-workflow-demo-toggle strong,
  .production-script-preview > header strong
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .production-workflow-page :is(
  .production-workflow-kicker,
  .production-workflow-board-head > div:first-child > span,
  .production-workflow-library header > div > span,
  .production-workflow-hero-badges span,
  .production-workflow-legend span,
  .production-workflow-summary span,
  .production-workflow-summary small,
  .production-workflow-selector-button small,
  .production-workflow-selector-button > b,
  .production-workflow-board-head p,
  .production-workflow-library header p,
  .production-workflow-step-heading small,
  .production-workflow-step-branches em,
  .production-workflow-board-footer small,
  .production-workflow-inspector-head small,
  .production-workflow-inspector-head p,
  .production-workflow-rule small,
  .production-workflow-demo-controls > span,
  .production-workflow-demo-toggle small,
  .production-workflow-save-note,
  .production-workflow-library header > b,
  .production-workflow-library-grid small,
  .production-active-rules-head p,
  .production-active-rules-summary span,
  .production-active-rules-summary small,
  .production-active-rule-copy em,
  .production-active-rule-copy small,
  .production-active-rule-detail > header > div > span,
  .production-active-rule-detail > header p,
  .production-active-rule-detail > header > b,
  .production-active-rule-list > span,
  .production-active-rule-detail > footer p,
  .production-active-rules-foot p,
  .production-dormant-rules > summary small,
  .production-dormant-rules-grid small,
  .production-script-studio-head p,
  .production-script-studio-badges span,
  .production-script-block small,
  .production-script-field > span,
  .production-script-row-key,
  .production-script-block-note,
  .production-script-preview > header span,
  .production-script-preview > header > b,
  .production-script-preview-help,
  .production-script-feedback
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .production-workflow-page :is(
  .production-workflow-board-head h3,
  .production-workflow-library h3,
  .production-workflow-inspector-head h3,
  .production-active-rules-head h3,
  .production-active-rule-detail h4,
  .production-dormant-rules > summary strong,
  .production-script-studio-head h3
 ) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .production-workflow-page :is(
  .production-active-rule-script,
  .production-dormant-rules-grid pre,
  .production-script-preview-help code
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.6;
 }

 body .main .page .production-workflow-page :is(
  .production-script-add,
  .production-script-preview-actions .btn,
  .production-script-reset
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: var(--goic-ui-control-height);
 }

 body .main .page .production-workflow-page .production-workflow-hero h2 {
  font-size: calc(clamp(30px, 3.5vw, 46px) + var(--goic-ui-heading) - 20px) !important;
  line-height: 1.15;
  overflow-wrap: anywhere;
 }

 @media (max-width: 640px) {
  body .main .page .production-workflow-page .production-workflow-hero h2 {
   font-size: calc(var(--goic-ui-heading) + 9px) !important;
  }
 }

 /* Dashboard telemetry labels are copy, not the fixed SVG/axis geometry. */
 body .main .page .drying-room-card :is(
  .drying-room-eyebrow, .drying-room-sync strong, .drying-room-sync time,
  .drying-room-sensor-label, .drying-room-sensor-note,
  .drying-room-mode-timeline figcaption, .drying-room-mode-current,
  .drying-room-climate-legend, .drying-room-mode-legend, .drying-room-mode-empty,
  .drying-room-lot span, .drying-room-analysis-detail, .drying-room-energy-window,
  .drying-room-energy-stale-note, .drying-room-device-note,
  .drying-room-footer, .drying-room-refresh-note, .drying-room-source-details summary,
  .drying-room-chart-times, .drying-room-dew-chart > small,
  .drying-room-history-table :is(caption, th, td),
  .drying-room-source-details :is(dt, dd), .drying-room-answer-context,
  .drying-room-answer-status
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .drying-room-card :is(
  .drying-room-source-details > p, .drying-room-alert,
  .drying-room-answer legend, .drying-room-answer-choice > span,
  .drying-room-answer-count > label, .drying-room-answer-error,
  .drying-room-device h3, .drying-room-device-state
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .drying-room-card :is(.drying-room-heading h2, .drying-room-analysis-panel h3) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
 }

 body .main .page .drying-room-card .drying-room-answer-save {
  font-size: var(--goic-ui-text) !important;
  min-height: var(--goic-ui-control-height);
  line-height: 1.35;
  white-space: normal;
 }

 /* Queue/inbox role names are shared by the two supported CRM versions. */
 body .main .page .message-queue-page :is(
  .message-queue-hero p:not(.message-queue-eyebrow),
  .message-queue-section-head p, .message-queue-workspace-head p:not(.message-queue-eyebrow),
  .message-queue-manual-card ol, .message-queue-manual-note p,
  .message-queue-selected-order strong, .message-queue-item-title-line strong,
  .message-queue-message-preview, .message-queue-dispatching, .message-queue-phone-missing,
  .message-queue-history-title-line strong, .message-queue-history-empty,
  .message-queue-notice, .message-delivery-mode-copy strong,
  .message-delivery-mode-options b, .message-api-config-trusted strong,
  .pickup-reminder-cell > strong, .pickup-reminder-cell.is-order a,
  .pickup-reminders-empty strong, .pickup-reminders-enabled-toggle b,
  .pickup-reminders-mode b
 ) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.45 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .message-queue-page :is(
  .message-queue-eyebrow, .message-queue-kicker, .message-queue-hero-metrics span,
  .message-delivery-mode-copy small, .message-delivery-mode-options small,
  .message-delivery-mode-save small, .message-delivery-mode-readonly,
  .message-api-settings-card p, .message-api-state, .message-api-config-trusted > span,
  .message-api-config-trusted small, .message-api-settings-form label > span,
  .message-api-settings-form label small, .message-api-lock-note,
  .message-queue-field > span, .message-queue-template-fields label > span,
  .message-queue-field small, .message-queue-template-fields small,
  .message-queue-selected-order > span, .message-queue-selected-order small,
  .message-queue-create-footer small, .message-queue-template-form footer small,
  .message-queue-total-badge, .message-queue-state, .message-queue-priority,
  .message-queue-channel, .message-queue-item-meta, .message-queue-item-time,
  .message-queue-image-preview span, .message-queue-message-label,
  .message-queue-send-control small, .message-queue-delivery-error,
  .message-queue-history summary small, .message-queue-history-head small,
  .message-queue-history summary em, .message-queue-history-head em,
  .message-queue-history-status, .message-queue-history-copy > p,
  .message-queue-history-meta, .message-queue-history-pagination > small,
  .message-queue-token-list, .message-queue-token-list code, .message-queue-token-list a,
  .message-queue-template-card summary small, .message-queue-template-card summary em,
  .message-queue-template-upload-quick small, .pickup-reminders-head-copy p,
  .pickup-reminders-count span, .pickup-reminders-settings > summary small,
  .pickup-reminders-enabled-toggle small, .pickup-reminders-mode legend,
  .pickup-reminders-mode small, .pickup-reminders-rules label > span,
  .pickup-reminders-rules small, .pickup-reminders-manual-note p,
  .pickup-reminders-settings-form > footer > small, .pickup-reminders-readonly,
  .pickup-reminders-empty small, .pickup-reminders-table-head,
  .pickup-reminder-cell, .pickup-reminder-cell > small,
  .pickup-reminder-state, .pickup-reminders-pagination > small,
  .pickup-reminders-pagination > div, .pickup-reminder-mobile-label
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .message-queue-page :is(
  .message-api-settings-card h3, .message-queue-section-head h3,
  .message-queue-manual-card h3, .message-queue-workspace-head h3,
  .message-queue-history summary b, .message-queue-history-head b,
  .message-queue-template-card summary b, .pickup-reminders-head-copy h3,
  .pickup-reminders-settings > summary b
 ) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .message-queue-page .message-queue-hero h2 {
  font-size: calc(clamp(22.72px, 2.3vw, 34.4px) + var(--goic-ui-heading) - 20px) !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
 }

 body .main .page .message-queue-page :is(
  .message-api-retest, .message-queue-skip-button,
  .message-queue-history-preview:not(.pickup-reminder-compact-actions > summary),
  .pickup-reminder-contacted
 ) {
  font-size: var(--goic-ui-caption) !important;
  min-height: var(--goic-ui-control-height);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 /* Preserve line breaks in message payloads; dates/states are captions. */
 body .ui-modal .message-queue-preview-bubble pre,
 body .ui-modal .message-queue-preview-details dd {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
 }

 body .ui-modal :is(.message-queue-preview-status-line, .message-queue-preview-status, .message-queue-preview-details dt) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .whatsapp-inbox-list :is(.whatsapp-inbox-title strong, .whatsapp-inbox-preview) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
 }

 body .main .page .whatsapp-inbox-list :is(.whatsapp-inbox-title time, .whatsapp-inbox-delivery, .whatsapp-inbox-unread-count) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
 }

 body .main .page .whatsapp-inbox-list .whatsapp-inbox-unread-count {
  height: auto;
  min-height: calc(var(--goic-ui-caption) * 1.4);
  min-width: var(--goic-ui-caption);
 }

 body .ui-modal.whatsapp-conversation-modal :is(.whatsapp-conversation-text, .whatsapp-conversation-quote p, .whatsapp-conversation-state) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.5;
  overflow-wrap: anywhere;
 }

 body .ui-modal.whatsapp-conversation-modal .whatsapp-conversation-head h2 {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.25;
 }

 body .ui-modal.whatsapp-conversation-modal :is(
  .whatsapp-conversation-contact > span:last-child,
  .whatsapp-conversation-anchor-preview > p, .whatsapp-conversation-day,
  .whatsapp-conversation-meta, .whatsapp-conversation-read-error,
  .whatsapp-conversation-quote strong, .whatsapp-conversation-footer p
 ) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
 }

 body .ui-modal.whatsapp-conversation-modal :is(
  .whatsapp-conversation-older button, .whatsapp-conversation-state button,
  .whatsapp-conversation-read-button, .whatsapp-conversation-media,
  .whatsapp-conversation-reply
 ) {
  font-size: var(--goic-ui-text) !important;
  min-height: var(--goic-ui-control-height);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 @media (min-width: 641px) {
  body .ui-modal.whatsapp-conversation-modal .whatsapp-conversation-order {
   font-size: var(--goic-ui-caption) !important;
   line-height: 1.35;
  }
 }

 @media (max-width: 640px) {
  /* The source uses font:0 on the anchor and a short-label pseudo-element. */
  body .ui-modal.whatsapp-conversation-modal .whatsapp-conversation-order::after {
   font-size: var(--goic-ui-caption) !important;
   line-height: 1.35;
  }
 }

 body .main .page .message-delivery-mode-status :is(.message-delivery-mode-status__copy strong, .message-delivery-mode-status__automation-copy strong) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .message-delivery-mode-status :is(.message-delivery-mode-status__copy small, .message-delivery-mode-status__copy em, .message-delivery-mode-status__automation-copy small),
 body .main .page :is(.message-delivery-mode-upgrade, .message-delivery-mode-locked-note) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page .message-delivery-mode-status .message-delivery-mode-status__configure {
  font-size: var(--goic-ui-caption) !important;
  min-height: var(--goic-ui-control-height);
  line-height: 1.35;
  white-space: normal;
 }

 /* Header actions stay explicitly compact; only notification copy scales. */
 body .topbar .notification-menu .notification-item strong,
 body .header-legal-reminder-toast .header-legal-reminder-copy strong {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .topbar .notification-menu :is(.notification-item small, .notification-dismiss-status),
 body .header-legal-reminder-toast :is(.header-legal-reminder-copy small, em) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 /* Tools are standalone documents; server passes the same body preferences. */
 body.scanner-page :is(.scanner-title-block strong, .scanner-card-title strong),
 body.scanner-page.legacy-ai-scanner .legacy-ai-thinking strong {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
 }

 body.scanner-page :is(.scanner-title-block small, .scanner-card-title small, .scanner-live-badge, .scanner-status, .scanner-zoom-wrap, .scanner-manual > label),
 body.scanner-page.legacy-ai-scanner :is(.legacy-ai-thinking small, .legacy-ai-result > small, .legacy-ai-assign label, .legacy-ai-assign small) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body.scanner-page :is(.scanner-alert, .scanner-back > span:not([aria-hidden])),
 body.scanner-page.legacy-ai-scanner :is(.legacy-ai-error, .legacy-ai-assign > strong) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
 }

 body.scanner-page :is(.scanner-camera-row select, .scanner-manual-row .input),
 body.scanner-page.legacy-ai-scanner .legacy-ai-assign-row .input {
  font-size: var(--goic-ui-field) !important;
  line-height: 1.35;
  min-height: var(--goic-ui-control-height);
 }

 body.scanner-page :is(.scanner-manual-row .btn, .legacy-ai-read-btn, .legacy-ai-result-actions .btn) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .goic-modal-card-scanner .goic-modal-head strong {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
 }

 body .goic-modal-card-scanner :is(.goic-modal-head small, .goic-modal-fallback, .scanner-modal-mode-bar .orders-toggle-btn) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 /* Trial-only sales copy and onboarding helpers are not invoice/QR payloads. */
 body .main .page .order-transport-status-upsell small,
 body .ui-modal .order-flow-plan-lock-copy,
 body .first-order-guide :is(.first-order-guide__eyebrow, .first-order-guide__steps li, .first-order-guide__hint, .first-order-guide__later) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .page :is(.order-transport-status-upsell strong, .order-transport-status-upsell-cta, .demo-order-trial-toast strong, .demo-order-trial-toast > span),
 body .first-order-guide :is(.first-order-guide__card > p, .first-order-guide__contact-form label) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .first-order-guide .first-order-guide__card h2 {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
 }

 body .first-order-guide :is(.first-order-guide__card .btn, .first-order-guide__resume, .first-order-guide__later) {
  font-size: var(--goic-ui-text) !important;
  min-height: var(--goic-ui-control-height);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .first-order-guide .first-order-guide__contact-form .input {
  font-size: var(--goic-ui-field) !important;
  line-height: 1.35;
 }

 body .main .page .routes-office-page .route-candidate-order-summary .order-compact-status {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 /* Two production columns leave only 44px for long rule text on phones. */
 @media (max-width: 600px) {
  body .main .page .production-workflow-page .production-active-rules-grid {
   grid-template-columns: minmax(0, 1fr);
  }
 }

 /* Login is outside MAIN and uses the same default Medium contract. */
 body .login-wrap .login-card-head h2 {
  font-size: calc(var(--goic-ui-heading) + 8px) !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
 }

 body .login-wrap :is(.login-card-head p, .login-security-points > span, .passkey-login-btn strong, .passkey-login-status, .login-card > .pill) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .login-wrap :is(.login-kicker, .passkey-login-btn small, .login-divider > span, .login-form-classic .field > label) {
  font-size: var(--goic-ui-caption) !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .login-wrap .login-form-classic input:not([type="hidden"]) {
  font-size: var(--goic-ui-field) !important;
  line-height: 1.35;
  min-height: var(--goic-ui-control-height);
 }

 body .login-wrap :is(.login-submit-btn, .passkey-login-btn) {
  font-size: var(--goic-ui-text) !important;
  min-height: var(--goic-ui-control-height);
  line-height: 1.35;
  white-space: normal;
 }

 /* Legacy tenant order copy uses the proven /a roles, without its layout,
  * print, trial design or measurement-field geometry. Existing Simple
  * headline overrides keep their original higher specificity. */
 @media (max-width: 600px) {
  body.user-simple-mode .order-view-page-v2 .order-products-card:not(.is-editing) .product-main-line {
   grid-template-columns: minmax(0, 1fr);
  }
 }

 body .main .order-view-page-v2 .order-message-history-title-line {
  flex-wrap: wrap;
 }

 body .main .order-view-page-v2 .order-message-history-title-line > strong {
  flex: 1 1 12rem;
  min-width: 0;
 }

 @media (max-width: 760px) {
  body:not(.user-simple-mode) .order-view-page-v2 .order-products-card:not(.is-editing) .product-main-line {
   display: flex !important;
   flex-wrap: wrap;
  }

  body:not(.user-simple-mode) .order-view-page-v2 .order-products-card:not(.is-editing) .product-main-line > .product-name {
   flex: 1 1 12rem;
   min-width: 0;
  }

  body:not(.user-simple-mode) .order-view-page-v2 .order-products-card:not(.is-editing) .product-main-line > .product-chip {
   flex: 0 0 auto;
  }
 }
 body .order-view-page-v2:not([data-order-design-trial]) :is(.command-status-panel .command-panel-kicker, .command-money-panel .command-money-kicker) {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.25 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .order-view-page-v2:not([data-order-design-trial]) .command-status-panel > strong {
  font-size: calc(var(--goic-ui-heading) + 9px) !important;
  line-height: 1.2 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .order-view-page-v2:not([data-order-design-trial]) .command-money-panel.payment-summary-card .command-money-amount:not(.is-pending-copy) {
  font-size: calc(var(--goic-ui-heading) + 6px) !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
 }

 body .order-view-page-v2:not([data-order-design-trial]) .command-money-panel.payment-summary-card .command-money-amount.is-pending-copy {
  font-size: calc(var(--goic-ui-text) + 3px) !important;
  line-height: 1.35 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .order-view-page-v2:not([data-order-design-trial]) .command-money-panel.payment-summary-card .command-money-details {
  font-size: calc(var(--goic-ui-small, 13px) + 2px) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .order-view-page-v2 :is(.order-section-head h3, .products-section-title h3),
 body .main .order-view-page-v2 .command-estimate-panel > strong {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.25 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .order-view-page-v2 :is(.command-panel-head strong, .command-client-panel strong, .command-client-panel a, .command-notes-panel strong, .command-estimate-breakdown > div strong, .order-message-history-title-line strong, .order-message-history-empty strong, .history-note-text) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .main .order-view-page-v2 :is(.order-section-head > .muted, .products-section-title > .muted, .command-panel-head > span, .command-label, .command-estimate-breakdown > div span, .order-message-history-copy > p, .order-message-history-status, .order-message-history-meta, .order-message-history-preview, .order-message-history-empty small, .history-table th, .history-user-inline, .history-note-label, .history-date-value, .history-status-pill) {
  font-size: calc(var(--goic-ui-small, 13px) + 2px) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body:not(.user-simple-mode) .order-view-page-v2 .order-products-card:not(.is-editing) :is(.product-name, .product-dim-text) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
 }

 body:not(.user-simple-mode) .order-view-page-v2 .order-products-card:not(.is-editing) .product-total-inline {
  font-size: var(--goic-ui-heading) !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
 }

 body .ui-modal--message-history :is(.order-message-preview-bubble pre, .order-message-preview-details dd) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
 }

 body .ui-modal--message-history :is(.order-message-preview-status-line, .order-message-preview-status, .order-message-preview-details dt) {
  font-size: calc(var(--goic-ui-small, 13px) + 2px) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .ui-modal--online-payment .online-payment-modal__amount-summary strong {
  font-size: calc(var(--goic-ui-heading) + 5px) !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
 }

 body .ui-modal--online-payment :is(.online-payment-modal__fields label, .online-payment-modal__delivery strong) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .ui-modal--online-payment :is(.online-payment-modal__amount-summary span, .online-payment-modal__fields label > small, .online-payment-modal__delivery small, .online-payment-modal__replace-note) {
  font-size: calc(var(--goic-ui-small, 13px) + 2px) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body[class*="mobile-text-size-"] .order-products-card :is(.products-tool-copy > strong, .products-tools-switcher-copy > strong, .order-classic-labels-inline > header strong, .order-classic-label-codes b) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body[class*="mobile-text-size-"] .order-products-card :is(.products-tools-kicker, .products-tool-copy > small, .products-tools-switcher-copy > small, .products-tool-state, .products-sqm-total, .order-classic-labels-inline > header > div > span, .order-classic-labels-inline > header small, .order-classic-label-codes small, .order-classic-label-form label > span) {
  font-size: calc(var(--goic-ui-small, 13px) + 2px) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .ui-modal--handover-receipt .handover-receipt-document__identity h3 {
  font-size: var(--goic-ui-heading) !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
 }

 body .ui-modal--handover-receipt :is(.handover-receipt-document__company strong, .handover-receipt-document__company span, .handover-receipt-document__identity p, .handover-receipt-item strong, .handover-receipt-item > b, .handover-receipt-legal-proof strong, .handover-receipt-updates legend, .handover-receipt-updates label b, .handover-signature > header strong, .handover-receipt-latest strong, .handover-receipt-blocker strong) {
  font-size: var(--goic-ui-text) !important;
  line-height: 1.35 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 body .ui-modal--handover-receipt .handover-receipt-items > footer strong {
  font-size: var(--goic-ui-section) !important;
  line-height: 1.3 !important;
 }

 body .ui-modal--handover-receipt :is(.handover-receipt-document__identity > span, .handover-receipt-document__company small, .handover-receipt-items__head, .handover-receipt-item__position, .handover-receipt-item small, .handover-receipt-items > footer span, .handover-receipt-risk-note p, .handover-receipt-legal-proof small, .handover-receipt-legal-proof a, .handover-receipt-updates > p, .handover-receipt-updates label small, .handover-signature > header > div > span, .handover-signature > small, .handover-receipt-latest small, .handover-receipt-blocker p, .handover-receipt-draft-note p, .handover-receipt-feedback) {
  font-size: calc(var(--goic-ui-small, 13px) + 2px) !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
 }

 /* Mobile payment cards originally reserved fixed 17/19px text tracks.
  * Keep visible fields and the already-hidden source column unchanged. */
 @media (max-width: 820px) {
  body .main .page .payments-history .payments-table tr {
   grid-template-rows: auto auto;
  }
 }

 @media (max-width: 600px) {
  body.user-simple-mode .main .page .payments-history .payments-table tr {
   grid-template-columns: minmax(0, 1fr);
  }

  body.user-simple-mode .main .page .payments-history .payments-table td:nth-child(-n+4),
  body.user-simple-mode .main .page .payments-history .payments-table td.is-amount {
   grid-column: 1;
   grid-row: auto;
  }

  body.user-simple-mode .main .page .payments-history .payments-table td.is-amount {
   text-align: left;
  }
 }

/* Administration/report role map. The common stylesheet wraps this in @media screen.
 * Text roles only: no document payload, chart coordinate, price total or icon sizing. */
body .main .page :is(.company-settings-page, .account-settings-page, .users-settings-page, .status-admin-layout, .legal-center-page, .legal-my-page) .admin-template-hero-copy h2,
body .main .page .catalog-settings-page .catalog-settings-hero-copy h2,
body .main .page .transport-zones-page .transport-zones-hero h2,
body[class*="mobile-text-size-"] .main .page .payments-hero-copy h2 {
 font-size: calc(var(--goic-ui-heading) + 14px) !important;
 line-height: 1.15 !important;
 min-width: 0;
 white-space: normal;
 overflow-wrap: anywhere;
}

body .main .page :is(.company-settings-page, .account-settings-page, .users-settings-page, .status-admin-layout) :is(
 .admin-template-section-head h3, .admin-editor-head > div > strong,
 .admin-permission-card-head strong, .company-related-settings > header strong,
 .third-party-integrations__head strong, .catalog-settings-section-head h3,
 .catalog-editor-card-head > div > strong, .status-admin-group-head h3,
 .status-editor-section > header strong
),
body .main .page .transport-zones-page :is(.transport-zones-section-head h3, .transport-zone-editor-head h3),
body[class*="mobile-text-size-"] .main .page :is(.payments-section-head h3, .payments-vat-card h3, .payments-month-close h3),
body .main .page .statistics-page :is(.statistics-charts-head-copy h3, .statistics-metric-chart-title h4, .statistics-time-savings-copy h3),
body .main .page .suspicious-orders-page :is(.suspicious-order-identity h3, .suspicious-orders-empty h3),
body .main .page :is(.subscription-page, .subscription-locked-page) :is(.subscription-section-head h2, .subscription-extra-card h2, .subscription-plan-head h3),
body .main .page .admin-template-page.legal-center-page :is(.legal-register-card > summary strong, .legal-monitoring-config > summary strong, .legal-decision-card__head strong, .legal-standard-onboarding__head h3),
body :is(.ui-modal, .status-delete-modal, .status-icon-picker-modal) :is(.status-delete-copy h3, #status-icon-picker-title) {
 font-size: var(--goic-ui-section) !important;
 line-height: 1.25 !important;
 min-width: 0;
 white-space: normal;
 overflow-wrap: anywhere;
}

body .main .page :is(.company-settings-page, .account-settings-page, .users-settings-page, .status-admin-layout) :is(
 .admin-user-identity strong, .admin-permission-group > summary > strong,
 .account-permission-row strong, .account-passkey-content > p, .account-passkey-empty strong,
 .goic-toggle-copy > strong, .account-size-head > strong,
 .account-toggle-row > span:not(.account-toggle-ui) > strong,
 .admin-create-panel > summary strong, .admin-inline-create > summary,
 .company-integration-card header strong, .company-integration-card > p,
 .company-related-settings-grid strong, .company-integration-fields-copy strong,
 .company-registry-summary strong, .company-registry-onrc > div:first-child strong,
 .third-party-integration__title strong, .third-party-integration__managed-copy p,
 .third-party-integration__customer-intro p, .third-party-integration__setup li p,
 .third-party-integration__active-note, .third-party-integration__unavailable,
 .catalog-editor-grid > label > span:first-child, .catalog-settings-section-head p,
 .status-admin-row-main strong, .status-editor-form label > span:first-child,
 .print-agent-summary-copy strong, .print-agent-details-meta dd,
 .print-agent-manual-review-row strong, .print-agent-printer-settings > summary strong,
 .users-admin-table td
),
body .main .page :is(.admin-template-page, .company-settings-page, .catalog-settings-page) :is(
 .admin-template-hero-copy > p:not(.eyebrow),
 .admin-template-tab > span:nth-child(2) b, .company-settings-tab-label
),
body .main .page .transport-zones-page :is(
 .transport-zone-field > span, .transport-zone-global-copy strong,
 .transport-zone-editor-head p, .transport-zone-ai-proposal strong,
 .transport-zone-safe-note strong, .transport-zone-history-fee b
),
body[class*="mobile-text-size-"] .main .page :is(
 .payments-hero-copy > p, .payments-branch-required strong,
 .payments-accounting-checklist header strong, .payments-vat-card > p,
 .payments-vat-card dd, .payments-table td, .payments-cash-ledger td,
 .payments-z-reports > header strong
),
body .main .page .statistics-page :is(
 .statistics-tabs a, .statistics-periods a, .statistics-custom-range label > span,
 .statistics-charts-head-copy p, .statistics-time-savings-details > p,
 .statistics-time-savings-events article strong
),
body .main .page .suspicious-orders-page :is(
 .suspicious-order-number, .suspicious-reason-title > strong,
 .suspicious-reason-product, .suspicious-reason-detail,
 .suspicious-reason-values dd, .suspicious-orders-empty p
),
body .main .page :is(.subscription-page, .subscription-locked-page) :is(
 .subscription-plan-head p, .subscription-plan-features li,
 .subscription-plan-capacity b, .subscription-plan-cta, .subscription-extra-cta,
 .subscription-lock-upgrade, .subscription-inline-action, .subscription-lock-back,
 .subscription-comparison-table thead th > span,
 .subscription-comparison-table tbody th > span, .subscription-time-event b,
 .subscription-printer-rates strong, .subscription-lock-benefits li span
),
body .main .page .admin-template-page.legal-center-page :is(
 .legal-scope-warning p, .legal-blueprint-preflight p,
 .legal-enforcement-card__copy p, .legal-integrity-alert p,
 .legal-provider-separation-note p, .legal-standard-onboarding__head p,
 .legal-company-derived-grid strong, .legal-document-admin-copy strong,
 .legal-provider-summary__copy strong, .legal-blueprint-metadata strong,
 .legal-standard-onboarding__identity strong, .legal-standard-onboarding__active-copy strong,
 .legal-decision-card__facts strong, .legal-register-form label,
 .legal-evidence-table td, .legal-cookie-config-options b
),
body .main .page .admin-template-page.legal-my-page :is(.legal-my-attention p, .legal-my-document-copy p, .legal-my-document-copy strong),
body :is(.ui-modal, .status-delete-modal, .status-icon-picker-modal) :is(
 .status-delete-copy p, .status-delete-form label,
 .status-icon-picker-result strong, .status-icon-picker-empty strong,
 .legal-confirmation-check strong, .legal-capacity-choice
) {
 font-size: var(--goic-ui-text) !important;
 line-height: 1.4 !important;
 min-width: 0;
 white-space: normal;
 overflow-wrap: anywhere;
}

body .main .page :is(.company-settings-page, .account-settings-page, .users-settings-page, .status-admin-layout) :is(
 .admin-editor-head small, .admin-permission-card-head small,
 .admin-field > small, .admin-field-grid > label > small,
 .goic-toggle-copy small, .account-size-head small,
 .account-toggle-row > span:not(.account-toggle-ui) > small,
 .account-passkey-row small,
 .admin-user-identity small, .users-admin-table th, .admin-permission-group > summary > em,
 .admin-permission-group label small, .permission-source, .admin-count-badge,
 .admin-save-bar > span, .account-card-state, .account-security-hint,
 .account-permission-row > b, .account-permission-row small,
 .account-passkey-empty small, .account-force-password-alert small,
 .company-integration-overall, .company-integration-card header em,
 .company-integration-card small, .company-related-settings-grid small,
 .company-integration-lock, .company-registry-state, .company-registry-cui-field > span,
 .company-registry-summary span, .company-registry-flags span,
 .company-registry-explanation, .company-integration-fields-copy span,
 .company-settings-save-guide small, .third-party-integration__title em,
 .third-party-integration__title small, .third-party-integration__setup li small,
 .third-party-integration__credentials label > small, .third-party-integration__replace label > small,
 .third-party-integration__managed-copy em, .third-party-integration__connected em,
 .third-party-integration__replace summary, .geo-catalog-card__note,
 .geo-catalog-card__current, .catalog-editor-card-head small,
 .catalog-settings-metrics span, .catalog-settings-kicker, .catalog-active-badge,
 .catalog-editor-card-footer > span, .catalog-value-input em,
 .status-admin-row-main small, .status-admin-usage-line,
 .print-agent-summary-state, .print-agent-last-seen, .print-agent-details-meta dt,
 .print-agent-printer-list > span, .print-agent-printer-list b
),
body .main .page :is(.admin-template-page, .company-settings-page, .catalog-settings-page) :is(
 .admin-template-hero-context-label,
 .admin-template-hero-context-link > span:not([aria-hidden]),
 .admin-template-hero-stat > span, .admin-template-metrics > div > span,
 .admin-template-tab > span:nth-child(2) small, .admin-template-tab > em,
 .admin-template-hero-copy > .eyebrow
),
body .main .page .transport-zones-page :is(
 .transport-zones-kicker, .transport-zone-state, .transport-zone-rule-meta,
 .transport-zone-fallback-badge, .transport-zone-global-reference span,
 .transport-zone-map-caption, .transport-zone-map-proposal-badge,
 .transport-zone-field small, .transport-zone-history-row small,
 .transport-zone-step-title small, .transport-zone-ai-proposal small,
 .transport-zone-safe-note small
),
body[class*="mobile-text-size-"] .main .page :is(
 .payments-branch-required span, .payments-kicker, .payments-subset-badge,
 .payments-balance-card em, .payments-scope.card label > span,
 .payments-cash-actions label > span, .payments-z-reports label > span,
 .payments-cash-actions summary, .payments-z-reports summary,
 .payments-filters label > span, .payments-legal-note,
 .payments-vat-card dt, .payments-vat-card > header em,
 .payments-cash-metrics span, .payments-table th, .payments-cash-ledger th,
 .payments-table td small, .payments-cash-ledger td small,
 .payments-event, .payments-source, .payments-z-reports > header > span,
 .payments-z-reports > header small, .payments-z-list b, .payments-z-list em,
 .payments-z-list small, .payments-package-scope, .payments-package-grid em,
 .payments-accounting-checklist li, .payments-package-note p,
 .payments-month-close > div span
),
body .main .page .statistics-page :is(
 .statistics-section-kicker, .statistics-charts-head-meta span,
 .statistics-scope-badge, [data-statistics-scope-badge],
 .statistics-control-note, .statistics-range-warning,
 .statistics-metric-chart-title > span, .statistics-metric-chart-title > p,
 .statistics-kpi-card > span, .statistics-kpi-card > small,
 .statistics-time-savings-copy > span
),
body .main .page .suspicious-orders-page :is(
 .suspicious-order-identity .muted, .suspicious-order-total small,
 .suspicious-reason-meta, .suspicious-reason-values dt
),
body .main .page :is(.subscription-page, .subscription-locked-page) :is(
 .subscription-kicker, .subscription-section-kicker, .subscription-lock-kicker,
 .subscription-current-summary span, .subscription-plan-capacity span,
 .subscription-plan-popular, .subscription-plan-current-mark,
 .subscription-plan-head > span, .subscription-admin-request > strong,
 .subscription-comparison-table thead th > em,
 .subscription-comparison-table tbody th > em,
 .subscription-comparison-state > small, .subscription-time-event em,
 .subscription-time-formula, .subscription-time-formula > span,
 .subscription-printer-note, .subscription-footnote,
 .subscription-locked-note, .subscription-locked-note > span,
 .subscription-lock-addon-note, .subscription-lock-plan-line > span
),
body .main .page .admin-template-page.legal-center-page :is(
 .legal-state-pill, .legal-readiness-badge, .legal-provider-summary__copy > span,
 .legal-provider-summary__state, .legal-decision-card__state,
 .legal-decision-card__head > div > small,
 .legal-decision-card__facts span, .legal-decision-card__details > summary,
 .legal-company-derived-grid span, .legal-document-admin-copy > span,
 .legal-document-admin-copy code, .legal-document-admin-state span,
 .legal-register-card > summary em, .legal-monitoring-config > summary em,
 .legal-blueprint-metadata span, .legal-event-pill,
 .legal-standard-onboarding__eyebrow, .legal-standard-onboarding__state,
 .legal-standard-onboarding__identity span, .legal-standard-onboarding__notice,
 .legal-advanced-workspace > summary em
),
body .main .page .admin-template-page.legal-my-page :is(.legal-my-document-copy em, .legal-my-document-state),
body :is(.ui-modal, .status-delete-modal, .status-icon-picker-modal) :is(
 .status-delete-copy > span, .status-delete-copy small,
 .status-icon-picker-card > header small, .status-icon-picker-result small,
 .status-icon-picker-empty small, .legal-capacity-choice small,
 .legal-evidence-note p
) {
 font-size: var(--goic-ui-caption) !important;
 line-height: 1.4 !important;
 min-width: 0;
 white-space: normal;
 overflow-wrap: anywhere;
}

/* Existing flex headers may wrap state/action labels instead of squeezing copy.
 * Grid headers and all data/diagram geometry remain unchanged. */
body .main .page .company-settings-page .company-integration-card header,
body[class*="mobile-text-size-"] .main .page .payments-section-head,
body .main .page .suspicious-orders-page .suspicious-order-head {
 flex-wrap: wrap;
}

}
