/* Biomech Mobile Visual V1.2. Desktop remains owned by style.css. */
#mobile-app-shell,
#mobile-bottom-nav,
.mobile-bottom-sheet-layer {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --mobile-app-blue: #3155a6;
    --mobile-app-yellow: #e9c84a;
    --mobile-app-black: #111111;
    --mobile-app-dark-base: #0d1117;
    --mobile-app-dark-raised: #12181f;
    --mobile-app-dark-float: #18212a;
    --mobile-app-dark-nav: #141b23;
    --mobile-app-paper: #f5f3ee;
    --mobile-app-white: #faf9f5;
    --mobile-app-cool: #e6e8eb;
    --mobile-app-line: #cfd3d8;
    --mobile-app-dark-line: rgba(168,178,192,.2);
    --mobile-app-dark-muted: #a8b2c0;
    --mobile-app-gray: #6e747d;
    --mobile-app-nav-height: 68px;
    --mobile-app-header-height: 72px;
    --mobile-touch-target: 44px;
    --mobile-content-page-title-size: 20px;
    --mobile-sheet-radius: 16px;
    --mobile-sheet-backdrop: rgba(7,14,25,.52);
    --mobile-sheet-shadow: 0 -18px 44px rgba(7,14,25,.2);
    --mobile-sheet-handle-width: 36px;
    --mobile-sheet-handle-height: 3px;
    --mobile-sheet-handle-color: #bfc5ce;
    --mobile-sheet-header-height: 48px;
    --mobile-sheet-close-size: var(--mobile-touch-target);
    --mobile-press-duration: 100ms;
    --mobile-press-scale: .985;
    --mobile-quick-action-foreground: #fff;
  }

  html,
  body {
    min-height: 100%;
    background: var(--mobile-app-paper);
  }

  body {
    min-height: 100dvh;
    padding-bottom: calc(var(--mobile-app-nav-height) + env(safe-area-inset-bottom));
  }

  body.mobile-bottom-sheet-open { overflow: hidden; }

  #sidebar,
  #mobile-drawer-backdrop,
  #mobile-quick-nav-toggle,
  #mobile-quick-nav-layer,
  #mobile-client-button {
    display: none !important;
  }

  #mobile-app-shell {
    display: block;
    width: 100%;
    min-height: calc(100dvh - var(--mobile-app-nav-height) - env(safe-area-inset-bottom));
    color: var(--mobile-app-black);
    background: var(--mobile-app-paper);
  }

  .mobile-app-page[hidden] { display: none !important; }

  .mobile-app-page {
    width: 100%;
    min-height: calc(100dvh - var(--mobile-app-nav-height) - env(safe-area-inset-bottom));
    background: var(--mobile-app-paper);
  }

  .mobile-app-page-header {
    position: relative;
    display: flex;
    min-height: calc(138px + env(safe-area-inset-top));
    padding: calc(34px + env(safe-area-inset-top)) 24px 24px;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background: var(--mobile-app-blue);
  }

  .mobile-app-page-header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 64px;
    height: 8px;
    background: var(--mobile-app-yellow);
    content: '';
  }

  .mobile-app-page-header > div { position: relative; z-index: 1; min-width: 0; }
  .mobile-app-page-header span {
    display: block;
    color: rgba(255,255,255,.68);
    font: 700 10px/1.2 var(--mono);
    letter-spacing: .16em;
  }
  .mobile-app-page-header h1 {
    margin: 8px 0 0;
    font: 760 34px/1 var(--sans);
    letter-spacing: -.045em;
  }
  .mobile-app-page-header img {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 48px;
    object-fit: contain;
    filter: none;
  }

  .mobile-app-home-header {
    min-height: calc(176px + env(safe-area-inset-top));
    padding-bottom: 34px;
  }
  .mobile-app-home-header::before {
    position: absolute;
    top: calc(22px + env(safe-area-inset-top));
    right: 72px;
    width: 1px;
    height: 96px;
    background: rgba(255,255,255,.35);
    content: '';
  }
  .mobile-app-home-header::after { display: none; }
  .mobile-app-home-header h1 { font-size: 39px; }

  .mobile-header-cta,
  .mobile-detail-header > button {
    position: relative;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 4px;
    color: #fff;
    background: transparent;
  }
  .mobile-header-cta svg,
  .mobile-detail-header > button svg,
  .mobile-search svg,
  .mobile-quick-actions svg,
  #mobile-bottom-nav button svg {
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-header-cta svg,
  .mobile-detail-header > button svg { width: 20px; height: 20px; }
  .mobile-detail-header { justify-content: flex-start; gap: 18px; }

  .mobile-app-page-body {
    display: grid;
    gap: 32px;
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 20px calc(36px + env(safe-area-inset-bottom));
  }

  .mobile-app-section-title {
    display: grid;
    margin: 0 0 12px;
    gap: 4px;
    color: var(--mobile-app-black);
    font: 720 15px/1.2 var(--sans);
    letter-spacing: -.01em;
  }
  .mobile-app-section-title::before {
    color: var(--mobile-app-gray);
    font: 700 9px/1 var(--mono);
    letter-spacing: .18em;
  }
  #mobile-current-title::before { content: 'ACTIVE ASSESSMENT'; }
  #mobile-quick-actions-title::before { content: 'QUICK START'; }
  #mobile-recent-title::before { content: 'RECENT'; }

  [data-mobile-app-page="home"] .mobile-app-page-body {
    gap: 36px;
    padding-top: 0;
  }
  [data-mobile-app-page="home"] .mobile-app-page-body > section:first-child {
    position: relative;
    z-index: 2;
    margin-top: -32px;
  }
  [data-mobile-app-page="home"] #mobile-current-title {
    margin-left: 18px;
    color: #fff;
  }
  [data-mobile-app-page="home"] #mobile-current-title::before {
    color: rgba(255,255,255,.68);
  }

  .mobile-current-card {
    position: relative;
    display: flex;
    min-height: 150px;
    margin-left: 4px;
    padding: 26px 24px 24px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
    border: 1px solid var(--mobile-app-dark-line);
    border-left: 3px solid var(--mobile-app-blue);
    border-radius: 3px;
    color: #fff;
    background: var(--mobile-app-dark-raised);
    box-shadow: none;
  }
  .mobile-current-card::before {
    display: none;
  }
  .mobile-current-card::after {
    position: absolute;
    top: 0;
    right: 18px;
    width: 48px;
    height: 3px;
    background: var(--mobile-app-yellow);
    content: '';
  }
  .mobile-current-card.is-empty {
    color: var(--mobile-app-black);
    background: var(--mobile-app-white);
  }
  .mobile-current-copy { position: relative; z-index: 1; display: grid; min-width: 0; gap: 9px; }
  .mobile-current-copy strong {
    overflow: hidden;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-current-copy span {
    color: rgba(255,255,255,.7);
    font: 700 10px/1.4 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .mobile-current-card.is-empty .mobile-current-copy span { color: var(--mobile-app-gray); }
  .mobile-current-card > button {
    position: relative;
    z-index: 1;
    min-height: 44px;
    padding: 0;
    flex: 0 0 auto;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font: 700 12px var(--sans);
  }

  .mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--mobile-app-dark-line);
    border-radius: 3px;
    background: var(--mobile-app-dark-raised);
  }
  .mobile-quick-actions > button,
  .mobile-quick-actions > a {
    display: flex;
    position: relative;
    min-height: 108px;
    padding: 17px;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    color: var(--mobile-quick-action-foreground);
    background: var(--mobile-app-dark-float);
    box-shadow: none;
    text-decoration: none;
  }
  .mobile-quick-actions > :first-child {
    z-index: 1;
    margin: 0;
    padding: 16px 18px 14px;
  }
  .mobile-quick-actions > :first-child::after {
    position: absolute;
    top: 0;
    right: 16px;
    width: 36px;
    height: 2px;
    background: var(--mobile-app-yellow);
    content: '';
  }
  .mobile-quick-actions > :not(:first-child) {
    min-height: 104px;
    padding: 16px 18px 14px;
  }
  .mobile-quick-actions span { display: grid; width: 28px; height: 28px; place-items: center; color: currentColor; }
  .mobile-quick-actions svg { width: 22px; height: 22px; }
  .mobile-quick-actions strong { font-size: 14px; line-height: 1.2; }
  .mobile-quick-actions > :first-child svg { width: 24px; height: 24px; }
  .mobile-quick-actions > :first-child strong { font-size: 15px; }
  .mobile-quick-actions button:disabled { opacity: 1; }
  .mobile-quick-actions button:disabled > span,
  .mobile-quick-actions button:disabled > strong { opacity: .38; }

  .mobile-list {
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--mobile-app-black);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-list-row {
    display: flex;
    width: 100%;
    min-height: 76px;
    padding: 14px 2px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    border-bottom: 1px solid var(--mobile-app-line);
    border-radius: 0;
    color: var(--mobile-app-black);
    background: transparent;
    text-align: left;
  }
  .mobile-list-copy { display: grid; min-width: 0; gap: 7px; }
  .mobile-list-copy strong {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-list-copy small {
    color: var(--mobile-app-gray);
    font: 650 10px/1.2 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .mobile-list-chevron { color: var(--mobile-app-black); font-size: 20px; }
  .mobile-empty-state { margin: 0; padding: 30px 2px; color: var(--mobile-app-gray); font-size: 13px; text-align: left; }

  [data-mobile-app-page="clients"] .mobile-app-page-header {
    min-height: calc(150px + env(safe-area-inset-top));
    padding-bottom: 34px;
    background: var(--mobile-app-dark-raised);
    box-shadow: inset 0 -1px var(--mobile-app-dark-line);
  }
  [data-mobile-app-page="clients"] .mobile-app-page-header::after {
    right: auto;
    left: 24px;
    width: 56px;
    height: 2px;
    background: var(--mobile-app-blue);
  }
  [data-mobile-app-page="clients"],
  [data-mobile-app-page="clients"] .mobile-app-page-body {
    color: #fff;
    background: var(--mobile-app-dark-base);
  }
  [data-mobile-app-page="clients"] .mobile-app-page-body { gap: 18px; padding-top: 0; }
  [data-mobile-app-page="clients"] .mobile-header-cta {
    border: 0;
    border-top: 1px solid var(--mobile-app-dark-line);
    border-bottom: 1px solid var(--mobile-app-blue);
    border-radius: 2px;
    background: var(--mobile-app-dark-float);
    box-shadow: none;
  }
  .mobile-client-search {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 54px;
    margin: -27px 4px 0;
    padding: 0 16px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--mobile-app-dark-line);
    border-left: 2px solid var(--mobile-app-blue);
    border-radius: 2px;
    color: #fff;
    background: var(--mobile-app-dark-raised);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
  }
  .mobile-client-search svg { width: 19px; height: 19px; }
  .mobile-client-search input {
    width: 100%;
    min-height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 16px;
  }
  .mobile-client-search input::placeholder { color: var(--mobile-app-dark-muted); }
  .mobile-client-search:focus-within {
    border-color: rgba(49,85,166,.8);
    box-shadow: inset 3px 0 var(--mobile-app-blue), inset 0 1px rgba(255,255,255,.04);
  }

  .mobile-client-segments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--mobile-app-dark-line);
    border-radius: 0;
    background: transparent;
  }
  .mobile-client-segments button {
    min-height: var(--mobile-touch-target);
    padding: 0 5px;
    border: 0;
    border-right: 0;
    border-radius: 0;
    color: var(--mobile-app-dark-muted);
    background: transparent;
    font: 650 12px var(--sans);
  }
  .mobile-client-segments button:last-child { border-right: 0; }
  .mobile-client-segments button[aria-selected="true"] {
    position: relative;
    color: #fff;
    background: transparent;
    box-shadow: none;
  }
  .mobile-client-segments button[aria-selected="true"]::after {
    position: absolute;
    right: 24%;
    bottom: -1px;
    left: 24%;
    height: 2px;
    background: var(--mobile-app-blue);
    content: '';
  }
  [data-mobile-app-page="clients"] #mobile-client-list {
    border-top-color: var(--mobile-app-dark-line);
  }
  [data-mobile-app-page="clients"] .mobile-list-row {
    padding-inline: 2px 8px;
    border-bottom-color: var(--mobile-app-dark-line);
    color: #fff;
  }
  [data-mobile-app-page="clients"] .mobile-list-copy small,
  [data-mobile-app-page="clients"] .mobile-list-chevron,
  [data-mobile-app-page="clients"] .mobile-empty-state { color: var(--mobile-app-dark-muted); }

  .mobile-client-profile,
  .mobile-account-card {
    display: flex;
    min-height: 136px;
    padding: 22px;
    align-items: center;
    gap: 16px;
    border: 0;
    border-radius: 4px;
    background: var(--mobile-app-white);
    box-shadow: none;
  }
  .mobile-client-profile {
    position: relative;
    display: grid;
    z-index: 2;
    min-height: 146px;
    margin: -18px 4px 2px;
    padding: 24px;
    gap: 7px;
    overflow: hidden;
    border-left: 3px solid var(--mobile-app-yellow);
    border-radius: 3px;
    color: #fff;
    background: var(--mobile-app-dark-raised);
  }
  .mobile-client-profile::after {
    display: none;
  }
  .mobile-client-profile > span { color: rgba(255,255,255,.65); font: 700 9px var(--mono); letter-spacing: .16em; }
  .mobile-client-profile > strong { font-size: 28px; letter-spacing: -.04em; }
  .mobile-client-profile > small { color: rgba(255,255,255,.72); font: 11px var(--mono); }
  .mobile-detail-heading { display: flex; margin-bottom: -18px; align-items: flex-end; justify-content: space-between; gap: 12px; }
  .mobile-detail-heading h2 { margin: 0; }
  .mobile-detail-heading button {
    min-height: var(--mobile-touch-target);
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--mobile-app-blue);
    border-radius: 0;
    color: var(--mobile-app-blue);
    background: transparent;
    font: 700 12px var(--sans);
  }
  [data-mobile-app-page="client-detail"] .mobile-app-page-body {
    gap: 32px;
    padding-top: 0;
  }

  [data-mobile-app-page="me"] .mobile-app-page-header {
    min-height: calc(148px + env(safe-area-inset-top));
    padding-bottom: 40px;
    overflow: hidden;
    color: var(--mobile-app-black);
    background: var(--mobile-app-yellow);
  }
  [data-mobile-app-page="me"] .mobile-app-page-header span { color: rgba(17,17,17,.58); }
  [data-mobile-app-page="me"] .mobile-app-page-header::before,
  [data-mobile-app-page="me"] .mobile-app-page-header::after {
    display: none;
  }
  [data-mobile-app-page="me"] {
    background: var(--mobile-app-dark-base);
  }
  [data-mobile-app-page="me"] .mobile-app-page-body {
    gap: 0;
    padding-top: 0;
    background: var(--mobile-app-paper);
  }
  .mobile-account-card {
    position: relative;
    z-index: 2;
    min-height: 150px;
    margin: -26px -20px 24px;
    padding: 48px 24px 30px;
    overflow: hidden;
    border-radius: 0;
    color: #fff;
    background: var(--mobile-app-dark-raised);
    clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
    box-shadow: inset 0 1px rgba(255,255,255,.04);
  }
  .mobile-account-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 32px;
    background: rgba(194,154,43,.54);
    clip-path: polygon(0 26px, 100% 0, 100% 6px, 0 32px);
    content: '';
  }
  .mobile-account-card::after {
    display: none;
  }
  .mobile-account-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--mobile-app-yellow);
    border-radius: 4px;
    color: var(--mobile-app-yellow);
    background: var(--mobile-app-dark-float);
    box-shadow: inset 0 1px rgba(255,255,255,.06);
    font: 700 18px var(--sans);
  }
  .mobile-account-copy { position: relative; z-index: 1; display: grid; gap: 7px; }
  .mobile-account-copy strong { font-size: 23px; letter-spacing: -.03em; }
  .mobile-account-copy span { color: rgba(255,255,255,.58); font: 11px var(--mono); letter-spacing: .08em; }

  .mobile-settings-group {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-settings-group + .mobile-settings-group { margin-top: 28px; }
  .mobile-settings-group h2 {
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--mobile-app-black);
    color: var(--mobile-app-gray);
    font: 700 9px var(--mono);
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .mobile-settings-group button,
  .mobile-setting-static {
    display: flex;
    width: 100%;
    min-height: 56px;
    padding: 0 2px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--mobile-app-line);
    border-radius: 0;
    color: var(--mobile-app-black);
    background: transparent;
    font: 620 15px var(--sans);
    text-align: left;
  }
  .mobile-setting-static span:last-child { color: var(--mobile-app-gray); font: 11px var(--mono); }
  .mobile-logout-button {
    min-height: 52px;
    margin-top: 30px;
    border: 1px solid var(--mobile-app-black);
    border-radius: 4px;
    color: var(--mobile-app-black);
    background: transparent;
    font: 700 14px var(--sans);
  }

  #mobile-bottom-nav {
    position: fixed;
    z-index: 1000;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(var(--mobile-app-nav-height) + env(safe-area-inset-bottom));
    padding: 5px 8px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid rgba(168,178,192,.2);
    background: var(--mobile-app-dark-nav);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
  }
  #mobile-bottom-nav button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 58px;
    padding: 4px 2px 8px;
    place-items: center;
    align-content: center;
    gap: 5px;
    border: 0;
    border-right: 0;
    border-radius: 0;
    color: var(--mobile-app-dark-muted);
    background: transparent;
    outline: 0;
  }
  #mobile-bottom-nav button:last-child { border-right: 0; }
  #mobile-bottom-nav button > span,
  #mobile-bottom-nav button > strong { position: relative; z-index: 1; }
  #mobile-bottom-nav button svg { width: 20px; height: 20px; stroke-width: 1.7; }
  #mobile-bottom-nav button > strong { font-size: 10px; font-weight: 620; letter-spacing: .02em; }
  #mobile-bottom-nav button[aria-current="page"] { color: #fff; background: transparent; }
  #mobile-bottom-nav button[aria-current="page"]::after {
    position: absolute;
    z-index: 0;
    inset: 7px 21px 3px;
    border: 0;
    border-radius: 2px;
    background: var(--mobile-app-blue);
    box-shadow: inset 0 1px rgba(255,255,255,.045);
    transform: translateY(-1px);
    content: '';
  }
  #mobile-bottom-nav button[aria-current="page"]::before {
    position: absolute;
    z-index: 2;
    top: 3px;
    right: 39%;
    left: 39%;
    height: 2px;
    background: var(--mobile-app-yellow);
    content: '';
  }
  #mobile-bottom-nav button:focus-visible {
    outline: 1px solid rgba(255,255,255,.2);
    outline-offset: -6px;
  }

  :where(
    .mobile-quick-actions > button,
    .mobile-current-card > button,
    .mobile-list-row,
    .mobile-header-cta,
    .mobile-detail-header > button,
    .mobile-detail-heading button,
    .mobile-client-segments button,
    .mobile-intake-summary-row,
    .mobile-intake-context-row,
    .mobile-sheet-row,
    .mobile-account-row,
    .mobile-plan-disclosure > summary,
    .mobile-report-disclosure > summary,
    .mobile-trend-disclosure > summary,
    #mobile-bottom-nav button,
    [data-mobile-sheet-close]
  ) {
    transition: transform var(--mobile-press-duration) ease,
      opacity var(--mobile-press-duration) ease,
      background-color var(--mobile-press-duration) ease;
    transform-origin: center;
    -webkit-tap-highlight-color: transparent;
  }
  :where(
    .mobile-quick-actions > button,
    .mobile-current-card > button,
    .mobile-list-row,
    .mobile-header-cta,
    .mobile-detail-header > button,
    .mobile-detail-heading button,
    .mobile-client-segments button,
    .mobile-intake-summary-row,
    .mobile-intake-context-row,
    .mobile-sheet-row,
    .mobile-account-row,
    .mobile-plan-disclosure > summary,
    .mobile-report-disclosure > summary,
    .mobile-trend-disclosure > summary,
    #mobile-bottom-nav button,
    [data-mobile-sheet-close]
  ):active {
    opacity: .78;
    transform: translateY(1px) scale(var(--mobile-press-scale));
  }

  :where(
    [data-mobile-app-action],
    .mobile-plan-reason-toggle,
    .mobile-report-finding.has-mobile-detail,
    .mobile-report-limitations.is-mobile-collapsible .report-limitations-summary,
    .mobile-report-evidence > summary,
    .mobile-report-technical > summary,
    .mobile-report-technical-item > summary,
    #panel-2 .report-plan-cta,
    #panel-2 .feedback-flag-btn
  ) {
    transition: transform var(--mobile-press-duration) ease,
      opacity var(--mobile-press-duration) ease,
      background-color var(--mobile-press-duration) ease;
    transform-origin: center;
    -webkit-tap-highlight-color: transparent;
  }
  :where(
    [data-mobile-app-action],
    .mobile-plan-reason-toggle,
    .mobile-report-finding.has-mobile-detail,
    .mobile-report-limitations.is-mobile-collapsible .report-limitations-summary,
    .mobile-report-evidence > summary,
    .mobile-report-technical > summary,
    .mobile-report-technical-item > summary,
    #panel-2 .report-plan-cta,
    #panel-2 .feedback-flag-btn
  ):active {
    opacity: .78;
    transform: translateY(1px) scale(var(--mobile-press-scale));
  }

  @media (prefers-reduced-motion: reduce) {
    :where(
      .mobile-quick-actions > button,
      .mobile-current-card > button,
      .mobile-list-row,
      .mobile-header-cta,
      .mobile-detail-header > button,
      .mobile-detail-heading button,
      .mobile-client-segments button,
      .mobile-intake-summary-row,
      .mobile-intake-context-row,
      .mobile-sheet-row,
      .mobile-account-row,
      .mobile-plan-disclosure > summary,
      .mobile-report-disclosure > summary,
      .mobile-trend-disclosure > summary,
      #mobile-bottom-nav button,
      [data-mobile-sheet-close]
    ) { transition-duration: 0ms; }
    :where(
      .mobile-quick-actions > button,
      .mobile-current-card > button,
      .mobile-list-row,
      .mobile-header-cta,
      .mobile-detail-header > button,
      .mobile-detail-heading button,
      .mobile-client-segments button,
      .mobile-intake-summary-row,
      .mobile-intake-context-row,
      .mobile-sheet-row,
      .mobile-account-row,
      .mobile-plan-disclosure > summary,
      .mobile-report-disclosure > summary,
      .mobile-trend-disclosure > summary,
      #mobile-bottom-nav button,
      [data-mobile-sheet-close]
    ):active { transform: none; }
    :where(
      [data-mobile-app-action],
      .mobile-plan-reason-toggle,
      .mobile-report-finding.has-mobile-detail,
      .mobile-report-limitations.is-mobile-collapsible .report-limitations-summary,
      .mobile-report-evidence > summary,
      .mobile-report-technical > summary,
      .mobile-report-technical-item > summary,
      #panel-2 .report-plan-cta,
      #panel-2 .feedback-flag-btn
    ) { transition-duration: 0ms; }
    :where(
      [data-mobile-app-action],
      .mobile-plan-reason-toggle,
      .mobile-report-finding.has-mobile-detail,
      .mobile-report-limitations.is-mobile-collapsible .report-limitations-summary,
      .mobile-report-evidence > summary,
      .mobile-report-technical > summary,
      .mobile-report-technical-item > summary,
      #panel-2 .report-plan-cta,
      #panel-2 .feedback-flag-btn
    ):active { transform: none; }
  }

  .mobile-bottom-sheet-layer {
    position: fixed;
    z-index: 1800;
    inset: 0;
    display: grid;
    align-items: end;
  }
  .mobile-bottom-sheet-layer[hidden] { display: none !important; }
  .mobile-sheet-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--mobile-sheet-backdrop); }
  .mobile-bottom-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(92dvh - env(safe-area-inset-top));
    margin-inline: auto;
    padding: 0 20px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 0;
    border-radius: var(--mobile-sheet-radius) var(--mobile-sheet-radius) 0 0;
    background: var(--mobile-app-white);
    box-shadow: var(--mobile-sheet-shadow);
  }
  .mobile-sheet-handle {
    width: var(--mobile-sheet-handle-width);
    height: var(--mobile-sheet-handle-height);
    margin: 6px auto 0;
    border-radius: 999px;
    background: var(--mobile-sheet-handle-color);
  }
  .mobile-bottom-sheet > header {
    display: flex;
    min-height: var(--mobile-sheet-header-height);
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(15,23,42,.06);
  }
  .mobile-bottom-sheet > header h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
  .mobile-bottom-sheet > header button {
    width: var(--mobile-sheet-close-size);
    height: var(--mobile-sheet-close-size);
    border: 0;
    border-radius: 0;
    color: #596171;
    background: transparent;
    font-size: 22px;
    line-height: 1;
  }
  .mobile-sheet-list { overflow: visible; margin: 10px 0 18px; border: 0; border-radius: 0; }
  .mobile-sheet-row,
  .mobile-action-sheet-list > button {
    display: flex;
    width: 100%;
    min-height: 60px;
    padding: 10px 2px;
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid var(--mobile-app-line);
    border-radius: 0;
    color: var(--mobile-app-black);
    background: transparent;
    text-align: left;
  }
  .mobile-sheet-radio { width: 22px; color: var(--mobile-app-blue); font-size: 16px; }
  .mobile-action-sheet-list > button { justify-content: space-between; font: 620 14px var(--sans); }
  .mobile-action-sheet-list > button:disabled { color: #a3a7ad; }
  .mobile-sheet-primary {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 4px;
    color: var(--mobile-app-black);
    background: var(--mobile-app-yellow);
    font: 750 14px var(--sans);
  }
  .mobile-sheet-secondary-link {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    padding: 8px 2px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-top: 1px solid var(--mobile-app-line);
    border-radius: 0;
    color: var(--mobile-app-gray);
    background: transparent;
    font: 560 14px var(--sans);
    text-align: left;
    box-shadow: none;
  }
  .mobile-sheet-secondary-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
  }
  .mobile-sheet-secondary-copy strong {
    color: var(--mobile-app-black);
    font: 620 14px var(--sans);
  }
  .mobile-sheet-secondary-copy small {
    color: var(--mobile-app-gray);
    font: 500 12px var(--sans);
  }
  .mobile-sheet-secondary-chevron {
    color: var(--mobile-app-gray);
    font-size: 20px;
    line-height: 1;
  }
  .mobile-session-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--mobile-touch-target);
    align-items: stretch;
    border-bottom: 1px solid var(--mobile-app-line);
  }
  .mobile-session-history-row .mobile-sheet-row {
    min-width: 0;
    border-bottom: 0;
  }
  .mobile-session-row-trash {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    width: var(--mobile-touch-target);
    min-width: var(--mobile-touch-target);
    min-height: var(--mobile-touch-target);
    padding: 0;
    place-items: center;
    align-self: center;
    border: 0;
    color: var(--mobile-app-gray);
    background: transparent;
    box-shadow: none;
  }
  .mobile-session-row-trash svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-session-row-trash:focus-visible {
    outline: 2px solid rgba(49, 86, 166, .28);
    outline-offset: -4px;
  }
  .mobile-session-row-trash:disabled { opacity: .35; }
  .mobile-bottom-sheet-compact { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .mobile-sheet-context,
  .mobile-sheet-warning {
    margin: 16px 0;
    color: var(--mobile-app-gray);
    font: 500 13px/1.55 var(--sans);
  }
  .mobile-session-recycle-context {
    display: grid;
    gap: 4px;
  }
  .mobile-session-recycle-context strong {
    color: var(--mobile-app-black);
    font: 700 16px var(--sans);
  }
  .mobile-session-recycle-context > span {
    color: var(--mobile-app-gray);
    font: 500 13px var(--sans);
  }
  .mobile-session-recycle-context p {
    margin: 12px 0 0;
    color: var(--mobile-app-gray);
    font: 500 13px/1.55 var(--sans);
  }
  .mobile-sheet-danger-action {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(185, 28, 28, .22);
    border-radius: 4px;
    color: #b91c1c;
    background: transparent;
    font: 700 14px var(--sans);
  }
  .mobile-recycle-item {
    display: grid;
    padding: 16px 2px;
    gap: 14px;
    border-bottom: 1px solid var(--mobile-app-line);
  }
  .mobile-recycle-copy { display: grid; min-width: 0; gap: 4px; }
  .mobile-recycle-copy strong { color: var(--mobile-app-black); font-size: 15px; }
  .mobile-recycle-copy span { color: var(--mobile-app-gray); font-size: 13px; }
  .mobile-recycle-copy small { color: #8a9099; font-size: 11px; }
  .mobile-recycle-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mobile-recycle-actions button,
  .mobile-sheet-confirm-actions button {
    min-width: 0;
    min-height: var(--mobile-touch-target);
    border: 1px solid var(--mobile-app-line);
    border-radius: 4px;
    color: var(--mobile-app-black);
    background: transparent;
    font: 680 13px var(--sans);
  }
  .mobile-recycle-actions button.is-danger,
  .mobile-sheet-confirm-actions button.is-danger {
    border-color: #b91c1c;
    color: #fff;
    background: #b91c1c;
  }
  .mobile-sheet-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-mobile-app-view="assessment"] #mobile-app-shell { display: none; }
  body:not([data-mobile-app-view="assessment"]) #main,
  body:not([data-mobile-app-view="assessment"]) #mobile-header,
  body:not([data-mobile-app-view="assessment"]) #mobile-quick-nav-toggle,
  body:not([data-mobile-app-view="assessment"]) #mobile-back-to-top { display: none !important; }

  body[data-mobile-app-view="assessment"] #main {
    display: block;
    min-height: calc(100dvh - var(--mobile-app-nav-height));
    padding-bottom: calc(var(--mobile-app-nav-height) + env(safe-area-inset-bottom));
    background: var(--mobile-app-paper);
  }
  body[data-mobile-app-view="assessment"] #mobile-header {
    position: sticky;
    z-index: 116;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 48px;
    min-height: calc(var(--mobile-app-header-height) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    gap: 10px;
    color: #fff;
    background: var(--mobile-app-blue);
  }
  body[data-mobile-app-view="assessment"] #mobile-header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58px;
    height: 4px;
    background: var(--mobile-app-yellow);
    content: '';
  }
  #mobile-header .mobile-brand { grid-column: 1; }
  #mobile-header .mobile-brand strong { display: none; }
  #mobile-header .mobile-brand-mark { width: 34px; height: 37px; filter: none; }
  #mobile-header .mobile-context { grid-column: 2; display: grid; min-width: 0; justify-items: start; align-content: center; gap: 2px; }
  #mobile-client-name-button,
  #mobile-session-date-button {
    position: relative;
    display: flex;
    max-width: 100%;
    min-height: 27px;
    padding: 0;
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    text-align: left;
  }
  #mobile-client-name-button::before,
  #mobile-session-date-button::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    min-width: var(--mobile-touch-target);
    height: var(--mobile-touch-target);
    content: '';
    transform: translateY(-50%);
  }
  #mobile-client-name-button strong,
  #mobile-session-date-button span { display: inline; width: auto; margin: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
  #mobile-client-name-button strong { font-size: 16px; letter-spacing: -.02em; }
  #mobile-session-date-button { color: rgba(255,255,255,.66); font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  #mobile-session-date-button span:last-child { overflow: visible; }
  #mobile-assessment-more {
    position: relative;
    z-index: 1;
    grid-column: 3;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 4px;
    outline: 0;
    color: #fff;
    background: var(--mobile-app-black);
    font-size: 16px;
    letter-spacing: .08em;
  }

  body[data-mobile-app-view="assessment"] #topbar {
    position: sticky;
    top: calc(var(--mobile-app-header-height) + env(safe-area-inset-top));
    z-index: 114;
    height: 50px;
    border: 0;
    background: var(--mobile-app-blue);
    backdrop-filter: none;
  }
  body[data-mobile-app-view="assessment"] .tab-btn { height: 50px; min-height: 46px; color: rgba(255,255,255,.58); }
  body[data-mobile-app-view="assessment"] .tab-btn:focus { outline: 0; }
  body[data-mobile-app-view="assessment"] .tab-btn.active {
    color: #fff;
    background: transparent;
    border-bottom-color: transparent;
  }
  body[data-mobile-app-view="assessment"] .tab-btn.active::before { right: 22%; bottom: 0; left: 22%; height: 3px; background: var(--mobile-app-yellow); }

  #session-selector-bar,
  .mobile-basic-actions { display: none !important; }
  body[data-mobile-app-view="assessment"] .tab-panel.active { padding-bottom: calc(var(--mobile-app-nav-height) + 18px + env(safe-area-inset-bottom)); }

  #structure-page-utilities { display: block; margin-bottom: 18px; }
  #structure-page-utilities #assessment-section-nav {
    position: sticky;
    z-index: 100;
    top: calc(var(--mobile-app-header-height) + 50px + env(safe-area-inset-top));
    display: flex;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 6px;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-bottom: 1px solid var(--mobile-app-line);
    border-radius: 0;
    background: var(--mobile-app-white);
    box-shadow: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  #structure-page-utilities #assessment-section-nav::-webkit-scrollbar { display: none; }
  #structure-page-utilities #assessment-section-nav button {
    position: relative;
    width: auto;
    min-width: max-content;
    min-height: 47px;
    padding: 0 12px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    color: var(--mobile-app-gray);
    background: transparent;
    font-size: 11px;
    font-weight: 650;
    scroll-snap-align: start;
  }
  #structure-page-utilities #assessment-section-nav button.active {
    color: var(--mobile-app-black);
    background: transparent;
  }
  #structure-page-utilities #assessment-section-nav button.active::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    display: block;
    height: 3px;
    background: var(--mobile-app-yellow);
    content: '';
  }
  #structure-page-utilities #structure-page-toolbar { display: none !important; }
  #assessment-core-tests,
  #assessment-supporting-tests,
  #assessment-integrated-validation,
  #assessment-further-validation { scroll-margin-top: calc(var(--mobile-app-header-height) + 104px + env(safe-area-inset-top)); }

  #mobile-back-to-top {
    bottom: calc(var(--mobile-app-nav-height) + 12px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    border-radius: 4px;
    color: #fff;
    background: var(--mobile-app-black);
    box-shadow: none;
  }

  #loginOverlay:not([style*="display: none"]) ~ #mobile-app-shell,
  #loginOverlay:not([style*="display: none"]) ~ #mobile-bottom-nav,
  #loginOverlay:not([style*="display: none"]) ~ #mobile-header { display: none !important; }
}

@media (max-width: 380px) {
  .mobile-app-page-body { padding-inline: 16px; }
  .mobile-current-card { padding: 24px 20px 22px; }
  .mobile-current-copy strong { font-size: 25px; }
  .mobile-quick-actions > button,
  .mobile-quick-actions > a { min-height: 114px; padding: 16px; }
  .mobile-account-card { margin-inline: -16px; }
}
