.pil {
  display: none;
}
@media (max-width: 767px) {
  .pil {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    max-width: calc(100vw - 24px);
    border-radius: 999px;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .2s;
  }
  .pil a,
  .pil button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, color .2s, transform .12s;
  }
  .pil a:active,
  .pil button:active {
    transform: scale(.92);
  }
  .pil span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font: 600 13px/1 var(--font, 'Geist', system-ui, sans-serif);
    opacity: 0;
    transition: max-width .35s cubic-bezier(.22, 1, .36, 1), opacity .25s;
  }
  .pil .on span {
    max-width: 80px;
    opacity: 1;
  }
  .pil svg {
    flex: none;
  }
  .pil a:focus-visible,
  .pil button:focus-visible {
    outline-offset: -4px;
  }
  .pil svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .pil,
  .pil a,
  .pil button {
    transition: none;
  }
}
@media (max-width: 767px) {
  .pil {
    gap: 4px;
    padding: 4px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .pil a,
  .pil button {
    min-width: 48px;
    height: 44px;
    padding: 0 12px;
  }
  .pil .on {
    gap: 8px;
    padding: 0 16px 0 12px;
  }
  .pil span {
    font-weight: 500;
    letter-spacing: 0;
  }
  .pil svg {
    stroke-width: 1.600;
  }
  .pil {
    isolation: isolate;
  }
  .pil::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
  }
}
@media (max-width: 767px) and (prefers-reduced-transparency: reduce) {
  .pil {
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 767px) {
  .pil {
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    -webkit-backdrop-filter: blur(2px) saturate(1.6);
    backdrop-filter: blur(2px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 10px 28px -10px rgba(24, 24, 27, .3), 0 1px 3px rgba(24, 24, 27, .1), inset 0 1.500px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(24, 24, 27, .08), inset 0 0 0 1px rgba(24, 24, 27, .05), inset 0 10px 14px -10px rgba(255, 255, 255, .7);
  }
  .pil::before {
    background: radial-gradient(100% 70% at 50% -20%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 62%);
  }
  .pil a,
  .pil button {
    text-shadow: 0 0 6px rgba(255, 255, 255, .9);
  }
  .pil a svg,
  .pil button svg {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9));
  }
  .pil .on {
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22));
    box-shadow: 0 3px 10px -4px rgba(24, 24, 27, .22), inset 0 1.500px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(24, 24, 27, .06);
  }
  :root[data-theme="dark"] .pil {
    background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .04);
  }
  :root[data-theme="dark"] .pil::before {
    background: radial-gradient(100% 70% at 50% -20%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 62%);
  }
  :root[data-theme="dark"] .pil a,
  :root[data-theme="dark"] .pil button {
    color: #e4e4e7;
    text-shadow: 0 0 6px rgba(0, 0, 0, .85);
  }
  :root[data-theme="dark"] .pil a svg,
  :root[data-theme="dark"] .pil button svg {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, .85));
  }
  :root[data-theme="dark"] .pil .on {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12));
    box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .12);
  }
}
@media (max-width: 767px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .pil {
    background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .04);
  }
  :root:not([data-theme]) .pil::before {
    background: radial-gradient(100% 70% at 50% -20%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 62%);
  }
  :root:not([data-theme]) .pil a,
  :root:not([data-theme]) .pil button {
    color: #e4e4e7;
    text-shadow: 0 0 6px rgba(0, 0, 0, .85);
  }
  :root:not([data-theme]) .pil a svg,
  :root:not([data-theme]) .pil button svg {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, .85));
  }
  :root:not([data-theme]) .pil .on {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12));
    box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .12);
  }
  :root:not([data-theme]) .pil a:focus-visible,
  :root:not([data-theme]) .pil button:focus-visible {
    outline-color: #fff;
  }
}
@media (max-width: 767px) {
  .pil button {
    position: relative;
  }
  .pil .pil-nb {
    position: absolute;
    top: 4px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #18181b;
    color: #fff;
    font: 600 10px/16px var(--font, 'Geist', system-ui, sans-serif);
    text-align: center;
    text-shadow: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
  }
  .pil .on .pil-nb {
    right: 4px;
  }
  :root[data-theme="dark"] .pil .pil-nb {
    background: #fff;
    color: #18181b;
    box-shadow: 0 0 0 2px rgba(24, 24, 27, .7);
  }
}
@media (max-width: 767px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .pil .pil-nb {
    background: #fff;
    color: #18181b;
    box-shadow: 0 0 0 2px rgba(24, 24, 27, .7);
  }
}
