.paper-activity {
  --pa-bg: rgba(254, 253, 248, 0.92);
  --pa-line: #deddd6;
  --pa-ink: #201f1b;
  --pa-sub: #53534c;
  --pa-accent: #ac4318;
  position: fixed;
  top: calc(58px + env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  width: min(356px, calc(100vw - 28px));
  max-height: 65dvh;
  overflow: auto;
  z-index: 58;
  padding: 12px 15px;
  border-radius: 17px;
  border: 1px solid var(--pa-line);
  background: var(--pa-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--pa-ink);
  box-shadow:
    0 12px 34px -14px #17140f4a,
    inset 0 1px #ffffff40;
  animation: pa-arrive 0.24s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: left;
}
[data-home-theme="dark"] .paper-activity {
  --pa-bg: rgba(41, 40, 37, 0.93);
  --pa-line: #57554e;
  --pa-ink: #f6f3ec;
  --pa-sub: #bdbab0;
  --pa-accent: #ffa16e;
}
.pa-top,
.pa-top span,
.paper-activity .pa-title,
.pa-by,
.paper-activity small {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pa-top {
  justify-content: space-between;
  border-bottom: 1px solid var(--pa-line);
  padding-bottom: 7px;
  color: var(--pa-sub);
  font-size: 12px;
}
.pa-top span svg,
.pa-dot {
  color: var(--pa-accent);
}
.pa-top button,
.pa-more {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--pa-sub);
  font: inherit;
}
.pa-top button {
  width: 30px;
  height: 28px;
  margin: -4px -5px -4px 0;
  display: grid;
  place-items: center;
}
.pa-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 10px 0 2px;
}
.pa-row + .pa-row {
  border-top: 1px solid var(--pa-line);
  margin-top: 8px;
}
.pa-row > .pixel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.pa-by {
  font-size: 11px;
  font-weight: 500;
  color: var(--pa-sub);
  flex-wrap: wrap;
}
.pa-by i {
  font-style: normal;
}
.paper-activity .pa-title {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-size: 17px;
  color: var(--pa-ink);
  text-decoration: none;
  margin-top: 3px;
}
.pa-title svg {
  flex: none;
  color: var(--pa-sub);
}
.paper-activity p {
  margin: 4px 0;
  color: var(--pa-sub);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper-activity small {
  margin-top: 4px;
  font-size: 11px;
  color: var(--pa-sub);
}
.pa-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.paper-activity .pa-more {
  font-size: 12px;
  margin-top: 7px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pa-sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.paper-activity a:focus-visible,
.paper-activity button:focus-visible {
  outline: 2px solid var(--pa-accent);
  outline-offset: 2px;
}
@keyframes pa-arrive {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .paper-activity {
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: 10px;
    width: min(300px, calc(100vw - 20px));
    padding: 9px 11px;
  }
  .paper-activity:not(.is-expanded) .pa-row:not(.first),
  .paper-activity:not(.is-expanded) p {
    display: none;
  }
  .pa-row {
    padding-top: 7px;
  }
  .paper-activity .pa-title {
    font-size: 15px;
  }
  .pa-top {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paper-activity {
    animation: none;
  }
}
@media (max-width: 640px) {
  .paper-activity.is-working:not(.is-expanded) .pa-top {
    border: 0;
    padding: 0;
    position: absolute;
    top: 8px;
    right: 10px;
  }
  .paper-activity.is-working:not(.is-expanded) .pa-top span {
    display: none;
  }
  .paper-activity.is-working:not(.is-expanded) .pa-row.first {
    padding: 1px 21px 1px 0;
  }
  .paper-activity.is-working:not(.is-expanded) .pa-by {
    padding-right: 4px;
  }
}

.pa-by time {
  margin-left: auto;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.paper-activity .pa-review { display:inline-flex; align-items:center; gap:5px; background:var(--pa-ink); color:var(--pa-bg); border:0; border-radius:8px; padding:8px 12px; min-height:44px; margin-top:6px; cursor:pointer; font:inherit; font-size:13px; font-weight:600; }
.paper-activity .pa-review:disabled { opacity:.65; }
.paper-activity [role=alert] { display:block; margin-top:5px; font-size:13px; }

.paper-activity:not(.is-expanded) .pa-attention p { display:block; }
