.moments .moment {
  min-width: 0;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: .55rem;
  padding-inline: .75rem;
}
.moments .moment .moment-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
}
.moments .moment .moment-name {
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  background: transparent;
  color: inherit;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.appearance { margin-bottom: 1.5rem; }
.appearance button[aria-pressed=true] { border-color: currentColor; font-weight: 700; }
.export-app { margin-top: 1rem; }
/* Keep the action under the row as the finger moves. */
.entry-swipe {
  --action-width: 5.65rem;
  touch-action: pan-y pinch-zoom;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-block: .3rem;
}
.entry-swipe .entry {
  position: relative;
  width: 100%;
  min-height: 68px;
  padding: .75rem .85rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: inherit;
  color: var(--ink);
  background: var(--paper);
  transform: translateX(var(--swipe-x, 0px));
  transition: transform 230ms cubic-bezier(.22,.85,.25,1);
  animation: none;
  user-select: none;
  -webkit-user-select: none;
}
.entry-swipe .entry:last-child { border: 1px solid var(--line); }
.entry-swipe .entry:focus-visible { outline-offset: -3px; }
.entry-swipe .entry b { display: block; font-size: .96rem; }
.entry-swipe .entry time { flex: 0 0 auto; color: var(--muted); text-align: right; }
.entry-swipe .entry-note {
  display: block;
  margin-top: .13rem;
  color: var(--muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.entry-swipe.is-open { --swipe-x: calc(-1 * var(--action-width)); }
.entry-swipe.is-dragging .entry { transition: none; }
.entry-swipe .entry-delete {
  visibility: hidden;
  position: absolute;
  inset: .15rem 0 .15rem auto;
  width: var(--action-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .3rem;
  color: #fff;
  background: linear-gradient(150deg,#b84b58,#922b39 82%);
  border: 1px solid #ffffff50;
  border-radius: 16px;
  box-shadow: inset 0 1px 1px #ffffff57, inset 0 -1px 6px #47121c35;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
}
.entry-swipe .entry-delete svg { width: 1.15rem; height: 1.15rem; }
.entry-swipe .entry-delete:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.entry-swipe.is-open .entry-delete, .entry-swipe.is-dragging .entry-delete { visibility: visible; }
.swipe-note { margin: .1rem 0 .55rem; font-size: .875rem; color: var(--muted); }
.brand-motion {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  border-radius: 25%;
  overflow: hidden;
}
.brand-motion img { display: block; }
.brand-drawing { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .brand-motion img { animation: agugu-mark-in 220ms ease 640ms both; }
  .brand-drawing {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--soft);
    animation: agugu-trace-out 220ms ease 640ms both;
  }
  .brand-drawing path {
    stroke: var(--ink);
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-width: 13px;
    stroke-dasharray: 1;
    animation: agugu-trace 520ms cubic-bezier(.25,.65,.25,1) both;
  }
  .brand-drawing .brand-face { stroke-width: 5px; animation-duration: 260ms; animation-delay: 330ms; }
}
@keyframes agugu-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes agugu-mark-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes agugu-trace-out { from { opacity: 1; } to { opacity: 0; } }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .entry-swipe .entry-delete { -webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%); }
  @media (max-width: 760px) {
    body header {
      background: color-mix(in srgb, var(--bg) 88%, transparent);
      -webkit-backdrop-filter: blur(16px) saturate(145%);
      backdrop-filter: blur(16px) saturate(145%);
      box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--paper) 35%, transparent);
    }
    body .sidebar {
      background: color-mix(in srgb, var(--paper) 88%, transparent);
      -webkit-backdrop-filter: blur(16px) saturate(145%);
      backdrop-filter: blur(16px) saturate(145%);
    }
  }
}
@media (max-width: 650px) {
  .moments .moment {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    min-height: 4.5rem;
    padding: .5rem .15rem;
    gap: .28rem;
  }
  .moments .moment .moment-name { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .entry-swipe .entry { transition: none; } }


@media (max-width: 760px) {
  #nav {
    position: relative;
    isolation: isolate;
    touch-action: pan-y pinch-zoom;
  }
  #nav::before {
    content: "";
    position: absolute;
    inset: 4px auto 4px 0;
    width: var(--tab-width, 0px);
    transform: translateX(calc(var(--tab-x, 0px) + var(--tab-drag, 0px)));
    border-radius: 14px;
    pointer-events: none;
    background: linear-gradient(155deg, color-mix(in srgb, var(--paper) 60%, var(--soft)), var(--soft));
    border: 1px solid color-mix(in srgb, var(--paper) 50%, var(--line));
    box-shadow: inset 0 1px 2px #ffffff42, 0 3px 8px #192e271a;
  }
  #nav.tab-ready::before { transition: transform 230ms cubic-bezier(.22,.85,.25,1); }
  #nav.tab-dragging::before { transition: none; }
  #nav .mobile-link { z-index: 1; -webkit-user-drag: none; user-select: none; }
  body #nav .mobile-link.active { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  #nav.tab-ready::before { transition: none; }
}
