/* Editorial desktop numerals, quiet mobile progress segments. */
.chapter-steps .chapter-number,.hero-copy .chapter-steps .chapter-number,dialog .chapter-steps .chapter-number{position:relative;display:grid;place-items:start center;width:36px;height:32px;padding-top:3px;box-sizing:border-box;border-radius:0;background:transparent;color:#90948e;font:400 14px/1.4 Mono,monospace;letter-spacing:.04em;box-shadow:none;transition:color .22s ease}
.chapter-steps .chapter-number:after{content:'';position:absolute;left:5px;right:5px;bottom:2px;height:2px;border-radius:1px;background:#3546d6;transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
.chapter-steps button[aria-pressed=true],.hero-copy .chapter-steps button[aria-pressed=true]{background:transparent}
.chapter-steps button[aria-pressed=true] .chapter-number{box-shadow:none;color:#3546d6}
.chapter-steps button[aria-pressed=true] .chapter-number:after{transform:scaleX(var(--step-progress,0));transition:none}
/* Keep the complete recording and its controls together on a small screen. */
@media(max-width:620px){
 html{scroll-snap-type:none}
 .chapter-desktop-only{display:none!important}
 .chapter-mobile-shell{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;height:calc(100svh - 32px);max-height:820px;min-height:390px;padding:8px 8px 4px;background:#f5f5f2;border-radius:24px;scroll-snap-align:start;scroll-margin-top:0}
 .chapter-mobile-tabs{display:flex;justify-content:center;gap:4px;flex:none}
 .chapter-mobile-tabs button{position:relative;appearance:none;border:0;border-radius:8px;width:48px;height:44px;padding:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .chapter-mobile-tabs button:before,.chapter-mobile-tabs button:after{content:'';position:absolute;left:4px;right:4px;top:20px;height:3px;border-radius:2px;background:#daddd7;transition:background .24s ease,transform .24s ease,opacity .24s ease}
 .chapter-mobile-tabs button:after{background:#3546d6;transform:scaleX(0);transform-origin:left;opacity:0;transition:opacity .2s ease}
 .chapter-mobile-tabs button[data-state=past]:before{background:#bfc6ee}
 .chapter-mobile-tabs button[aria-pressed=true]:after{transform:scaleX(var(--step-progress,0));opacity:1}
 .chapter-mobile-description{flex:none;min-height:78px;text-align:center;padding:0 6px;box-sizing:border-box}
 .chapter-mobile-description b{display:block;color:#3546d6;font-size:16px;line-height:1.35;font-weight:500}
 .chapter-mobile-description span{display:block;color:#6e736e;font-size:13px;line-height:1.45;margin-top:5px}
 .chapter-mobile-shell>.chapter-mobile-media{flex:1;min-height:0;max-height:none;width:100%;max-width:none;margin:0;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:transparent;touch-action:pan-y}
 .chapter-mobile-shell>.chapter-mobile-media video{height:100%;width:100%;object-fit:contain;border-radius:0}
 .chapter-mobile-nav{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:4px;flex:none;border-top:1px solid #e1e3df;padding-top:4px}
 .chapter-mobile-nav button{appearance:none;border:0;background:transparent;color:#3546d6;font-family:inherit;font-size:14px;font-weight:500;line-height:1.3;min-height:44px;padding:8px 4px;cursor:pointer;border-radius:12px}
 .chapter-mobile-nav button:disabled{color:#a7aaa6;cursor:default}
 .chapter-mobile-nav button:not(:disabled):active{background:#3546d610}
 .chapter-mobile-shell button:focus-visible{outline:2px solid #3546d6;outline-offset:1px}
 dialog .chapter-mobile-shell{height:calc(100svh - 225px);min-height:330px}
}
@media(prefers-reduced-motion:reduce){.chapter-steps .chapter-number,.chapter-steps .chapter-number:after,.chapter-mobile-tabs button:before,.chapter-mobile-tabs button:after{transition:none}}

/* The timer has a wide source canvas. Fit the device, not its empty backdrop. */
@media(max-width:620px){
 .chapter-mobile-shell[data-demo-kind="timer"]{height:auto;min-height:0;max-height:none;gap:10px;padding:8px 12px 6px}
 .chapter-mobile-shell[data-demo-kind="timer"] .chapter-mobile-description{min-height:0;padding-bottom:2px}
 .chapter-mobile-shell>.chapter-mobile-media[data-demo-kind="timer"]{position:relative;flex:none;aspect-ratio:var(--timer-aspect,360/660);border-radius:28px;isolation:isolate}
 .chapter-mobile-media[data-demo-kind="timer"] video{position:absolute;left:50%;top:50%;width:var(--timer-video-width,284.444%);height:var(--timer-video-height,109.091%);max-width:none;object-fit:fill;transform:translate(-50%,-50%);border-radius:0}
}
