/* Student app shell. Mobile/tablet only; approved desktop layout stays intact. */
@media (max-width: 900px) {
  /* One document scroll, without the Windows scrollbar gutter inside the phone. */
  html:has(body.photo-option) {
    scrollbar-width: none; scrollbar-gutter: auto; overscroll-behavior-y: contain;
    scroll-padding-top: 80px; scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
  html:has(body.photo-option)::-webkit-scrollbar,
  body.photo-option::-webkit-scrollbar { display: none; width: 0; height: 0; }
  body.photo-option {
    --app-nav-height: 72px;
    --app-safe-bottom: env(safe-area-inset-bottom, 0px);
    --app-header-height: 68px;
    padding: 0 0 calc(var(--app-nav-height) + var(--app-safe-bottom)) !important;
  }
  body.photo-option .shell { width: 100%; min-width: 0; margin: 0 !important; padding: 0 !important; }
  body.photo-option .topbar {
    position: sticky; top: 0; z-index: 50; box-sizing: border-box;
    width: 100%; height: var(--app-header-height); min-height: var(--app-header-height);
    margin: 0; padding: 10px 16px; gap: 8px; border-radius: 0;
    background: var(--canvas); border: 0; border-bottom: 1px solid var(--line);
  }
  body.photo-option .topbar .header-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
  body.photo-option .topbar .breadcrumb, body.photo-option .topbar .header-divider { display: none; }
  .lms-app-wordmark { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .lms-app-wordmark strong { font-size: 15px; color: var(--ink); line-height: 1.2; letter-spacing: -.3px; }
  .lms-app-wordmark small { font-size: 11px; color: var(--muted); line-height: 1.2; }
  body.photo-option .topbar .header-actions { gap: 2px; }
  body.photo-option .topbar .icon-button { display: grid; place-items: center; width: 40px; height: 44px; min-width: 40px; padding: 9px; color: var(--muted); }
  body.photo-option .topbar .mobile-menu { display: grid; }
  body.photo-option .topbar .account { min-width: 40px; min-height: 44px; padding: 3px; }
  body.photo-option .topbar .account > :not(.avatar) { display: none; }
  body.photo-option .topbar .avatar.small { width: 34px; height: 34px; }
  body.photo-option .topbar .search-popover { top: calc(100% + 8px); left: 16px; right: 16px; width: auto; max-width: none; }
  body.photo-option .topbar .search-popover input { min-height: 46px; font-size: 16px; }
  body.photo-option main { width: 100%; max-width: none; min-width: 0; margin: 0; padding: 22px 16px 24px; }
  body.photo-option main > .page-heading { margin: 0 0 22px; gap: 12px; align-items: flex-start; }
  body.photo-option .page-heading h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.9px; }
  body.photo-option .page-heading p { font-size: 14px; line-height: 1.55; margin-top: 7px; }
  body.photo-option .page-heading > :is(.button, a.button) {
    width: auto; max-width: 100%; min-height: 44px; min-width: 0;
    padding: 10px 14px; font-size: 13px; line-height: 1.4; white-space: normal; flex: 0 0 auto;
  }
  body.photo-option :is(.section, .enrolled-workspace, .feedback-panel) { border-radius: 18px; }
  body.photo-option .section-heading { gap: 12px; }
  body.photo-option .section-heading h2 { font-size: 20px; letter-spacing: -.5px; line-height: 1.3; }
  body.photo-option .section-heading .text-button { min-height: 44px; font-size: 13px; }
  body.photo-option :is(.ui-field input, .ui-field select, .ui-field textarea) { font-size: 16px; }

  /* One drawer scroll region, stable close control and full touch targets. */
  body.photo-option .sidebar {
    top: 10px !important; bottom: 10px !important; left: 10px !important;
    height: auto !important; max-height: calc(100dvh - 20px) !important;
    width: min(310px, calc(100vw - 40px)) !important; padding: 62px 16px 12px !important;
    border-radius: 22px; overflow: hidden !important; display: flex; flex-direction: column;
    z-index: 90; transform: translateX(calc(-100% - 20px));
  }
  body.photo-option .sidebar.open { transform: translateX(0); }
  body.photo-option .sidebar > :not(#navigation) { flex-shrink: 0; }
  body.photo-option #sidebar > #navigation { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  body.photo-option #sidebar > #navigation::-webkit-scrollbar { display: none; width: 0; }
  body.photo-option .sidebar .mobile-close {
    display: grid !important; place-items: center; position: absolute !important;
    top: 12px !important; right: 12px !important; left: auto !important;
    width: 40px; height: 40px; min-width: 40px; padding: 9px;
    border: 1px solid #ffffff40; border-radius: 12px; background: #ffffff18; color: var(--lms-menu-ink, white);
  }
  body.photo-option .sidebar .brand { margin: 0 0 14px; }
  body.photo-option .sidebar .sidebar-student { padding: 0 2px 18px; margin-bottom: 8px; }
  body.photo-option .sidebar .sidebar-student-profile { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 12px; }
  body.photo-option .sidebar .sidebar-student-profile > img { width: 54px; height: 54px; flex: 0 0 54px; margin: 0; border-width: 2px; box-shadow: none; }
  body.photo-option .sidebar .sidebar-student-profile > span { display: flex; flex-direction: column; text-align: left; gap: 4px; min-width: 0; }
  body.photo-option .sidebar .sidebar-student-profile > b { display: block; position: static; margin-left: auto; font-size: 18px; opacity: .75; }
  body.photo-option .sidebar .sidebar-student-profile strong { font-size: 17px; }
  body.photo-option .sidebar .sidebar-student-profile small { font-size: 11px; }
  body.photo-option .sidebar .sidebar-student-profile em { display: none; }
  body.photo-option .sidebar .nav-link { min-height: 48px; font-size: 14px; padding: 12px; border-radius: 12px; gap: 12px; margin: 2px 0; }
  body.photo-option .sidebar .nav-link > svg { width: 21px; height: 21px; flex: 0 0 21px; opacity: .85; }
  body.photo-option .sidebar .nav-link.active { box-shadow: none; }
  body.photo-option .sidebar #navigation .nav-group-title { font-size: 10px; letter-spacing: .1em; min-height: 28px; margin: 16px 12px 5px; padding: 0; }
  body.photo-option .mobile-shade.visible { z-index: 85; }
  body.photo-option.lms-drawer-open { overflow: hidden; }

  /* Shared bottom navigation and support layers across phone and tablet. */
  body.photo-option .lms-app-nav {
    position: fixed; inset: auto 0 0; display: flex; z-index: 65;
    min-height: calc(var(--app-nav-height) + var(--app-safe-bottom)); box-sizing: border-box;
    padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + var(--app-safe-bottom));
    border-radius: 18px 18px 0 0; background: var(--lms-menu, #0a2870);
    border: 1px solid #ffffff18; box-shadow: 0 -5px 22px #0b1b3410; gap: 4px;
  }
  body.photo-option .lms-app-nav > :is(a,button) {
    display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center;
    gap: 3px; min-width: 0; min-height: 54px; padding: 2px; border: 0; border-radius: 12px;
    position: relative; background: transparent; color: var(--lms-menu-ink,white); font-size: 12px; line-height: 1.2; text-decoration: none;
  }
  body.photo-option .lms-app-nav svg { box-sizing: content-box; width: 21px; height: 21px; padding: 4px 12px; border-radius: 10px; opacity: .85; }
  body.photo-option .lms-app-nav [aria-current=page], body.photo-option .lms-app-nav [aria-expanded=true] {
    color: var(--lms-menu-ink,white); background: transparent; font-weight: 700;
  }
  body.photo-option .lms-app-nav [aria-current=page] svg,
  body.photo-option .lms-app-nav [aria-expanded=true] svg { opacity: 1; background: color-mix(in srgb, currentColor 16%, transparent); }
  body.photo-option .lms-app-nav [aria-current=page]::before { content: ''; position: absolute; top: -7px; left: calc(50% - 10px); width: 20px; height: 3px; border-radius: 0 0 3px 3px; background: currentColor; }
  body.photo-option .lms-app-nav:has([aria-expanded=true]) [aria-current=page]::before { opacity: 0; }
  body.photo-option .lms-support-launcher {
    width: 48px; height: 48px; right: 16px !important; bottom: calc(var(--app-nav-height) + var(--app-safe-bottom) + 14px);
    z-index: 60; box-shadow: 0 4px 14px #0b1b3424;
  }
  body.photo-option .lms-support-window[open] {
    inset: auto 10px calc(var(--app-nav-height) + var(--app-safe-bottom) + 10px);
    width: auto; height: min(620px,calc(100dvh - var(--app-nav-height) - var(--app-safe-bottom) - 28px));
    max-height: calc(100dvh - var(--app-nav-height) - var(--app-safe-bottom) - 28px); z-index: 80;
  }
  body.photo-option .toast { bottom: calc(var(--app-nav-height) + var(--app-safe-bottom) + 16px); }
  /* The app keeps its navigation; desktop explanations/footer stay on the website. */
  body.photo-option main > footer, body.photo-option .progress-information { display: none; }

  /* Home: learning first, with a swipeable course row and readable metadata. */
  body.photo-option.app-home .page-heading .app-mobile-greeting { display: block; }
  body.photo-option.app-home .page-heading .app-desktop-greeting { display: none; }
  body.photo-option.app-home .page-heading > #schedule-button { display: none; }
  body.photo-option.app-home .overview-composition { padding: 0; border: 0; background: transparent; box-shadow: none; margin-bottom: 22px; }
  body.photo-option.app-home .overview-composition > .section-heading { margin-bottom: 12px; }
  body.photo-option.app-home .overview-composition > .section-heading h2 { font-size: 16px; }
  body.photo-option.app-home .stats { gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
  body.photo-option.app-home .stats .studio-stat { min-height: 88px; padding: 12px 14px; border-radius: 15px; }
  body.photo-option.app-home .stats .stat-label { font-size: 12px; }
  body.photo-option.app-home .stats .stat-value { font-size: 28px; margin-top: 8px; }
  body.photo-option.app-home #courses { padding: 17px 0 14px; margin: 0; overflow: hidden; }
  body.photo-option.app-home #courses > .section-heading { margin: 0; padding: 0 16px 12px; }
  body.photo-option.app-home #courses .dashboard-final-course-grid {
    display: flex; flex-wrap: nowrap;
    gap: 12px; padding: 0 16px 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 16px;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  body.photo-option.app-home #courses .enrolled-course-card { width: auto; min-width: 0; flex: 0 0 86%; scroll-snap-align: start; }
  body.photo-option.app-home #courses .enrolled-thumbnail { height: 132px; aspect-ratio: auto; }
  body.photo-option.app-home #courses .enrolled-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
  body.photo-option.app-home #courses .enrolled-card-body { padding: 15px; }
  body.photo-option.app-home #courses .enrolled-card-body h3 { font-size: 20px; margin: 7px 0 12px; }
  body.photo-option.app-home #courses .enrolled-trainer { margin: 0 0 14px; }
  body.photo-option.app-home #courses .enrolled-trainer > small { display: none; }
  body.photo-option.app-home #courses .enrolled-trainer small { font-size: 10px; }
  body.photo-option.app-home #courses .enrolled-trainer strong { font-size: 13px; }
  body.photo-option.app-home #courses .enrolled-course-progress { font-size: 12px; }
  body.photo-option.app-home #courses .enrolled-resume-action { margin-top: 14px; padding-top: 12px; min-height: 56px; }
  body.photo-option.app-home #courses .enrolled-resume-action small { display: none; }
  body.photo-option.app-home #courses .enrolled-resume-action strong { font-size: 15px; }
  body.photo-option.app-home .dashboard-grid { display: flex; flex-direction: column; gap: 20px; }
  body.photo-option.app-home .main-column, body.photo-option.app-home .right-column { display: contents; }
  body.photo-option.app-home #courses { order: 0; }
  body.photo-option.app-home .schedule-card { order: 1; margin: 0; padding: 18px; }
  body.photo-option.app-home .notice-section { order: 2; margin: 0; padding: 18px; }
  body.photo-option.app-home .support-card { order: 3; width: 100%; margin: 0; padding: 18px; min-height: 0; }
  body.photo-option.app-home .support-card > div { flex: 1; }
  body.photo-option.app-home .studio-week { padding: 8px 0 14px; }
  body.photo-option.app-home .studio-week span small { font-size: 10px; }
  body.photo-option.app-home .studio-session { padding: 18px; }
  body.photo-option.app-home .studio-session h3 { font-size: 23px; }
  body.photo-option.app-home .studio-session p,body.photo-option.app-home .studio-session-trainer { font-size: 13px; }
  body.photo-option.app-home .studio-agenda-label { font-size: 10px; }
  body.photo-option.app-home .studio-session-trainer small { font-size: 11px; }

  /* Courses: status chips replace four large, repeated metric cards. */
  body.photo-option .enrolled-summary-cards {
    display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px 20px; padding: 0 16px 4px;
    overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px;
  }
  body.photo-option .enrolled-summary-card {
    display: flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto;
    padding: 10px 14px; min-height: 46px; border-radius: 12px; background: var(--card); border-color: var(--line); color: var(--muted);
  }
  body.photo-option .enrolled-summary-card[aria-pressed=true] { background: var(--lms-button,var(--primary)); color: var(--lms-button-ink,white); border-color: transparent; }
  body.photo-option .enrolled-summary-card > span { font-size: 13px; color: inherit; }
  body.photo-option .enrolled-summary-card > strong { font-size: 12px; margin: 0; color: inherit; background: color-mix(in srgb,currentColor 12%,transparent); padding: 3px 5px; border-radius: 5px; }
  body.photo-option .enrolled-summary-card > :is(small,b) { display: none; }
  body.photo-option .enrolled-workspace { padding: 0; border: 0; background: transparent; box-shadow: none; }
  body.photo-option .enrolled-section-heading { margin-bottom: 16px; align-items: center; }
  body.photo-option .enrolled-section-heading > div > span { display: none; }
  body.photo-option .enrolled-section-heading h2 { font-size: 18px; line-height: 1.3; }
  body.photo-option .enrolled-section-heading h2 b { font-size: 12px; }
  body.photo-option .enrolled-carousel-controls { gap: 6px; }
  body.photo-option .enrolled-carousel-controls button { width: 40px; height: 40px; }
  body.photo-option #enrolled-carousel-position { font-size: 11px; margin-right: 2px; }
  body.photo-option #enrolled-form { display: grid; grid-template-columns: minmax(0,1fr) 48px; gap: 10px; margin-bottom: 16px; }
  body.photo-option #enrolled-form > .ui-field:first-child { grid-column: 1; }
  body.photo-option #enrolled-form > .ui-field:first-child input { height: 52px; }
  body.photo-option #enrolled-form .app-course-filter-toggle { display: grid; place-items: center; min-width: 48px; height: 52px; padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); color: var(--primary); grid-column: 2; grid-row: 1; }
  .app-course-filter-toggle svg { width: 22px; height: 22px; }
  body.photo-option #enrolled-form > .is-select, body.photo-option #enrolled-form > button[type=reset] { display: none; }
  body.photo-option #enrolled-form.app-filters-open > .is-select { display: block; grid-column: 1 / -1; }
  body.photo-option #enrolled-form.app-filters-open > button[type=reset] { display: block; grid-column: 1 / -1; justify-self: start; min-height: 44px; }
  body.photo-option #enrolled-form .app-course-filter-toggle[aria-expanded=true] { background: var(--soft); border-color: var(--primary); }
  body.photo-option .enrolled-course-grid { gap: 16px; grid-auto-columns: 100%; }
  body.photo-option .enrolled-thumbnail { height: 178px; }
  body.photo-option .enrolled-card-body { padding: 18px; }
  body.photo-option .enrolled-card-body h3 { font-size: 22px; margin-bottom: 16px; }
  body.photo-option .enrolled-trainer { margin: 0 0 18px; align-items: center; flex-wrap: nowrap; }
  body.photo-option .enrolled-trainer > p { flex: 1 1 auto; min-width: 0; }
  body.photo-option .enrolled-trainer > small { margin: 0 0 0 auto; flex: 0 0 auto; font-size: 11px; }
  body.photo-option .enrolled-trainer p strong { font-size: 14px; }
  body.photo-option .enrolled-resume-action { margin-top: 18px; padding-top: 14px; }
  body.photo-option .enrolled-resume-action small { font-size: 9px; letter-spacing: .05em; }
  body.photo-option .enrolled-resume-action strong { font-size: 16px; }
  body.photo-option .enrolled-carousel-footer { margin-top: 12px; font-size: 12px; }
  body.photo-option .enrolled-list-note { font-size: 12px; }
  body.photo-option .enrolled-card-category { font-size: 12px; }

  /* Approved Courses pattern reused by every record-list filter bar. */
  body.photo-option :is(.app-filter-bar,#enrolled-form.app-filter-bar) {
    display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center;
    gap: 10px; padding: 0; margin: 0 0 16px; border: 0; background: transparent;
  }
  body.photo-option .app-filter-bar[hidden] { display: none !important; }
  body.photo-option :is(.app-filter-bar,#enrolled-form.app-filter-bar) > .app-filter-search {
    grid-column: 1; grid-row: 1; min-width: 0; width: 100%; margin: 0; height: 48px;
  }
  body.photo-option :is(.app-filter-bar,#enrolled-form.app-filter-bar) > .app-filter-search input {
    box-sizing: border-box; width: 100%; min-width: 0; height: 48px; min-height: 48px;
    border-radius: 13px; background: var(--card); color: var(--ink); border-color: var(--line); font-size: 16px;
  }
  body.photo-option :is(.app-filter-bar,#enrolled-form.app-filter-bar) > label.app-filter-search { position: relative; }
  body.photo-option .app-filter-bar > label.app-filter-search > span { position: absolute; top: 6px; left: 13px; font-size: 10px; color: var(--muted); }
  body.photo-option .app-filter-bar > label.app-filter-search input { padding: 20px 12px 5px; }
  body.photo-option :is(.app-filter-bar,#enrolled-form.app-filter-bar) > .app-filter-toggle {
    display: grid; position: relative; place-items: center; grid-column: 2; grid-row: 1;
    box-sizing: border-box; width: 44px; min-width: 44px; height: 46px; min-height: 44px;
    padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--primary);
  }
  body.photo-option .app-filter-toggle svg { width: 20px; height: 20px; }
  body.photo-option .app-filter-toggle[data-filter-count]::after {
    content: attr(data-filter-count); position: absolute; right: -4px; top: -5px; min-width: 16px;
    height: 16px; padding: 0 3px; display: grid; place-items: center; border-radius: 8px;
    background: var(--lms-button,var(--primary)); color: var(--lms-button-ink,white); font-size: 10px;
  }
  body.photo-option .app-filter-toggle[aria-expanded=true] { background: var(--soft); border-color: var(--primary); }
  body.photo-option .app-filter-bar > .app-filter-controls { display: none; grid-column: 1 / -1; min-width: 0; }
  body.photo-option .app-filter-bar.app-filters-open > .app-filter-controls {
    display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; padding: 14px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  }
  body.photo-option .app-filter-controls > :is(.ui-field,label,.attendance-date-filters) { min-width: 0; width: 100%; margin: 0; }
  body.photo-option .app-filter-controls > label > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
  body.photo-option .app-filter-controls > label > select,
  body.photo-option .app-filter-controls .attendance-date-filters input { height: 48px; min-width: 0; width: 100%; font-size: 16px; background: var(--card); color: var(--ink); border-color: var(--line); border-radius: 12px; }
  body.photo-option .app-filter-controls > button[type=reset] { justify-self: start; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
  body.photo-option .app-filter-controls .attendance-date-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-top: 0; border: 0; }
  body.photo-option .app-filter-controls .attendance-date-filters > span { grid-column: 1 / -1; font-size: 11px; }

  /* Consistent section spacing and metric cards on the other Student screens. */
  body.photo-option .attendance-overview { padding: 0; background: transparent; border: 0; box-shadow: none; margin-bottom: 22px; }
  body.photo-option .attendance-section-heading { margin-bottom: 12px; gap: 10px; }
  body.photo-option .attendance-section-heading h2 { font-size: 16px; line-height: 1.4; }
  body.photo-option .attendance-section-heading > span { display: none; }
  body.photo-option .attendance-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body.photo-option .attendance-metric { min-width: 0; padding: 14px; min-height: 108px; border-radius: 15px; }
  body.photo-option .attendance-metric > span { font-size: 12px; }
  body.photo-option .attendance-metric > strong { font-size: 28px; line-height: 1.25; margin: 8px 0 5px; }
  body.photo-option .attendance-metric > p { font-size: 11px; line-height: 1.5; }
  body.photo-option .attendance-record-panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  body.photo-option .attendance-panel-heading { gap: 12px; margin-bottom: 16px; }
  body.photo-option .attendance-panel-heading h2 { font-size: 18px; line-height: 1.4; }
  body.photo-option .attendance-panel-heading p { font-size: 13px; line-height: 1.55; }
  body.photo-option :is(.attendance-table-wrap,.progress-table-wrap) { border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
  body.photo-option :is(.assessment-state-filter,.flash-filter-row,.cw-library-filters) {
    display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
  }
  body.photo-option :is(.assessment-state-filter,.flash-filter-row,.cw-library-filters) > button {
    flex: 0 0 auto; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--card); color: var(--muted); font-size: 13px; white-space: nowrap;
  }
  body.photo-option :is(.assessment-state-filter,.flash-filter-row,.cw-library-filters) > button:is(.active,[aria-pressed=true]) {
    background: var(--lms-button,var(--primary)); color: var(--lms-button-ink,white); border-color: transparent;
  }

  /* Quiet capsule filters. Swipe + keyboard scrolling, without arrow overlays. */
  body.photo-option .app-pill-rail { position: relative; min-width: 0; margin: 0 0 18px; }
  body.photo-option .app-pill-rail > .app-pill-strip {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0;
    max-width: 100%; margin: 0; padding: 2px 1px; border: 0; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 8px;
  }
  body.photo-option .app-pill-rail.has-after > .app-pill-strip { mask-image: linear-gradient(to right,#000 calc(100% - 18px),transparent); }
  body.photo-option .app-pill-rail.has-before > .app-pill-strip { mask-image: linear-gradient(to right,transparent,#000 18px); }
  body.photo-option .app-pill-rail.has-before.has-after > .app-pill-strip { mask-image: linear-gradient(to right,transparent,#000 18px,#000 calc(100% - 18px),transparent); }
  body.photo-option .app-pill-strip::-webkit-scrollbar { display: none; }
  body.photo-option .app-pill-rail > .app-pill-strip > button {
    position: relative; isolation: isolate; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; margin: 0; padding: 9px 14px; border: 0; border-radius: 999px;
    background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; box-shadow: none;
  }
  body.photo-option .app-pill-rail > .app-pill-strip > button::before {
    content: ''; position: absolute; inset: 2px 0; z-index: -1; border-radius: inherit;
    background: var(--card); border: 1px solid color-mix(in srgb,var(--line) 70%,var(--card));
  }
  body.photo-option .app-pill-rail > .app-pill-strip > button:is(.active,[aria-pressed=true],[aria-selected=true],[aria-current=page]) {
    background: transparent; color: var(--primary); font-weight: 600; box-shadow: none;
  }
  body.photo-option .app-pill-rail > .app-pill-strip > button:is(.active,[aria-pressed=true],[aria-selected=true],[aria-current=page])::before {
    background: color-mix(in srgb,var(--primary) 9%,var(--card)); border-color: color-mix(in srgb,var(--primary) 22%,var(--card));
  }
  body.photo-option .app-pill-rail > .app-pill-strip > button::after { display: none; }
  body.photo-option .app-pill-strip > button > :is(strong,span):not(:only-child) { border-radius: 999px; }
  body.photo-option .app-pill-strip > .enrolled-summary-card > strong { padding: 3px 6px; font-size: 11px; font-weight: 600; line-height: 1.4; color: inherit; background: color-mix(in srgb,var(--muted) 10%,transparent); }
  body.photo-option .app-pill-strip > .enrolled-summary-card[aria-pressed=true] > strong { background: color-mix(in srgb,var(--primary) 12%,transparent); }
  body.photo-option main:has(#enrolled-form) > .page-heading > a[href^="student-progress.html"] { display: none; }
  body.photo-option :is(.button,.contact-view,.pdf-fit) { border-radius: 999px !important; }
  body.photo-option :is(#enrolled-form.app-filter-bar,.app-filter-bar) > .app-filter-toggle { border-radius: 50%; }
  body.photo-option .enrolled-carousel-controls {
    display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0; height: 46px;
    padding: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
    background: var(--card); box-shadow: 0 2px 5px #0b1b3403;
  }
  body.photo-option .enrolled-carousel-controls > span { display: none; }
  body.photo-option .enrolled-carousel-controls > button {
    box-sizing: border-box; display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; max-height: 44px;
    margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--primary); box-shadow: none;
  }
  body.photo-option .enrolled-carousel-controls > button + button { border-left: 1px solid var(--line); }
  body.photo-option .enrolled-carousel-controls > button svg { width: 18px; height: 18px; }
  body.photo-option .enrolled-carousel-controls > button:disabled { color: var(--muted); opacity: .35; }
  body.photo-option .enrolled-carousel-controls > button:not(:disabled):is(:hover,:focus-visible) { background: var(--soft); color: var(--primary); }

  /* App navigation: floating dock and a compact account/menu drawer. */
  body.photo-option { --app-dock-gap: 10px; padding-bottom: calc(var(--app-nav-height) + var(--app-dock-gap) + var(--app-safe-bottom) + 8px) !important; }
  body.photo-option .lms-app-nav {
    inset: auto 12px calc(var(--app-dock-gap) + var(--app-safe-bottom));
    min-height: var(--app-nav-height); padding: 7px; border-radius: 25px; gap: 3px;
    box-shadow: 0 8px 26px #091d3424; border-color: #ffffff1f;
  }
  body.photo-option .lms-app-nav > :is(a,button) { border-radius: 18px; min-height: 56px; font-size: 11px; gap: 5px; }
  body.photo-option .lms-app-nav svg { padding: 0; width: 22px; height: 22px; border-radius: 0; }
  body.photo-option .lms-app-nav [aria-current=page],body.photo-option .lms-app-nav [aria-expanded=true] { background: color-mix(in srgb,var(--lms-menu-ink,white) 15%,transparent); }
  body.photo-option .lms-app-nav [aria-current=page] svg,body.photo-option .lms-app-nav [aria-expanded=true] svg { background: transparent; }
  body.photo-option .lms-app-nav [aria-current=page]::before { display: none; }
  body.photo-option .lms-support-launcher { bottom: calc(var(--app-nav-height) + var(--app-dock-gap) + var(--app-safe-bottom) + 22px); right: 18px !important; }
  body.photo-option .sidebar { padding: 20px 16px 12px !important; border: 1px solid #ffffff20; }
  body.photo-option .sidebar .brand { width: calc(100% - 48px); min-height: 44px; margin: 0 0 18px; padding: 0; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; }
  body.photo-option .sidebar .brand::before { width: 26px; height: 30px; flex: 0 0 26px; }
  body.photo-option .sidebar .brand > img { width: 140px; max-width: calc(100% - 34px); height: 32px; max-height: 32px; object-fit: contain; }
  body.photo-option .sidebar .mobile-close { top: 20px !important; right: 14px !important; border-radius: 50%; width: 40px; height: 40px; }
  body.photo-option .sidebar .sidebar-student { padding: 0 0 16px; margin-bottom: 8px; }
  body.photo-option .sidebar .sidebar-student-profile { padding: 13px 12px; border-radius: 18px; background: #ffffff0b; border: 1px solid #ffffff12; justify-content: flex-start; }
  body.photo-option .sidebar .sidebar-student-profile > img { width: 48px; height: 48px; flex-basis: 48px; }
  body.photo-option .sidebar .sidebar-student-profile strong { font-size: 16px; }
  body.photo-option .sidebar .nav-link { border-radius: 999px; font-weight: 450; }
  body.photo-option .sidebar .nav-link.active { font-weight: 600; }
  body.photo-option .sidebar #navigation .nav-group-title { margin: 15px 14px 4px; min-height: 22px; font-size: 9px; letter-spacing: .11em; }

  /* Modal sheets: fixed controls, one scroll region, safe-area-aware actions. */
  html:has(body.photo-option.app-modal-open),html:has(body.photo-option.lms-drawer-open),body.photo-option.app-modal-open { overflow: hidden; }
  body.photo-option.app-modal-open :is(.lms-app-nav,.lms-support-launcher) { opacity: 0; pointer-events: none; }
  body.photo-option :is(#detail-dialog,.lms-support-window)::backdrop { background: #07132270; backdrop-filter: blur(4px); }
  body.photo-option #detail-dialog[open],body.photo-option .lms-support-window[open] {
    position: fixed; inset: auto 0 0; display: flex; flex-direction: column; box-sizing: border-box;
    width: 100%; max-width: 100%; margin: 0; padding: 0; max-height: calc(100dvh - 24px);
    border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0;
    background: var(--card); color: var(--ink); box-shadow: 0 -12px 45px #07132220; overflow: hidden;
  }
  body.photo-option #detail-dialog[open] { height: auto; }
  body.photo-option .lms-support-window[open] { height: min(680px,calc(100dvh - 24px)); }
  body.photo-option :is(#detail-dialog,.lms-support-window)[open]::before { content: ''; display: block; flex: 0 0 4px; width: 34px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: var(--line); }
  body.photo-option #detail-dialog .dialog-top,body.photo-option .lms-support-window > header {
    flex: 0 0 auto; padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line);
    background: var(--card); color: var(--ink); gap: 12px; min-height: 68px;
  }
  body.photo-option #detail-dialog .dialog-top h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.5px; }
  body.photo-option #detail-dialog .dialog-top .eyebrow { font-size: 9px; color: var(--primary); }
  body.photo-option #detail-dialog #close-dialog,body.photo-option .lms-support-window .support-close,
  body.photo-option .lms-support-window .support-back { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; min-width: 40px; padding: 9px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: var(--ink); }
  body.photo-option #close-dialog svg,body.photo-option .lms-support-window :is(.support-close,.support-back) svg { width: 20px; height: 20px; }
  body.photo-option #detail-dialog[open] > #dialog-content { flex: 1 1 auto; min-height: 0; margin: 0; padding: 18px 18px calc(24px + var(--app-safe-bottom)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; scrollbar-gutter: auto; }
  body.photo-option #dialog-content::-webkit-scrollbar { display: none; }
  body.photo-option #dialog-content .form-actions { gap: 10px; flex-wrap: wrap; margin-top: 20px; }
  body.photo-option #dialog-content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,.contact-dropdown-trigger) { border-radius: var(--field-radius,14px); min-height: var(--field-height,58px); font-size: 15px; }
  body.photo-option #dialog-content textarea { border-radius: var(--field-radius,14px); font-size: 15px; }
  body.photo-option #dialog-content .dialog-copy { font-size: 14px; line-height: 1.65; }
  body.photo-option #dialog-content .notice-row { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: start; gap: 8px 12px; padding: 16px 0; }
  body.photo-option #dialog-content .notice-row .notice-icon { grid-column: 1; width: 32px; height: 36px; }
  body.photo-option #dialog-content .notice-row .notice-text { grid-column: 2; min-width: 0; }
  body.photo-option #dialog-content .notice-row .notice-type { font-size: 9px; }
  body.photo-option #dialog-content .notice-row h3 { font-size: 14px; line-height: 1.5; margin: 4px 0; }
  body.photo-option #dialog-content .notice-row p { font-size: 12px; line-height: 1.6; }
  body.photo-option #dialog-content .notice-row .notice-destination { grid-column: 2; justify-self: start; min-height: 36px; padding: 7px 12px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--primary); }
  body.photo-option .lms-support-window .support-heading { align-items: center; gap: 10px; }
  body.photo-option .lms-support-window .support-heading strong { font-size: 18px; }
  body.photo-option .lms-support-window .support-scroll-area { padding: 16px; }
  body.photo-option .lms-support-window .support-history p { border-radius: 19px; padding: 12px 14px; font-size: 14px; line-height: 1.6; }
  body.photo-option .lms-support-window .support-quick-options { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; }
  body.photo-option .lms-support-window .support-quick-options button { flex: 0 0 auto; min-height: 40px; border-radius: 999px; padding: 8px 13px; font-size: 12px; }
  body.photo-option .lms-support-window > form { padding: 12px 16px calc(16px + var(--app-safe-bottom)); }
  body.photo-option .lms-support-window textarea { min-height: 50px; height: 50px; border-radius: 14px; font-size: 16px; padding: 12px 16px; }
  body.photo-option .lms-support-window .support-actions > button { border-radius: 999px; min-height: 44px; padding: 10px 18px; font-size: 13px; }
  body.photo-option .contact-dropdown-list { padding: 5px; border-radius: 13px; border-color: var(--line); background: var(--card); box-shadow: 0 12px 32px #10243e18; scrollbar-width: none; }
  body.photo-option .contact-dropdown-list [role=option] { min-height: 41px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
  body.photo-option .contact-dropdown-list [role=option]:is([aria-selected=true],.keyboard-active) { background: var(--soft); color: var(--primary); }
  body.photo-option .topbar .search-popover { border-radius: 22px; box-shadow: 0 12px 32px #10243e18; padding: 16px; }
  body.photo-option .topbar .search-popover input { border-radius: 14px; }
  /* Course navigation and progress details use the approved inner-app action pattern. */
  body.photo-option main .app-back-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; min-height: 40px; padding: 8px 13px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--primary); font-size: 13px; line-height: 1.4; text-decoration: none; }
  body.photo-option main .app-back-control > svg { flex: 0 0 18px; width: 18px; height: 18px; }
  body.photo-option .cw-breadcrumb { margin: 0 0 14px; }
  body.photo-option .cw-header { margin-bottom: 18px; padding: 0; }
  body.photo-option .cw-header h1 { font-size: 28px; line-height: 1.2; }
  body.photo-option .cw-navigation { padding: 14px; margin-bottom: 16px; border-radius: 18px; }
  body.photo-option .cw-simple-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  body.photo-option .cw-area-field { width: 100%; flex: 0 0 auto; }
  body.photo-option .cw-simple-toolbar > .app-pill-rail { width: 100%; margin: 0; }
  body.photo-option .cw-simple-tabs.app-pill-strip { justify-content: flex-start; gap: 8px; }
  body.photo-option .progress-table .progress-detail-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; width: auto; min-width: 0; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px !important; background: var(--card); color: var(--primary); font-size: 13px; line-height: 1.4; }
  body.photo-option .progress-detail-button .progress-arrow { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent !important; color: inherit; box-shadow: none; }
  body.photo-option .progress-arrow svg { width: 18px; height: 18px; }
  @media(prefers-reduced-motion:no-preference){
    body.photo-option .sidebar { transition: transform .22s cubic-bezier(.2,.8,.2,1); }
    body.photo-option :is(#detail-dialog,.lms-support-window)[open] { animation: app-sheet-enter .2s ease-out; }
    @keyframes app-sheet-enter{from{opacity:.5;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
  }

  @media (prefers-reduced-motion: no-preference) {
    body.photo-option main > .page-heading { animation: app-enter .3s ease-out both; }
    body.photo-option .lms-app-nav > :is(a,button) { transition: background .18s ease, transform .18s ease; }
    body.photo-option .lms-app-nav > :is(a,button):active { transform: scale(.95); }
    @keyframes app-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  }
}
@media (min-width: 901px) {
  .lms-app-wordmark, .app-mobile-greeting, .app-course-filter-toggle { display: none !important; }
}
@media (min-width: 600px) and (max-width: 900px) {
  body.photo-option main { padding-inline: 24px; }
  body.photo-option .topbar { padding-inline: 24px; }
  body.photo-option.app-home #courses .enrolled-course-card { flex-basis: 48%; }
  body.photo-option .enrolled-course-grid { grid-auto-columns: calc((100% - 16px)/2); }
}
@media (max-width: 360px) {
  body.photo-option .topbar { padding-inline: 10px; gap: 2px; }
  body.photo-option .topbar .header-left { gap: 2px; }
  body.photo-option .topbar .icon-button { min-width: 34px; width: 34px; padding: 7px; }
  .lms-app-wordmark strong { font-size: 13px; }
}

/* Signed-in course discovery entry. */
@media(max-width:900px){body.photo-option .page-heading .enrolled-explore-link{border-radius:999px!important;min-height:44px!important;}}
