.bottom-nav .nav-icon {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.bottom-nav .nav-icon svg {
  transition: transform 150ms ease-out;
}

.bottom-nav [data-pressed] .nav-icon svg {
  transform: translateY(3px) scale(.8);
  transition-duration: 80ms;
}

.bottom-nav [data-nav-release] .nav-icon svg {
  animation: nav-icon-release 300ms cubic-bezier(.2,.7,.3,1);
}

.bottom-nav [data-screen="history"][data-nav-release] .nav-icon path {
  transform-origin: 12px 12px;
  animation: nav-clock-tick 300ms ease-out;
}

.bottom-nav .upload[data-nav-release] .nav-icon path:first-child {
  animation: nav-upload-lift 300ms ease-out;
}

.bottom-nav [data-screen="settings"][data-nav-release] .nav-icon svg {
  animation-name: nav-gear-release;
}

@keyframes nav-icon-release {
  from { transform: translateY(3px) scale(.8); }
  43% { transform: translateY(-5px) scale(1.3); }
  to { transform: none; }
}
@keyframes nav-gear-release {
  from { transform: translateY(3px) scale(.8); }
  43% { transform: translateY(-5px) scale(1.3) rotate(21deg); }
  to { transform: none; }
}
@keyframes nav-clock-tick {
  42% { transform: rotate(34deg); }
}
@keyframes nav-upload-lift {
  42% { transform: translateY(-3px); }
}


@media (prefers-reduced-motion: reduce) {
  .bottom-nav .nav-icon svg,
  .bottom-nav .nav-icon path {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

}

.ribbon-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ribbon-card .pass-ribbon {
  position: absolute;
  right: -27px;
  bottom: 18px;
  width: 112px;
  padding: 3px 0;
  transform: rotate(-45deg);
  background: #087b24;
  color: white;
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  pointer-events: none;
  box-shadow: 0 2px 3px #0003;
}
.pass-ribbon::before, .pass-ribbon::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 16px;
  background: #064f19;
  transform: skewX(-35deg);
}
.pass-ribbon::before { left: 0; }
.pass-ribbon::after { right: 0; transform: skewX(35deg); }
.dark .pass-ribbon, body:not(.theme-light):has(.app-screen) .pass-ribbon {
  background: #46d75d;
  color: #091b0d;
}
[data-screen="subscription"] .ribbon-card[data-action="select-plan"] .pass-ribbon {
  right: -28px;
  bottom: 8px;
  width: 88px;
  padding-block: 1px;
  font-size: 10px;
  line-height: 13px;
}
[data-screen="subscription"] .ribbon-card[data-action="select-plan"] .pass-ribbon::before,
[data-screen="subscription"] .ribbon-card[data-action="select-plan"] .pass-ribbon::after {
  width: 11px;
}

/* Buttons move as a unit. Switches and sliders use their own state transitions. */
:is(button, a.signin, a.create-account, .actions a, input[type="submit"], input[type="button"]):not(:is(:disabled, [aria-disabled="true"], [aria-busy="true"], [role="switch"], [role="slider"], .toggle, .switch)) {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  @media (prefers-reduced-motion:no-preference) {
    transition: translate 210ms ease, scale 100ms ease-out;
    @media (hover:hover) and (pointer:fine) {
      &:hover { translate: 0 -2px; }
      &.plan-card:hover { translate: 0 -5px; }
    }
    &[data-pressed] { translate: 0 1px; scale: .98; }
  }
}
:is([role="switch"], [role="slider"], .history-card) {
  -webkit-tap-highlight-color: transparent;
}
:is(button,a[href],select,input,summary,[tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
