/* Translucent capsule navigation, with a separate moving selection underneath. */
.app{padding-bottom:calc(107px + env(safe-area-inset-bottom))}
.navigation{
  isolation:isolate;width:min(calc(100% - 24px),514px);padding:5px;
  bottom:calc(9px + env(safe-area-inset-bottom));gap:0;
  border-radius:999px;border:1px solid #fff9;background:rgba(238,232,251,.84);
  box-shadow:0 12px 30px #4f39673b,inset 0 1px 0 #ffffffa9;
  -webkit-backdrop-filter:blur(19px) saturate(145%);backdrop-filter:blur(19px) saturate(145%);
}
.navigation button{
  position:relative;display:grid;align-content:center;justify-items:center;gap:4px;
  min-height:53px;min-width:0;padding:5px 2px 6px;border:0;border-radius:999px;
  background:transparent;color:#594a70;appearance:none;-webkit-appearance:none;
  -webkit-tap-highlight-color:transparent;font:inherit;line-height:1;
}
.navigation button.chosen{color:#412568;background:#d9c9f3}
.navigation button:focus-visible{outline:2px solid #7251a0;outline-offset:-3px}
.navigation svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.navigation button.chosen svg{stroke-width:1.9}
.navigation small{font-size:10px;font-weight:550;line-height:1.15;margin:0;pointer-events:none}
.navigation button.chosen small{font-weight:650}
@supports selector(:has(*)){
 .navigation{--tab-index:0}
 .navigation:has(button:nth-child(2).chosen){--tab-index:1}
 .navigation:has(button:nth-child(3).chosen){--tab-index:2}
 .navigation:has(button:nth-child(4).chosen){--tab-index:3}
 .navigation:before{
   content:"";position:absolute;z-index:-1;left:5px;top:5px;bottom:5px;
   width:calc((100% - 10px) / 4);border-radius:999px;pointer-events:none;
   background:linear-gradient(180deg,#e1d3f7,#d6c6ee);border:1px solid #c9b8e4;
   box-shadow:inset 0 1px 0 #ffffffa3;
   transform:translateX(calc(var(--tab-index)*100%));
 }
 .navigation button.chosen{background:transparent}
}
@media (prefers-reduced-motion:no-preference){
 .navigation:before{transition:transform .26s cubic-bezier(.22,.74,.28,1)}
 .navigation button{transition:color .18s ease,scale .14s ease}
 .navigation button:active{scale:.95}
}
@media (max-width:350px){.navigation small{font-size:9px}.navigation svg{width:18px;height:18px}}
