.mobile-navigation{display:none}
.mobile-navigation[hidden]{display:none!important}
.mobile-view-switch svg,.time-mobile-expand[hidden]{display:none}
#memory-ui{--viewer-toggle-size:44px}
:is(#memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view],#photo-trails-toggle){
 display:grid;place-items:center;width:var(--viewer-toggle-size);height:var(--viewer-toggle-size);
 min-height:0;padding:0;border:0;border-radius:50%;
 background:var(--ui-surface,#09090bc9);
 color:var(--ui-icon,#eee6e17a);
 pointer-events:auto;
 touch-action:manipulation;
}
:is(#memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view],#photo-trails-toggle)[aria-pressed=true]{
 background:var(--ui-fill-selected,var(--Red10));
 color:var(--ui-text-emphasis,var(--Red100));
}
:is(#memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view],#photo-trails-toggle) svg{
 display:block;
 width:17px;
 height:17px;
 fill:none;
 stroke:currentColor;
 stroke-width:1.25;
 stroke-linecap:round;
 stroke-linejoin:round;
 pointer-events:none;
}
@property --mobile-map-fade {
 syntax:'<length>';
 inherits:false;
 initial-value:0px;
}
@media(max-width:620px){
 /* The common background extends behind the controls to the viewport edge. */
 #memory-ui>footer[data-mobile-view]::before{content:"";position:absolute;inset:-24px 0 0;z-index:-1;pointer-events:none;background:var(--scene-edge-bottom)}
 #memory-ui>footer[data-mobile-view]{display:grid;--mobile-stage-height:160px;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--mobile-stage-height);padding:0 0 calc(62px + env(safe-area-inset-bottom,0px));background:none;isolation:isolate;position:absolute;left:0;right:0;bottom:0}
 #memory-ui>footer>.mobile-navigation{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;pointer-events:auto;position:fixed;left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:30;margin:0}
 #memory-ui>footer>.mobile-navigation>.time-transport{grid-column:2;justify-self:end;background:var(--ui-surface-strong,#09090bed);border-radius:4px}
 .mobile-navigation>.time-transport .time-play{position:static;transform:none}
 #memory-ui>footer .mobile-view-switch{display:flex;gap:2px;padding:3px;border-radius:30px;background:var(--ui-surface,#09090bc9)}
 #memory-ui>footer .mobile-view-switch button{min-height:32px;padding:8px 10px;border:0;border-radius:30px;background:none;color:var(--ui-text,#eee6e180);font:10px/1.3 var(--font-mono);letter-spacing:.07em;text-transform:uppercase}
 #memory-ui>footer .mobile-view-switch button[aria-pressed=true]{background:var(--ui-fill-selected,var(--Red10));color:var(--ui-text-emphasis,var(--Red100))}
 #memory-ui>footer[data-mobile-view]>#memory-timeline,#memory-ui>footer[data-mobile-view]>#mini-map{display:block;grid-area:1/1;align-self:end;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 320ms ease,visibility 0s linear 320ms}
 #memory-ui>footer[data-mobile-view=timeline]>#memory-timeline,#memory-ui>footer[data-mobile-view=map]>#mini-map{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
 #memory-ui>footer[data-mobile-view=timeline]{--mobile-stage-height:196px}
 #memory-ui>footer[data-mobile-view=timeline]:has(.time-event-header){--mobile-stage-height:160px}
 #memory-ui>footer[data-mobile-view]:has(#trail-flight-choices:not([hidden])){z-index:45}
 #memory-ui>footer[data-mobile-view]>#mini-map{position:relative;left:auto;right:auto;bottom:auto;width:min(160px,calc(100vw - 32px));justify-self:center;margin:0;animation:none}
 #memory-ui>footer[data-mobile-view]>#memory-timeline{width:100%;height:var(--mobile-stage-height);--row-height:20px;padding:36px 16px 0;background:none}
 #memory-ui>footer[data-mobile-view]>#memory-timeline>.time-tools{position:absolute;left:50%;top:0;transform:translateX(-50%);width:max-content}
 #memory-ui>footer[data-mobile-view] .time-tools:has(.event-debug[open]){z-index:9}
 #memory-ui>footer[data-mobile-view]>#memory-timeline:has(>.event-debug){padding-top:0}
 #memory-ui>footer[data-mobile-view] .time-window[data-room-dates=true]{--time-header-height:22px}
 #memory-ui>footer[data-mobile-view] .time-tools :is(.time-mouse-look,.time-control-mode,.time-playback-divider){display:none}
 #memory-ui>footer[data-mobile-view] .time-tools .time-tool{min-height:32px}
 #memory-ui>footer[data-mobile-view] .time-playback-modes .time-tool{min-height:30px}
 /* Keep the actual play button and timestamp alive outside the fading surfaces. */
 #memory-ui>footer[data-mobile-view]>.mobile-navigation>.time-clock{position:relative;grid-column:2;left:auto;top:auto;bottom:auto;transform:none;justify-self:center;min-width:0;max-width:none;width:max-content;height:38px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;gap:4px;pointer-events:auto;z-index:6}
 #memory-ui>footer[data-mobile-view]>.mobile-navigation>.time-clock .time-play{position:static;top:auto;left:auto;transform:none;display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:0;padding:0}
 #memory-ui>footer[data-mobile-view]>.mobile-navigation>.time-clock time{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;padding:4px 6px}
 #memory-ui>footer[data-mobile-view]>.mobile-navigation .time-event-strip{display:contents}
 #memory-ui>footer[data-mobile-view]>.mobile-navigation .time-upcoming-sections{display:none}
 #memory-ui>footer[data-mobile-view]>.mobile-navigation .time-event-strip time{top:auto;max-width:none}
 #memory-ui>footer[data-mobile-view]>.mobile-navigation>.time-clock .time-source-day{position:absolute;bottom:calc(100% + 24px);left:50%;transform:translateX(-50%);max-width:140px}
 /* Paired with the production timeline's (window width - 44) span. */
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-track{margin-left:0;overflow:visible}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-now-line{left:50%}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-window[data-overview-dates=true] .time-now-line{left:76px}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-lanes{margin-left:-16px;padding-left:16px;-webkit-mask-image:none;mask-image:none}
 /* A fixed track viewport prevents roster changes or hover from resizing it.
    Longer contributor lists scroll inside the same compact area. */
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-window{height:100%!important;min-height:0;max-height:100%;touch-action:pan-y}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-lanes{height:100%;max-height:100%;display:flex;flex-direction:column;padding-top:8px;padding-bottom:8px;overflow-y:auto;overscroll-behavior:contain}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-face{width:22px;height:20px;padding:1px}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-face img{width:18px;height:18px}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-mark{height:20px}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-mark img{width:16px;height:16px}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-track:before{top:50%}
 #memory-ui>footer[data-mobile-view]>.view-actions{bottom:calc(100% + 10px);right:14px}
}
@media(max-width:620px) and (prefers-reduced-motion:reduce){
 #memory-ui>footer[data-mobile-view]{transition:none}
 #memory-ui>footer[data-mobile-view]>#memory-timeline,#memory-ui>footer[data-mobile-view]>#mini-map{transition:none}
}
@media(max-width:620px){
 /* A flexible spacer bottom-aligns short rosters without making the first rows
    unreachable when a longer roster needs to scroll. */
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-lanes::before{content:"";display:block;flex:1 0 0;min-height:0;pointer-events:none}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-lanes[data-single=true]{justify-content:center}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-lanes[data-single=true]::before{display:none}
 #memory-ui>footer[data-mobile-view]>#memory-timeline .time-lane{flex:0 0 var(--row-height)}
}

@media(max-width:620px){
 body{--mobile-dock-inset:max(16px,env(safe-area-inset-left),env(safe-area-inset-right))}
 #memory-ui{
  --mobile-dock-bottom:calc(12px + env(safe-area-inset-bottom,0px));
  --mobile-dock-gap:4px;
  --mobile-dock-side:calc(2 * var(--viewer-toggle-size) + var(--mobile-dock-gap));
 }
 #memory-ui>footer[data-mobile-dock]{
  --mobile-transport-height:calc(80px + env(safe-area-inset-bottom,0px));
  grid-template-rows:auto;
  padding-bottom:var(--mobile-transport-height);
 }
 #memory-ui>footer[data-mobile-dock]::before{
  inset:auto 0 0;
  height:calc(var(--mobile-dock-height,80px) + 24px);
  transition:height 520ms cubic-bezier(.33,0,.25,1),opacity 440ms ease-in-out;
 }
 #memory-ui>footer[data-mobile-dock][data-mobile-view=none]::before{opacity:.72}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline{
  --row-height:22px;
  --mobile-time-start:52px;
  --mobile-playhead-inset:24px;
  height:auto;
  padding-top:0;
 }
 #memory-ui>footer[data-mobile-dock]>:is(#memory-timeline,#mini-map){
  opacity:1;
  visibility:visible;
  pointer-events:auto;
 }
 #memory-ui>footer[data-mobile-dock]:is([data-mobile-view=timeline],[data-mobile-view=none])>#mini-map:not([data-mobile-leaving]),
 #memory-ui>footer[data-mobile-dock]:is([data-mobile-view=map],[data-mobile-view=none])>#memory-timeline:not([data-mobile-leaving]){display:none}
 #memory-ui>footer[data-mobile-dock]>:is(#memory-timeline,#mini-map)[data-mobile-leaving]{
  position:absolute;
  grid-area:auto;
  bottom:var(--mobile-transport-height);
  pointer-events:none;
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline[data-mobile-leaving]{left:0}
 #memory-ui>footer[data-mobile-dock]>#mini-map[data-mobile-leaving]{right:0}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline{transform-origin:right bottom}
 #memory-ui>footer[data-mobile-dock]>#mini-map{
  justify-self:end;
  width:min(188px,calc(100vw - 32px));
  margin-right:16px;
  transform-origin:right bottom;
 }
 #memory-ui>footer[data-mobile-dock]:is([data-mobile-view=both],[data-mobile-return-overlap])>#mini-map{
  width:132px;
  margin-bottom:4px;
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lanes{
  --mobile-map-fade:0px;
  --mobile-map-mask:linear-gradient(to right,#000 calc(100% - var(--mobile-map-fade)),
   #000a calc(100% - var(--mobile-map-fade)*.72),transparent calc(100% - var(--mobile-map-fade)*.07));
  -webkit-mask-image:var(--mobile-map-mask);
  mask:var(--mobile-map-mask) center bottom / 100% 100vh no-repeat no-clip;
  transition:--mobile-map-fade 520ms cubic-bezier(.33,0,.25,1);
 }
 #memory-ui>footer[data-mobile-dock][data-mobile-view=both]>#memory-timeline .time-lanes{--mobile-map-fade:145px}
 #memory-ui>footer[data-mobile-dock]>.mobile-navigation{
  position:absolute;
  grid-template-columns:44px minmax(0,1fr) 44px;
  justify-items:center;
  align-items:end;
  gap:0;
  pointer-events:auto;
 }
 #memory-ui[inert]>footer[data-mobile-dock]>.mobile-navigation,
 #memory-ui[inert]>footer[data-mobile-dock] .time-mobile-expand>svg{visibility:hidden}
 #memory-ui>footer[data-mobile-dock] .mobile-view-switch[hidden]{display:none}
 #memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view]{grid-row:1}
 #memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view=timeline]{grid-column:1}
 #memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view=map]{grid-column:3}
 body:has(>#opening[hidden]) #memory-ui>footer[data-mobile-dock]>.mobile-navigation{
  inset-inline:var(--mobile-dock-inset);
  bottom:var(--mobile-dock-bottom);
  grid-template-columns:repeat(2,var(--viewer-toggle-size)) minmax(0,1fr) var(--mobile-dock-side);
  gap:var(--mobile-dock-gap);
  pointer-events:none;
 }
 body:has(>#opening[hidden]) #memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view=map]{grid-column:2}
 body:has(>#opening[hidden]) #memory-ui>footer[data-mobile-dock]>.mobile-navigation>.time-clock{grid-column:3}
 #memory-ui>footer[data-mobile-dock] .mobile-navigation>button[data-view] span{display:none}
 #memory-ui>footer[data-mobile-dock]>.mobile-navigation>.time-clock{
  grid-column:2;
  grid-row:1;
  z-index:auto;
  height:64px;
  align-items:flex-end;
  gap:6px;
  pointer-events:none;
 }
 #memory-ui>footer[data-mobile-dock]>.mobile-navigation>.time-clock .time-mobile-readout{
  position:absolute;
  left:50%;
  top:0;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:min(240px,calc(100vw - 128px));
  overflow:hidden;
  padding:4px 6px;
  border-radius:4px;
  background:var(--ui-surface-strong,#09090bed);
 }
 #memory-ui>footer[data-mobile-dock]>.mobile-navigation>.time-clock .time-mobile-readout time{
  position:static;
  transform:none;
  background:none;
  padding:0;
  flex:none;
 }
 .time-mobile-author{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--person-color,var(--ui-text,var(--Red100)));
  font:10px/1.3 var(--font-mono);
  letter-spacing:.07em;
  text-transform:uppercase;
 }
 #memory-ui>footer[data-mobile-dock] .time-clock :is(button,select){pointer-events:auto}
 #memory-ui>footer[data-mobile-dock] .time-transport{height:44px}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline>.time-tools{
  position:static;
  transform:none;
  margin:0 auto;
 }
 #memory-ui>footer[data-mobile-dock] .time-tools:empty{display:none}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline[data-mobile-layout=expanded]{padding-top:26px}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-window{
  height:min(calc(var(--row-height)*max(1,var(--visible-rows)) + 6px), min(164px, 27dvh))!important;
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline[data-mobile-layout=compact] .time-window{height:64px!important}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline[data-mobile-layout=compact] .time-window[data-room-dates=true]{height:calc(64px + var(--time-heading-height))!important}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lanes{padding-block:3px}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lanes::before{content:none}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-now-line{
  top:1px;
  bottom:3px;
  left:calc(var(--mobile-time-start) + var(--mobile-playhead-inset));
  transform-origin:50% 100%;
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-mark{height:100%;z-index:5}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-mark:is(:hover,:focus-visible,.orb-linked,[data-scrub-preview]){z-index:6}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lane-global{
  flex:1;
  opacity:1;
  --person-color:var(--ui-text-emphasis,#cba6a5);
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-track{margin-left:calc(var(--mobile-time-start) - 22px)}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lane-global .time-track{margin-left:var(--mobile-time-start)}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lane-global .time-mark{top:50%;height:26px;margin-top:-13px}
 .time-mobile-expand:not([hidden]){
  position:absolute;
  z-index:9;
  left:16px;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  width:calc(var(--mobile-time-start) - 6px);
  height:64px;
  padding:0;
  background:none;
  color:var(--ui-icon,#eee6e1a6);
 }
 .time-mobile-expand>svg{
  width:14px;
  height:14px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
 }
 .time-mobile-expand[aria-expanded=true]{
  top:0;
  bottom:auto;
  width:34px;
  height:26px;
 }
 .time-mobile-expand[aria-expanded=true]>svg{rotate:180deg}
 .time-roulette{position:relative;flex:none;width:28px;height:64px;isolation:isolate}
 .time-mobile-expand[aria-expanded=true] .time-roulette{display:none}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-roulette-face{
  position:absolute;
  inset:50% auto auto 50%;
  width:24px;
  height:24px;
  padding:0;
  opacity:var(--portrait-opacity,1);
  transform:translate(-50%,calc(-50% + var(--portrait-y)))
   perspective(64px) rotateX(var(--portrait-tilt)) scale(var(--portrait-scale));
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-roulette-face img{
  width:100%;
  height:100%;
  filter:brightness(var(--portrait-light));
  border:1px solid var(--ui-border-strong,#cda59e8f);
  box-shadow:0 0 1px 1px #09070c,0 3px 5px 1px rgb(0 0 0 / var(--portrait-shadow));
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-roulette-face[data-author=true] img{
  filter:saturate(1);
  box-shadow:0 0 0 2px var(--person-color),0 0 12px color-mix(in srgb,var(--person-color) 35%,transparent);
 }
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-face img:not([data-portrait-ready]){visibility:hidden}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lane[data-deemphasized=true]{opacity:.60}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline[data-mobile-layout=expanded] .time-username{display:none}
 .time-layout-flight{
  position:fixed;
  inset:0;
  z-index:8;
  pointer-events:none;
  clip-path:inset(0 16px);
 }
 .time-layout-track{position:absolute;height:1px}
 #memory-timeline[data-mobile-reflow] .time-track::before{animation:time-mobile-lines-in var(--mobile-track-reflow) ease-out both}
 #memory-ui>footer[data-mobile-dock]>#memory-timeline[data-mobile-reflow] .time-lanes{overflow:visible}
 @keyframes time-mobile-lines-in{
  from{opacity:0;transform:translateY(-50%) scaleX(.92)}
  to{opacity:1;transform:translateY(-50%) scaleX(1)}
 }
 #memory-timeline[data-mobile-reflow] :is(.time-mark,.time-face){pointer-events:none}
}
@media(max-width:620px) and (any-pointer:coarse){
 body:has(>#opening[hidden]) #memory-ui:has(.time-window[data-room-dates=true])
  >footer[data-mobile-dock] .time-transport button{
  min-width:min(44px,calc((100vw - 2 * (var(--mobile-dock-inset) + var(--mobile-dock-side) + var(--mobile-dock-gap)) - 4px) / 3));
 }
}
@media(max-width:620px) and (prefers-reduced-motion:reduce){
 #memory-ui>footer[data-mobile-dock]::before,
 #memory-ui>footer[data-mobile-dock]>#memory-timeline .time-lanes{transition:none}
}
