/* v1.0.20. All new phone rules are gated by server rollout + narrow viewport + browser preview.
   Current and desktop use the same original controls. No form is duplicated. */
.mobile-only, .mobile-delivery-notice { display: none; }
[hidden] { display: none !important; }
#mobile-preview-entry { text-align: left; white-space: normal; margin: 8px 0; font-size: 12px; }
.mobile-rollout-panel { max-width: 960px; }
.mobile-mode-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.mobile-mode-options > button { flex: 1 1 190px; min-height: 50px; white-space: normal; }
.mobile-rollout-panel input[type="checkbox"] { flex-shrink: 0; }
#compose-save-error .button { margin: 5px 8px 5px 0; white-space: normal; }
@media (max-width: 720px) {
  .rr-mobile { font-size: 15px; --mobile-nav-height: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .rr-mobile .mobile-only { display: block; }
  .rr-mobile .button.mobile-only { display: inline-flex; }
  .rr-mobile .workspace { padding: 20px 16px 32px; min-width: 0; }
  .rr-mobile .main-shell { padding-bottom: var(--mobile-nav-height); min-width: 0; }
  .rr-mobile .topbar { height: auto; min-height: 60px; padding: 8px 12px; gap: 8px; }
  .rr-mobile .top-left { min-width: 0; flex: 1; gap: 6px; }
  .rr-mobile .top-right { flex: 0 0 auto; }
  .rr-mobile .topbar #breadcrumbs, .rr-mobile .ux-global-help, .rr-mobile .top-right .small-avatar { display: none; }
  .rr-mobile #mobile-sport-entry { color: #283553; max-width: 100%; min-width: 0; text-align: left; white-space: normal; padding: 6px 8px; font-size: 14px; }
  .rr-mobile .mobile-nav { height: var(--mobile-nav-height); padding: 0 6px env(safe-area-inset-bottom,0px); box-sizing: border-box; }
  .rr-mobile .mobile-nav button { min-width: 48px; min-height: 52px; font-size: 11px; flex: 1; color: #56637d; }
  .rr-mobile .mobile-nav button.active { color: var(--primary); font-weight: 650; }
  .rr-mobile .mobile-nav .icon { width: 21px; height: 21px; }
  .rr-mobile .sidebar { max-width: calc(100vw - 35px); width: 290px; z-index: 70; padding: 14px 16px 28px; }
  .rr-mobile .sidebar-scrim.open { z-index: 65; }
  .rr-mobile.mobile-menu-open { overflow: hidden; }
  .rr-mobile #mobile-menu-close { margin-left: auto; display: flex; margin-bottom: 10px; }
  .rr-mobile .sidebar .nav-item { min-height: 48px; font-size: 14px; }
  .rr-mobile .sidebar .sidebar-note { display: none; }
  .rr-mobile .sidebar .sidebar-bottom { padding-top: 10px; }
  .rr-mobile input:not([type="checkbox"]):not([type="radio"]), .rr-mobile textarea, .rr-mobile select { font-size: 16px !important; min-height: 46px; max-width: 100%; box-sizing: border-box; }
  .rr-mobile textarea { line-height: 1.65; }
  .rr-mobile button, .rr-mobile .button, .rr-mobile summary { min-height: 44px; }
  .rr-mobile .button { font-size: 14px !important; white-space: normal; line-height: 1.4; }
  .rr-mobile summary { display: list-item; padding: 8px 0; box-sizing: border-box; }
  .rr-mobile label, .rr-mobile .form-stack label { font-size: 14px; }
  .rr-mobile .check-label { align-items: flex-start; line-height: 1.6; }
  .rr-mobile input[type="checkbox"], .rr-mobile input[type="radio"] { width: 24px; height: 24px; flex-shrink: 0; }
  .rr-mobile .small, .rr-mobile small, .rr-mobile .page-heading p { font-size: 13px; line-height: 1.65; }
  .rr-mobile .page-heading { margin-bottom: 18px; }
  .rr-mobile .page-heading h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.5px; }
  .rr-mobile .page-heading > .actions { display: flex; flex-wrap: wrap; margin-top: 14px; }
  .rr-mobile .page-heading > .actions .primary { flex: 1 1 100%; }
  .rr-mobile .panel { padding: 18px 16px; border-radius: 16px; min-width: 0; }
  .rr-mobile .panel-heading { flex-wrap: wrap; gap: 8px; }
  .rr-mobile .panel-heading h2 { font-size: 18px; }
  .rr-mobile .form-grid, .rr-mobile .form-grid.three { grid-template-columns: minmax(0,1fr); }
  .rr-mobile .list-row { gap: 10px; flex-wrap: wrap; }
  .rr-mobile .list-row .grow { min-width: 120px; overflow-wrap: anywhere; }
  .rr-mobile .list-row strong, .rr-mobile .panel p, .rr-mobile .notice { overflow-wrap: anywhere; }
  .rr-mobile .badge { font-size: 11px; padding: 5px 8px; }
  .rr-mobile .actions { gap: 10px; flex-wrap: wrap; }
  .rr-mobile .ux-page-help { display: none; } /* Available via More > Getting started. */
  .rr-mobile.mobile-combined-notices .main-shell > .rr-delivery-banner,
  .rr-mobile.mobile-combined-notices .main-shell > .rr-test-account-banner { display: none; }
  .rr-mobile .mobile-delivery-notice { display: block; margin: 10px 16px 0; border: 1px solid #e6cf96; background: #fff9eb; border-radius: 12px; padding: 0 12px; color: #755015; font-size: 12px; }
  .rr-mobile .mobile-delivery-notice summary { line-height: 1.5; padding: 9px 0; overflow-wrap: anywhere; }
  .rr-mobile .mobile-delivery-notice summary span { display: block; margin-top: 2px; font-size: 12px; }
  .rr-mobile .mobile-delivery-notice p { line-height: 1.6; padding: 6px 0; }
  .rr-mobile .mobile-pc-hint { background: #f0f4fb; color: #44546f; border: 1px solid #dde4ef; border-radius: 12px; padding: 14px; margin: 0 0 18px; font-size: 13px; line-height: 1.65; }
  .rr-mobile .mobile-pc-hint p { margin: 6px 0 0; }
  /* Setup: keep the actual current step visible, with optional access to the full step index. */
  .rr-mobile .setup-layout { display: flex; flex-direction: column; gap: 14px; }
  .rr-mobile .setup-layout > aside { position: static; width: 100%; }
  .rr-mobile .setup-layout > aside > p { display: none; }
  .rr-mobile .setup-layout .setup-progress-label { padding: 10px 0 0; }
  .rr-mobile .setup-layout .setup-steps { display: block; }
  .rr-mobile .setup-layout .setup-step:not(.current) { display: none; }
  .rr-mobile .setup-layout .mobile-setup-expanded .setup-step { display: flex; width: 100%; }
  .rr-mobile .setup-layout .setup-step.current { width: 100%; min-height: 55px; }
  .rr-mobile .setup-layout .setup-step.current small { display: none; }
  .rr-mobile #mobile-setup-step { float: right; font-size: 12px !important; }
  .rr-mobile .setup-content { width: 100%; box-sizing: border-box; }
  .rr-mobile .setup-provider-grid { grid-template-columns: 1fr; gap: 12px; }
  .rr-mobile .setup-provider { padding: 16px; }
  .rr-mobile .setup-provider h3 { margin-top: 0; }
  .rr-mobile .setup-provider > .circle-icon { display: none; }
  .rr-mobile .setup-provider p { margin: 5px 0 12px; }
  .rr-mobile .setup-welcome { padding: 25px 20px; }
  .rr-mobile .setup-welcome h1 { font-size: 29px; }
  .rr-mobile .setup-welcome-steps { display: none; }
  .rr-mobile .setup-promise { margin-top: 15px; }
  .rr-mobile .setup-actions { position: static; margin-top: 18px; padding-top: 18px; }
  .rr-mobile .setup-mailbox .grow { min-width: 0; flex: 1; }
  .rr-mobile .setup-mailbox .actions { justify-content: stretch; }
  .rr-mobile .setup-mailbox .actions > .button { flex: 1 1 100%; }
  /* Home: actions first, statistics on demand. */
  .rr-mobile .ux-home-main { padding: 23px 19px; margin-bottom: 12px; display: block; }
  .rr-mobile .ux-home-main h1 { font-size: 28px; }
  .rr-mobile .ux-home-progress { display: none; }
  .rr-mobile .ux-home-main .actions { display: grid; grid-template-columns: 1fr; }
  .rr-mobile .ux-home-main .actions > .button { width: 100%; }
  .rr-mobile .ux-home-stats { display: none; }
  .rr-mobile .mobile-home-expanded .ux-home-stats { display: grid; }
  .rr-mobile #mobile-home-detail-toggle { margin-bottom: 16px; }
  .rr-mobile .ux-home-panels .panel { margin-bottom: 0; }
  /* Guided learning: one explanation at a time. The section index and safety label stay. */
  .rr-mobile .ux-guide { padding: 15px; margin-bottom: 18px; }
  .rr-mobile .guide-heading { gap: 8px; align-items: flex-start; }
  .rr-mobile .guide-heading .guide-mark { display: none; }
  .rr-mobile .guide-heading h2 { font-size: 18px; margin: 6px 0; }
  .rr-mobile .guide-heading .eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: 1px; }
  .rr-mobile .guide-heading p, .rr-mobile .guide-lessons { display: none; }
  .rr-mobile .mobile-guide-open .guide-heading p { display: block; }
  .rr-mobile .mobile-guide-open .guide-lessons { display: grid; grid-template-columns: 1fr; }
  .rr-mobile .guide-safety { font-size: 12px; margin: 8px 0; }
  .rr-mobile .guide-footer { gap: 8px; align-items: stretch; flex-wrap: wrap; }
  .rr-mobile .guide-actions { display: flex; max-width: none; width: 100%; }
  .rr-mobile .guide-sections { width: 100%; }
  .rr-mobile .guide-lesson { padding: 12px; }
  .rr-mobile .guide-lesson summary { font-size: 14px; }
  .rr-mobile .learn-practice > .page-heading p { display: none; }
  /* Profile: all controls kept in place, small sections selected without navigation. */
  .rr-mobile .mobile-profile-picker { margin-bottom: 18px; }
  .rr-mobile .mobile-profile-other { display: none; }
  .rr-mobile .mobile-list-search { margin: 0 0 18px; }
  .rr-mobile .mobile-list-search span { display: block; color: #586581; margin-top: 6px; }
  .rr-mobile .mobile-search-hidden { display: none; }
  /* Directory filters: search first, exact filter lists remain available. */
  .rr-mobile .filter-bar { display: flex; padding: 13px; align-items: end; }
  .rr-mobile .filter-bar > label { display: none; }
  .rr-mobile .filter-bar.mobile-filters-expanded > label { display: flex; flex-basis: 100%; }
  .rr-mobile .filter-bar > .search-field { flex: 1 1 100%; }
  .rr-mobile .filter-bar > button[type="submit"] { flex: 1; }
  .rr-mobile .mobile-filter-toggle { flex: 1; }
  .rr-mobile .mobile-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -5px 0 14px; }
  .rr-mobile .mobile-filter-chips > .button { background: #efeafb; border-radius: 20px; }
  .rr-mobile .contact-card { padding: 18px; gap: 14px; }
  .rr-mobile .contact-card .card-footer { align-items: stretch; flex-direction: column; gap: 10px; }
  .rr-mobile .contact-card .card-footer > button { width: 100%; }
  /* Composer: one form, two editing stages and the existing signed review dialog. */
  .rr-mobile .workspace[data-page="compose"] { padding-bottom: 135px; }
  .rr-mobile .workspace[data-page="compose"] > .page-heading > .actions { display: none; }
  .rr-mobile .workspace[data-page="compose"] .compose-steps { display: none; }
  .rr-mobile .mobile-stage-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-bottom: 16px; background: #edf0f6; padding: 5px; border-radius: 12px; }
  .rr-mobile .mobile-stage-nav .button { font-size: 12px !important; padding: 7px 5px; color: #526078; }
  .rr-mobile .mobile-stage-nav .button.active { background: #fff; color: #6000df; box-shadow: 0 2px 6px #2233540d; }
  .rr-mobile .composer-grid { display: block; }
  .rr-mobile .composer-grid > aside { display: none; }
  .rr-mobile [data-mobile-stage="1"] [data-mobile-step="2"],
  .rr-mobile [data-mobile-stage="2"] [data-mobile-step="1"] { display: none; }
  .rr-mobile .compose-panel .writing-preview { display: none; }
  .rr-mobile .mobile-show-preview[data-mobile-stage="1"] .writing-preview { display: block; }
  .rr-mobile .compose-panel .personalization-box { padding: 14px; margin: 18px 0 10px; }
  .rr-mobile .compose-panel .recipient-line { gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; font-size: 13px; }
  .rr-mobile .compose-panel #draft-save-status { text-align: left; font-size: 12px; }
  .rr-mobile .compose-panel .body-input { min-height: 300px; }
  .rr-mobile .compose-save-note { display: none; }
  .rr-mobile .mobile-save-explanation { font-size: 12px; line-height: 1.7; color: #556581; margin-bottom: 0; }
  .rr-mobile .mobile-personalize-tools p { color: #556581; font-size: 14px; }
  .rr-mobile .mobile-research-choices { display: grid; gap: 10px; margin: 18px 0; }
  .rr-mobile .email-photo-controls { grid-template-columns: 1fr; }
  .rr-mobile .email-media-footer { font-size: 12px; }
  .rr-mobile .email-media-option { min-width: 0; }
  .rr-mobile .mobile-compose-actions { display: block; position: fixed; z-index: 24; bottom: var(--mobile-nav-height); left: 0; right: 0; padding: 8px 16px 10px; background: #fffffffa; border-top: 1px solid #dce1ee; }
  .rr-mobile .mobile-compose-actions > span { display: block; font-size: 12px; color: #56647b; margin-bottom: 6px; }
  .rr-mobile .mobile-compose-actions .actions { display: flex; flex-wrap: nowrap; }
  .rr-mobile .mobile-compose-actions .button { flex: 1; }
  .rr-mobile .mobile-compose-actions .primary { flex: 1.4; }
  .rr-mobile.mobile-typing .mobile-compose-actions { position: static; padding: 14px 0; }
  .rr-mobile.mobile-typing .mobile-nav { display: none; }
  .rr-mobile.mobile-typing .main-shell { padding-bottom: 0; }
  .rr-mobile.mobile-typing .workspace[data-page="compose"] { padding-bottom: 24px; }
  .rr-mobile .mobile-research-open > .page-heading, .rr-mobile .mobile-research-open > .mobile-stage-nav, .rr-mobile .mobile-research-open .compose-panel, .rr-mobile .mobile-research-open #mobile-compose-actions { display: none; }
  .rr-mobile .mobile-research-open .composer-grid > aside { display: block; }
  .rr-mobile .mobile-research-open .composer-grid > aside > :not(.fit-research):not(.mobile-research-back) { display: none; }
  .rr-mobile .mobile-research-back { margin-bottom: 16px; }
  .rr-mobile .mobile-findings-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 0; }
  .rr-mobile .mobile-findings-nav span { font-size: 12px; color: #50607a; }
  .rr-mobile .mobile-other-finding { display: none; }
  .rr-mobile .fit-finding { padding: 17px; }
  .rr-mobile .fit-context { padding: 14px; }
  .rr-mobile .fit-disclaimer, .rr-mobile .fit-limitations { font-size: 13px; }
  .rr-mobile .fit-tabs .fit-tab { min-height: 48px; }
  .rr-mobile .mobile-readonly [data-mobile-step] { display: block; }
  .rr-mobile .mobile-readonly #mobile-compose-stages, .rr-mobile .mobile-readonly .mobile-personalize-tools { display: none; }
  .rr-mobile .mobile-readonly > .page-heading > .actions { position: static; display: flex; }
  /* Messages: single-item actions by default. Bulk mode is deliberate and reversible. */
  .rr-mobile .message-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; overflow: visible; }
  .rr-mobile .message-tabs .button { font-size: 13px !important; min-width: 0; }
  .rr-mobile .message-list-panel .message-toolbar,
  .rr-mobile .message-list-panel .data-table td:first-child { display: none; }
  .rr-mobile .message-list-panel.mobile-bulk-open .message-toolbar { display: block; }
  .rr-mobile .message-list-panel.mobile-bulk-open .data-table td:first-child { display: grid; }
  .rr-mobile .message-list-panel .data-table td:nth-child(2) { padding-right: 0; }
  .rr-mobile .message-list-panel.mobile-bulk-open .data-table td:nth-child(2) { padding-right: 36px; }
  .rr-mobile .message-list-panel .data-table { font-size: 14px; }
  .rr-mobile .message-list-panel .message-subject { line-height: 1.65; }
  /* Mobile dialogs are full-screen pages, not small nested scrollers. */
  .rr-mobile dialog[open] { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
  .rr-mobile #modal-content { padding: calc(16px + env(safe-area-inset-top,0px)) 18px calc(24px + env(safe-area-inset-bottom,0px)); min-width: 0; }
  .rr-mobile .modal-heading { align-items: flex-start; gap: 12px; }
  .rr-mobile .modal-heading h2 { font-size: 23px; line-height: 1.3; }
  .rr-mobile .modal-heading .icon-button { flex: 0 0 44px; }
  .rr-mobile .review-meta p { display: block; font-size: 14px; }
  .rr-mobile .review-meta p > span { display: block; font-size: 11px; margin-bottom: 4px; }
  .rr-mobile .review-meta p > strong { display: block; }
  .rr-mobile .email-preview { padding: 10px; max-width: 100%; overflow: auto; }
  .rr-mobile .email-preview table { max-width: 100% !important; width: 100% !important; table-layout: fixed; }
  .rr-mobile .email-preview img { max-width: 100% !important; height: auto !important; }
  .rr-mobile .email-preview td { overflow-wrap: anywhere; }
  .rr-mobile .form-actions { position: static; display: flex; flex-wrap: wrap; margin-top: 20px; }
  .rr-mobile .form-actions .button { flex: 1 1 100%; }
  .rr-mobile .rr-test-counts { grid-template-columns: 1fr 1fr; }
  .rr-mobile .toasts { z-index: 100; bottom: calc(var(--mobile-nav-height) + 12px); }
  .rr-mobile .toast { font-size: 14px; }
  .rr-mobile .media-grid { grid-template-columns: minmax(0,1fr); }
  .rr-mobile .media-preview { max-height: 240px; }
  .rr-mobile .target-card h3 { font-size: 20px; }
  .rr-mobile .target-card .actions .button { flex: 1; }
  .rr-mobile .round-check { min-width: 44px; min-height: 44px; }
  .rr-mobile .mobile-card-table { display: block; min-width: 0; width: 100%; border: 0; }
  .rr-mobile .mobile-card-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rr-mobile .mobile-card-table tbody { display: grid; gap: 14px; }
  .rr-mobile .mobile-card-table tr { display: block; border: 1px solid #e0e5ef; border-radius: 12px; padding: 14px; background: #fff; }
  .rr-mobile .mobile-card-table td { display: block; border: 0; padding: 6px 0; white-space: normal; overflow-wrap: anywhere; max-width: none; font-size: 14px; }
  .rr-mobile .mobile-card-table td::before { content: attr(data-mobile-label); display: block; font-size: 11px; text-transform: uppercase; color: #5b6880; margin-bottom: 4px; }
  .rr-mobile .table-wrap { overflow: visible; }
  .rr-mobile :focus-visible { outline: 3px solid #8550d7; outline-offset: 3px; }
  .rr-mobile input, .rr-mobile textarea, .rr-mobile select, .rr-mobile button, .rr-mobile summary { scroll-margin-top: 18px; scroll-margin-bottom: 170px; }
  .rr-mobile .workspace-footer { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; }
}
@media(prefers-reduced-motion: reduce) { .rr-mobile * { scroll-behavior: auto !important; transition: none !important; } }

@media(max-width:720px){.rr-mobile.mobile-combined-notices .workspace.mobile-same-delivery > .rr-delivery-summary{display:none;}}

@media(max-width:720px){.rr-mobile .skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden;}}
