/* R52: primary phone surfaces fit the available viewport; full details remain in sheets. */
body.mobile-workspace{--mobile-nav-height:60px;padding-bottom:calc(60px + env(safe-area-inset-bottom) + 12px)}
.mobile-workspace .mobile-header{min-height:60px;padding:5px 14px}.mobile-workspace .mobile-header img{height:40px;width:76px}.mobile-workspace .mobile-header button{width:44px;height:44px}
.mobile-workspace .mobile-view{padding:12px 16px}.mobile-workspace h1{font-size:clamp(27px,7.6vw,36px);line-height:1.12;margin:0 0 10px}.mobile-workspace .mobile-intro{font-size:13px;line-height:1.4;margin:4px 0 12px}
.mobile-workspace .home-art{margin:-12px -16px 0;aspect-ratio:auto;height:clamp(112px,25svh,200px)}.mobile-workspace .home-intro{padding-top:12px}.mobile-workspace .home-intro>p{font-size:15px;line-height:1.45;margin:0 0 14px}.mobile-workspace .home-intro .mobile-primary{min-height:48px;padding:10px 14px}.mobile-workspace .home-secondary{margin-top:8px;gap:8px}.mobile-workspace .home-secondary>*{min-height:44px;padding:8px;font-size:12px}.mobile-workspace .home-footnote{margin:12px 0;font-size:11px}
.mobile-workspace .mobile-bottom a{min-height:50px}.mobile-workspace .mobile-bottom{height:calc(60px + env(safe-area-inset-bottom))}
#mobile-inside h1{font-size:24px;line-height:1.1;margin:0 0 10px}.mobile-workspace .mobile-section-trigger{min-height:48px;margin-bottom:8px;padding:8px 12px;font-size:15px}
.mobile-workspace .mobile-select-trigger{min-height:48px;padding:8px 12px;font-size:15px}.mobile-workspace #mobile-inside>label{display:block;font-size:11px;line-height:1.4;margin-bottom:8px}
.r52-primary-card{border:1px solid #8461a5;border-radius:12px;background:linear-gradient(145deg,#25172f,#14101c);padding:12px;color:#eddef8}.r52-primary-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.r52-primary-card header h2{font-size:20px;margin:0}.r52-primary-card header button{background:transparent;color:#dec2f5;border:1px solid #806193;border-radius:8px;min-height:44px;padding:6px 9px;font-size:12px;flex-shrink:0}.r52-summary-pair{font-size:14px;line-height:1.4;color:#f0e7f8;margin:10px 0}.r52-summary-copy{font-size:13px;line-height:1.5;margin:10px 0;color:#cebddc}.r52-record-facts{font:11px/1.5 monospace;color:#c6afd9;margin:8px 0}.r52-duration{font-size:36px;font-weight:300;margin:10px 0}.r52-summary-wave{display:block;width:100%;height:42px;margin:8px 0;color:var(--mobile-accent,#d3b0fa)}.r52-primary-action{min-height:46px;margin-top:10px;font-size:14px;padding:10px 12px}.r52-primary-card blockquote{font-size:14px;line-height:1.5;margin:12px 0;padding-left:12px;border-left:2px solid #bd93df}
.mobile-workspace #mobile-console{--section-frame:0px;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}.mobile-workspace #mobile-console>.public-console{min-height:0!important;height:auto!important}.mobile-workspace .r52-section-sheet{display:none;max-height:calc(100dvh - env(safe-area-inset-top) - 12px)}.mobile-workspace .r52-section-sheet[open]{display:flex;flex-direction:column}.r52-section-sheet .sheet-body{padding:8px;overflow-y:auto;min-height:0}.r52-section-sheet .sheet-header{flex-shrink:0}
#mobile-listen h1{font-size:24px;margin-bottom:4px}#mobile-listen .mobile-intro{font-size:12px;margin-bottom:10px}.mobile-workspace .listen-modes{padding:3px}.mobile-workspace .listen-modes button{min-height:44px;padding:6px;font-size:12px}#mobile-listen>label{font-size:11px;line-height:1.4;display:block;margin-top:8px}#mobile-audio-title{font-size:18px;line-height:1.2;margin:10px 0 4px}.mobile-workspace .mobile-pair-title{font-size:13px;line-height:1.35;margin:4px 0 8px}.mobile-workspace .mobile-wave{margin:8px 0 4px}.mobile-workspace .mobile-wave svg{height:36px}.mobile-workspace .mobile-progress label{font-size:11px}.mobile-workspace .mobile-progress>div{font-size:11px}.mobile-workspace .mobile-transport{padding-top:8px;gap:24px}.mobile-workspace .mobile-transport>.mobile-play{height:54px;width:54px}.mobile-workspace .mobile-transport>button{height:44px;width:44px}.mobile-workspace .mobile-status{font-size:11px;line-height:1.35;min-height:24px;margin:8px 0}.mobile-workspace .listen-details{padding-top:8px;gap:8px}.mobile-workspace .listen-details button{min-height:44px;font-size:12px}.mobile-workspace .mobile-limit{font-size:11px;line-height:1.45;margin:8px 0}
#mobile-playlist h1{font-size:24px;line-height:1.1;margin-bottom:8px}#mobile-playlist h1 br{display:none}#mobile-playlist h1 em{margin-left:6px}.mobile-form-panel .request-field{margin-bottom:10px}.mobile-form-panel legend{font-size:12px;padding-bottom:10px}.mobile-form-panel .request-field label{font-size:13px;margin-bottom:4px}.mobile-form-panel input,.mobile-form-panel select{min-height:44px;padding:8px 10px}.mobile-form-panel textarea{min-height:88px;height:clamp(88px,18svh,140px);padding:8px 10px;resize:vertical}.mobile-form-panel .field-help,.mobile-form-panel .brief-meta{font-size:11px;line-height:1.45;margin:4px 0}.mobile-form-panel .request-consent{font-size:13px;line-height:1.5;padding:8px 0;min-height:48px}.mobile-form-panel .request-privacy{font-size:12px;line-height:1.5;margin:10px 0}.mobile-form-panel .form-steps{margin:10px 0;gap:8px}.mobile-form-panel .form-steps button,.mobile-form-panel .request-submit{min-height:44px;padding:8px;font-size:14px}.mobile-form-panel .request-form-status{font-size:11px;line-height:1.45;margin:8px 0}
/* Shared sheet pickers, including private handoffs and evidence-page selection. */
dialog.mabe-picker{color:#f3eff8;background:#17101f;border:1px solid #80579e;border-radius:18px 18px 0 0;padding:0;width:min(100%,640px);max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);margin:auto auto 0;overflow:hidden;box-shadow:0 -12px 80px #0008}dialog.mabe-picker[open]{display:flex;flex-direction:column}dialog.mabe-picker::backdrop{background:#05030bc9;backdrop-filter:blur(5px)}.mabe-picker .sheet-header{position:static;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#2c2037;border-bottom:1px solid #66516f}.mabe-picker .sheet-header h2{font:600 20px/1.3 'Segoe UI',Arial,sans-serif;color:#f3eff8;margin:0}.mabe-picker .sheet-header button{flex-shrink:0;width:44px;height:44px;border:1px solid #8e68a9;border-radius:50%;background:#362247;color:#eee2fa;font-size:26px}.mabe-picker .sheet-body{padding:4px 16px calc(12px + env(safe-area-inset-bottom));min-height:0;overflow-y:auto;overscroll-behavior:contain}.mabe-picker .mobile-picker-option{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #67546e;min-height:48px;width:100%;padding:10px 4px;background:transparent;color:#eee2fa;text-align:left;font:16px/1.4 'Segoe UI',Arial,sans-serif}.mabe-picker .mobile-picker-option:after{content:'';width:20px;height:20px;flex-shrink:0;border:2px solid #bba2d0;border-radius:50%;box-sizing:border-box}.mabe-picker .mobile-picker-option[aria-selected=true]{color:#b8d5ff;font-weight:600}.mabe-picker .mobile-picker-option[aria-selected=true]:after{border-color:#b8d5ff;background:radial-gradient(circle,#b8d5ff 0 43%,transparent 48%)}.mabe-picker .mobile-picker-option:last-child{border-bottom:0}.mabe-picker .mobile-picker-option:focus-visible{outline:2px solid #d3b0fa;outline-offset:-2px;border-radius:6px}html:has(dialog.mabe-picker[open]){overflow:hidden}
@media(max-width:760px){body:not(.mobile-workspace) .mobile-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:10px 12px;background:#1b1128;border:1px solid #8461a5;border-radius:9px;color:#f3eff8;text-align:left;font-size:16px}.mobile-handoff-jump select[hidden]{display:none!important}.mobile-handoff-jump>.mobile-select-trigger{margin-top:6px}.mabe-picker .mobile-picker-option{touch-action:manipulation}}
@media(max-height:650px){.mobile-workspace .home-art{height:clamp(108px,22svh,140px)}.mobile-workspace .home-intro{padding-top:10px}.mobile-workspace .home-intro>p{font-size:14px;line-height:1.35;margin-bottom:10px}.mobile-workspace .home-intro h1{font-size:clamp(27px,7.4vw,32px);margin-bottom:8px}.mobile-workspace .mobile-view{padding:10px 14px}.mobile-workspace .home-art{margin:-10px -14px 0}.mobile-workspace .home-art>span{font-size:7px}.mobile-workspace .mobile-header{min-height:56px;padding-block:3px}.mobile-workspace .mobile-bottom{--mobile-nav-height:56px;height:calc(56px + env(safe-area-inset-bottom))}.mobile-workspace .mobile-bottom a{min-height:48px;gap:3px}.r52-primary-card{padding:10px}.r52-primary-card header h2{font-size:18px}.r52-summary-pair{font-size:13px;line-height:1.35;margin:7px 0}.r52-summary-wave{height:30px;margin:6px 0}.r52-record-facts{font-size:10px;margin:6px 0}.r52-primary-action{margin-top:8px;min-height:44px}#mobile-inside h1{font-size:22px;margin-bottom:8px}.mobile-workspace .mobile-section-trigger,.mobile-workspace .mobile-select-trigger{min-height:44px;padding:7px 10px;margin-bottom:6px}.mobile-workspace #mobile-inside>label{margin-bottom:6px}.mobile-workspace .mobile-progress label{display:block}.mobile-workspace .mobile-wave svg{height:28px}.mobile-workspace .mobile-transport{padding-top:6px}.mobile-workspace .mobile-status{margin:6px 0}.mobile-workspace .mobile-limit{font-size:10px;margin:6px 0}.mabe-picker .sheet-header h2{font-size:18px}.mabe-picker .mobile-picker-option{min-height:46px;padding-block:9px}}

select[hidden][aria-hidden=true]{display:none!important}

.mobile-workspace .home-art img{object-position:50% 15%}
#mobile-audio-title{position:absolute;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mobile-workspace .mobile-transport{gap:14px}
@media(max-height:650px){.mobile-workspace .home-art{height:clamp(148px,25svh,164px)}.mobile-form-panel .request-field{gap:4px;margin-bottom:8px}.mobile-form-panel textarea{height:88px;min-height:88px}.mobile-form-panel .brief-meta{margin:0}.mobile-form-panel legend{padding-bottom:6px}.mobile-form-panel .form-steps{margin:8px 0}}

/* R53: reserve only the actual bottom navigation height; no artificial page tail. */
body.mobile-workspace{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))}
@media(max-height:650px){body.mobile-workspace{--mobile-nav-height:56px}.mobile-form-panel{padding:10px}.mobile-form-panel .request-field{margin-bottom:6px}.mobile-form-panel .field-help{margin:2px 0}.mobile-form-panel legend{padding-bottom:4px}.mobile-form-panel .form-steps{margin:6px 0}.mobile-form-panel .request-form-status{margin:4px 0}.mobile-form-panel .request-field-pair{gap:6px}}

@media(max-height:650px){#mobile-listen>h1{font-size:26px;margin:4px 0}.mobile-form-panel textarea{height:72px;min-height:72px}.mobile-form-panel .request-form-status{font-size:10px;line-height:1.35}.mobile-form-panel .form-steps{margin:4px 0}.mobile-form-panel .brief-meta{font-size:10px}}

@media(max-height:650px){#mobile-listen{padding-bottom:2px}#mobile-listen>.mobile-intro{font-size:11px;line-height:1.4;margin-bottom:8px}.mobile-workspace .mobile-pair-title{font-size:12px;line-height:1.35}.mobile-workspace .mobile-wave svg{height:24px}}
@media(max-height:650px){#mobile-listen .mobile-status{margin:2px 0}}

/* The film uses the existing art slot and does not lengthen the primary page. */
.mobile-workspace .home-art:has(#mobile-film-stage:not([hidden]))>img,.mobile-workspace .home-art:has(#mobile-film-stage:not([hidden]))>span{visibility:hidden}
.mobile-workspace .home-art #mobile-film-stage{position:absolute;inset:0;margin:0;background:#050309;z-index:2}
.mobile-workspace .home-art #mobile-film{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;margin:0;border:0;border-radius:0}
.mobile-workspace .home-art #mobile-film-close{position:absolute;top:4px;right:4px;z-index:3;min-height:36px;padding:4px 8px;font-size:12px;background:#21132fe8}
.mobile-workspace .home-art #mobile-film-state{position:absolute;bottom:30px;left:8px;right:8px;z-index:3;background:#140b20d9;margin:0;font-size:11px}
.mobile-workspace .home-art #mobile-film-state:empty{display:none}

/* Persistent listening belongs in the header, never over a main action. */
body.mobile-workspace.has-mini{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))!important}
.mobile-workspace.has-mini .mobile-header>span{display:none}
.mobile-workspace.has-mini .mobile-header{gap:8px}
.mobile-workspace .mobile-header #mobile-mini{position:static;left:auto;right:auto;bottom:auto;transform:none;width:auto;min-width:0;min-height:44px;max-width:none;flex:1;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;backdrop-filter:none;gap:4px}
.mobile-workspace .mobile-header #mini-open{min-width:0;min-height:44px;flex:1;padding:2px;text-align:left}
.mobile-workspace .mobile-header #mini-open strong{display:block;font-size:11px;line-height:1.3;white-space:nowrap}
.mobile-workspace .mobile-header #mini-time{display:block;font-size:9px;line-height:1.4;white-space:nowrap}
.mobile-workspace .mobile-header #mini-toggle{width:44px;min-width:44px;height:44px;font-size:20px}
