#wall-pairs {
  --pair-ink: #183c39;
  --pair-line: #c4cec2;
  --pair-serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  box-sizing: border-box;
  margin: 0 0 clamp(1.75rem, 4vw, 3.25rem);
  color: var(--pair-ink);
}
#wall-pairs *, #wall-pairs *::after { box-sizing: border-box; }
#wall-pairs .pair-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--pair-line);
}
#wall-pairs h2 { margin: 0 0 .35rem; color: var(--pair-ink); font: 650 clamp(1.45rem, 3vw, 2rem)/1.45 var(--pair-serif); }
#wall-pairs .pair-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.05rem; margin: 0; }
#wall-pairs .pair-choices a {
  padding: .65rem 0;
  color: #485f59;
  font: 500 .93rem/1.5 system-ui,sans-serif;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
#wall-pairs .pair-choices a[aria-current="true"] { color: #11574e; border-color: currentColor; font-weight: 700; }
#wall-pairs .pair-panel { scroll-margin-top: 1.5rem; }
#wall-pairs .pair-panel[hidden] { display: none; }
#wall-pairs h3 { margin: 1.1rem 0 .9rem; color: var(--pair-ink); font: 550 clamp(1.1rem, 2vw, 1.35rem)/1.55 var(--pair-serif); }
#wall-pairs .pair-papers { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(.75rem,2vw,1.45rem); padding: .25rem .18rem .35rem; }
#wall-pairs figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: .9rem;
  margin: 0;
  padding: clamp(.9rem,2.2vw,1.45rem);
  color: #293c36;
  background: #f5edd9;
  border: 1px solid #d7ccae;
  box-shadow: 0 2px 3px #28382b12;
  transform: rotate(-.45deg);
}
#wall-pairs figure + figure { background: #e6ede3; border-color: #c3d1c2; transform: rotate(.35deg); }
#wall-pairs blockquote { color: inherit; margin: 0; padding: 0; border: 0; background: transparent; font: 560 clamp(1.1rem,2.35vw,1.65rem)/1.65 var(--pair-serif); overflow-wrap: anywhere; }
#wall-pairs figcaption { margin: 0; font: 500 .83rem/1.5 system-ui,sans-serif; }
#wall-pairs figcaption a { padding: .3rem 0; color: #485b4d; text-decoration: underline; text-decoration-color: #85968b; text-underline-offset: .18em; }
#wall-pairs .pair-follow { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.2rem; margin: .65rem 0 0; flex-wrap: wrap; }
#wall-pairs .pair-follow p { margin: 0; color: #253e37; font: 500 1rem/1.75 system-ui,sans-serif; flex: 1 1 16rem; }
#wall-pairs .pair-follow a { display: inline-block; padding: .55rem 1rem; border: 1px solid #265e52; border-radius: .2rem; color: #fffdf4; background: #225b50; font: 600 .95rem/1.55 system-ui,sans-serif; white-space: nowrap; text-decoration: none; }
#wall-pairs .pair-follow a:hover { background: #194b41; }
#wall-pairs a:focus-visible { outline: 3px solid #b76524; outline-offset: 3px; }
#wall-pairs .pair-privacy { margin: .55rem 0 0; color: #52655c; font: .88rem/1.6 system-ui,sans-serif; }
@media(max-width: 36rem) {
  #wall-pairs .pair-heading { display: block; }
  #wall-pairs .pair-choices { gap: 1.1rem; }
  #wall-pairs .pair-choices a { min-height: 44px; padding-top: .55rem; }
  #wall-pairs .pair-papers { gap: .65rem; }
  #wall-pairs .pair-follow { align-items: flex-start; flex-direction: column; }
  #wall-pairs .pair-follow p { flex: auto; }
  #wall-pairs figcaption a { display: inline-flex; align-items: center; min-height: 36px; }
  #wall-pairs figure { gap: .4rem; }
}
@media(max-width: 22rem) {
  #wall-pairs .pair-papers { grid-template-columns: 1fr; }
}

#wall-pairs .pair-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem .85rem; }
#wall-pairs .pair-share { padding: .55rem .15rem; border: 0; background: transparent; color: #285d50; font: 550 .93rem/1.55 system-ui,sans-serif; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
#wall-pairs button:focus-visible, #wall-pairs textarea:focus-visible { outline: 3px solid #b76524; outline-offset: 3px; }
#wall-pairs #pair-share-manual { margin-top: .5rem; }
#wall-pairs [hidden] { display: none !important; }
#wall-pairs #pair-share-manual label, #wall-pairs #pair-share-status { color: #2d574f; font: 500 .9rem/1.55 system-ui,sans-serif; }
#wall-pairs #pair-share-text { display: block; width: 100%; max-width: 38rem; margin-top: .3rem; border: 1px solid var(--pair-line); padding: .55rem .7rem; background: #fffef9; color: #183c39; font: 1rem/1.55 system-ui,sans-serif; }
#wall-pairs #pair-share-status { margin: .3rem 0; }
#wall-pairs #pair-share-status:empty { margin: 0; }
