:root {
  --community-red: #8c0000;
  --community-red-deep: #620000;
  --community-ink: #191b1a;
  --community-muted: #6b706d;
  --community-paper: #fdfdfb;
  --community-soft: #fff6f4;
  --community-tint: #f7eeee;
  --community-wash: #fffaf8;
  --community-green: #3f5550;
}

.user-byline {
  color: var(--community-red, #7e211a);
  font-weight: 700;
  text-decoration: none;
}

.user-byline:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.founder-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  margin-left: 0.32em;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff6cc, #e3b341 58%, #b8860b);
  color: var(--community-red, #8c0000);
  font-size: 0.62em;
  font-weight: 800;
  line-height: 1;
  vertical-align: 0.14em;
  box-shadow: 0 0 0 1.5px var(--community-red, #8c0000), 0 1px 2px rgba(80, 30, 0, 0.28);
}

.founder-medal::before {
  content: "创";
}

.reader-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 22px;
  padding: 13px 0;
  border-top: 1px solid var(--reader-theme-border, #e5e7e3);
  border-bottom: 1px solid var(--reader-theme-border, #e5e7e3);
}

.reader-author > a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.reader-author-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--community-red, #8c0000);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 800;
}

.reader-author > a > span:last-child {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
}

.reader-author small {
  grid-column: 1 / -1;
  color: #929894;
  font-size: 0.62rem;
}

.reader-author strong {
  color: #303632;
  font-size: 0.82rem;
}

.reader-author em {
  color: #7e8580;
  font-size: 0.66rem;
  font-style: normal;
}

.reader-author button,
.public-follow {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border:  solid var(--community-red, #8c0000);
  border-radius: 4px;
  background: var(--community-red, #8c0000);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.reader-author-edit {
  display: none !important;
}

.reader-edit,
.reader-export,
.reader-favorite,
.reader-like,
.reader-share {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid rgba(25, 27, 26, 0.1);
  border-radius: 4px;
  background: #fdfdfb;
  color: #666d68;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.reader-edit:hover,
.reader-export:hover,
.reader-favorite:hover,
.reader-favorite[aria-pressed="true"],
.reader-like:hover,
.reader-like[aria-pressed="true"],
.reader-share:hover {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 22%, transparent);
  background: #f6eceb;
  color: var(--community-red);
}

.reader-edit svg,
.reader-export svg,
.reader-favorite svg,
.reader-like svg,
.reader-share svg {
  width: 17px;
  height: 17px;
}

.reader-favorite[aria-pressed="true"] svg,
.reader-like[aria-pressed="true"] svg {
  fill: currentColor;
}

.reader-favorite:disabled,
.reader-like:disabled,
.reader-export:disabled {
  cursor: wait;
  opacity: 0.72;
}

.reader-author button[data-following="true"],
.public-follow[aria-pressed="true"] {
  background: #fff;
  color: var(--community-red, #8c0000);
}

.reader-author button svg,
.public-follow svg {
  width: 15px;
  height: 15px;
}

.public-profile-main {
  padding: 42px 0 72px;
}

.public-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: #6e7771;
  font-size: 0.78rem;
  text-decoration: none;
}

.public-profile-back svg {
  width: 15px;
  height: 15px;
}

.public-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 20px 26px;
  min-height: 176px;
  padding: 32px 36px;
  border-top:  solid var(--community-red, #8c0000);
  background: #fff;
  box-shadow: 0 14px 38px rgba(30, 34, 31, 0.08);
}

.public-profile-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 190px;
  height: 120px;
  background: url("./assets/cloud-gray-top.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.public-profile-avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--community-red, #8c0000);
  color: #fff;
  font: 800 2rem/1 "Noto Serif SC", "Songti SC", serif;
}

.public-profile-copy,
.public-profile-stats,
.public-follow {
  position: relative;
  z-index: 1;
}

.public-profile-copy h1 {
  margin: 6px 0 5px;
  color: #202522;
  font: 800 2rem/1.25 "Noto Serif SC", "Songti SC", serif;
}

.public-profile-copy p {
  margin: 0;
  color: #7a827d;
  font-size: 0.78rem;
}

.public-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 18px;
  margin: 0;
}

.public-profile-stats div {
  min-width: 72px;
  padding-left: 18px;
  border-left: 1px solid #e0e3df;
}

.public-profile-stats dt {
  color: #838a85;
  font-size: 0.65rem;
}

.public-profile-stats dd {
  margin: 4px 0 0;
  color: #242a26;
  font: 750 1.2rem/1 Arial, sans-serif;
}

.public-follow {
  min-width: 86px;
}

.public-posts {
  margin-top: 42px;
}

.public-posts-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-visibility-rail {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 148px;
  padding: 3px;
  border: 1px solid #e2e5e1;
  border-radius: 8px;
  background: #f1f0ec;
}

.profile-visibility-rail button {
  min-height: 32px;
  padding: 5px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6f7671;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.profile-visibility-rail button:hover,
.profile-visibility-rail button:focus-visible {
  color: var(--community-red, #8c0000);
  outline: none;
}

.profile-visibility-rail button.is-on {
  background: #fff;
  color: var(--community-red, #8c0000);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--community-red, #8c0000) 8%, transparent), 0 6px 14px rgba(42, 36, 33, 0.08);
}

.profile-course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.profile-course-chips[hidden] {
  display: none;
}

.profile-course-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #e2e5e1;
  border-radius: 8px;
  background: #fff;
  color: #4f5651;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-course-chip small {
  color: #8a908b;
  font-size: 0.72rem;
  font-weight: 750;
}

.profile-course-chip:hover,
.profile-course-chip:focus-visible {
  border-color: #d7b4ac;
  background: #fff4ef;
  color: var(--community-red, #8c0000);
  outline: none;
}

.profile-course-chip:hover small,
.profile-course-chip:focus-visible small {
  color: #a45a4a;
}

.profile-course-chip.is-on {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  background: var(--community-red, #8c0000);
  color: #fff8f4;
}

.profile-course-chip.is-on small {
  color: rgba(255, 244, 234, 0.82);
}

.public-post-list.is-private-view .note-tile-face {
  border-color: #e7dfd8;
  background:
    linear-gradient(180deg, rgba(252,250,248,0.96), #f7f3ef 58%, #f3eee8),
    radial-gradient(120% 80% at 100% 0%, rgba(120, 90, 80, 0.04), transparent 46%);
}

.public-posts-toolbar {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
}

.public-posts-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(104px, 0.72fr));
  gap: 8px;
  align-items: center;
}

body[data-page="module"] .public-posts-filters input,
body[data-page="module"] .public-posts-filters select {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #e2e5e1;
  border-radius: 4px;
  background: #fff;
  color: #303633;
  font-size: 0.78rem;
}

.public-posts-toolbar .content-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.profile-note-manage {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}
.profile-note-manage .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e5e1;
  border-radius: 999px;
  background: #fff;
  color: #3c433f;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: none;
}
.profile-note-manage .button svg {
  width: 14px;
  height: 14px;
}
.profile-note-manage .button.is-on {
  color: var(--community-red, #8c0000);
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 36%, transparent);
  background: color-mix(in srgb, var(--community-red, #8c0000) 8%, #fff);
}
.profile-batch-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 2px;
  padding: 8px 10px 8px 12px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 16%, #e4e6e2);
  border-radius: 12px;
  background: color-mix(in srgb, var(--community-soft, #fff8f6) 70%, #fff);
}
.profile-batch-toolbar[hidden] { display: none !important; }
.profile-batch-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f4641;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}
.profile-batch-all input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--community-red, #8c0000);
}
.profile-batch-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.profile-batch-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #e2e5e1;
  border-radius: 999px;
  background: #fff;
  color: #3c433f;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: none;
}
.profile-batch-actions .button svg {
  width: 13px;
  height: 13px;
}
.profile-batch-actions .button[data-profile-batch="delete"] {
  color: color-mix(in srgb, var(--community-red, #8c0000) 78%, #3a2a28);
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 22%, transparent);
  background: #fff;
}
.profile-batch-actions .quiet-link {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #6d746c;
  font-size: 0.74rem;
  font-weight: 700;
}
#profile-batch-count {
  color: #6d746c;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
.profile-unlock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e7d6d2;
  border-radius: 6px;
  background: #fbf6f4;
}
.profile-unlock-banner[hidden] { display: none !important; }
.profile-unlock-banner strong {
  display: block;
  color: #6d1212;
  font-size: 0.9rem;
}
.profile-unlock-banner p {
  margin: 4px 0 0;
  color: #7a817c;
  font-size: 0.78rem;
  line-height: 1.5;
}
.note-tile.is-manage .note-tile-face {
  padding-top: 16px;
  padding-left: 40px;
}
.note-tile.is-manage .note-tile-badges {
  min-height: 22px;
  align-items: center;
}
.note-tile-pick {
  position: absolute;
  top: 16px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.note-tile-pick input {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  margin: 0;
  accent-color: var(--community-red, #8c0000);
  cursor: pointer;
}

body[data-page="module"] .public-posts-toolbar .content-tools {
  margin: 0;
}

body[data-page="module"] .public-posts-toolbar .content-tools select {
  width: auto;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 0.74rem;
}

.public-post-edit,
.note-tile-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent);
  border-radius: 999px;
  background: rgba(255, 248, 244, 0.92);
  color: var(--community-red, #8c0000);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.public-post-edit svg,
.note-tile-edit svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.note-tile-edit:hover,
.public-post-edit:hover {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 32%, transparent);
  background: #fff4ef;
}

.note-tile-private {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 3px;
  background: #f6eeee;
  color: var(--community-red, #8c2119);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.note-tile-private svg {
  width: 11px;
  height: 11px;
}

.public-post-list {
  display: grid;
  gap: 28px;
}

.public-course-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.public-course-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid #e8e2dc;
}

.public-course-heading h3 {
  margin: 0;
  color: #2f342f;
  font: 560 1.02rem/1.35 "Noto Serif SC", "Songti SC", serif;
}

.public-course-heading h3 a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.public-course-heading h3 a:hover,
.public-course-heading h3 a:focus-visible {
  color: var(--community-red, #8c0000);
}

.public-course-heading span {
  color: #8a9285;
  font-size: 0.78rem;
  font-weight: 450;
}

.public-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#panel-notes .public-posts-heading {
  display: none;
}

.person-link,
.person-plain {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #4a534f;
  font-size: 0.78rem;
  font-weight: 450;
  line-height: 1.35;
  text-decoration: none;
}

.person-link:hover,
.person-link:focus-visible {
  color: var(--community-red, #8c0000);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-tile-topics .person-link,
.note-tile-topics .person-plain,
.reader-meta .person-link,
.reader-meta .person-plain {
  background: transparent;
  border-radius: 0;
}

.public-post {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 24px 26px 21px;
  border-top:  solid var(--community-red, #8c0000);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 35, 32, 0.07);
}

.public-post .meta-line {
  min-height: 24px;
  display: flex;
  gap: 6px;
}

.public-post-meta {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.public-post-private {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 3px;
  background: #f6eeee;
  color: var(--community-red, #8c2119);
  font-size: 0.64rem;
  font-weight: 700;
}

.public-post-private svg {
  width: 12px;
  height: 12px;
}

.public-post .meta-line a {
  padding: 4px 7px;
  border-radius: 3px;
  background: #eef0ed;
  color: #59615c;
  font-size: 0.64rem;
  text-decoration: none;
}

.public-post h3 {
  margin: 16px 0 9px;
  font: 750 1.12rem/1.5 "Noto Serif SC", "Songti SC", serif;
}

.public-post h3 a {
  color: #242925;
  text-decoration: none;
}

.public-post p {
  margin: 0;
  color: #69716c;
  font-size: 0.8rem;
  line-height: 1.8;
}

.public-post footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.public-post footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--community-red, #8c0000);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.public-post footer svg {
  width: 14px;
  height: 14px;
}

.public-post time {
  color: #929893;
  font-size: 0.66rem;
}

.public-post-empty,
.public-profile-error {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: #858c87;
}

.public-post-empty svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .public-profile-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .public-profile-stats {
    grid-column: 1 / -1;
  }

  .public-posts-filters {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }

  .public-posts-filters input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .public-profile-main {
    padding-top: 24px;
  }

  .public-profile-hero {
    grid-template-columns: auto 1fr;
    padding: 24px 20px;
  }

  .public-profile-avatar {
    width: 62px;
    height: 62px;
    font-size: 1.5rem;
  }

  .public-profile-copy h1 {
    font-size: 1.55rem;
  }

  .public-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .public-profile-stats div {
    min-width: 0;
    padding-left: 10px;
  }

  .public-follow {
    grid-column: 1 / -1;
    width: 100%;
  }

  .public-posts-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-visibility-rail {
    width: 100%;
  }

  .public-post-list {
    grid-template-columns: 1fr;
  }

  .public-posts-filters {
    grid-template-columns: 1fr 1fr;
  }

  .public-posts-filters input {
    grid-column: 1 / -1;
  }

  .reader-author em {
    display: none;
  }
}

.topnav .profile-nav-link,
.reader-header nav .profile-nav-link {
  display: inline-flex;
  width: auto;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 2px;
  color: var(--community-red);
  white-space: nowrap;
}

.topnav .profile-nav-link svg,
.reader-header nav .profile-nav-link svg {
  width: 17px;
  height: 17px;
}

.profile-nav-link span {
  font-size: 0.78rem;
  font-weight: 750;
}

.account-trigger-avatar,
.profile-nav-link .account-trigger-avatar {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--community-red, #8c0000);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-trigger-avatar img,
.account-popover-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topnav .profile-nav-link::after {
  display: none;
}

.account-nav {
  position: relative;
  z-index: 2200;
  flex: 0 0 auto;
}

.account-popover {
  position: fixed;
  z-index: 10000;
  width: 286px;
  padding: 17px;
  border: 1px solid rgba(25, 27, 26, 0.08);
  border-radius: 6px;
  background: rgba(253, 253, 251, 0.985);
  box-shadow: 0 20px 50px rgba(25, 27, 26, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.account-popover::before {
  content: "";
  position: absolute;
  right: 19px;
  top: -6px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(25, 27, 26, 0.08);
  border-right: 0;
  border-bottom: 0;
  background: #fdfdfb;
  transform: rotate(45deg);
}

.account-popover[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-popover-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(25, 27, 26, 0.08);
}

.account-popover-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--community-red, #8c0000);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-weight: 800;
  text-decoration: none;
}

.account-popover-avatar:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
}

.account-popover-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-popover-head strong {
  color: var(--community-ink);
  font-size: 0.82rem;
}

.account-popover-head small {
  overflow: hidden;
  color: var(--community-muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover-head em {
  color: var(--community-red);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.account-popover nav {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.account-popover nav a,
.account-popover nav button {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #5f6661;
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-popover nav a::after {
  display: none !important;
}

.account-popover nav a:hover,
.account-popover nav button:hover {
  background: #f1f2ef;
  color: var(--community-red);
}

.account-popover nav [data-account-logout] {
  margin-top: 4px;
  border-top: 1px solid rgba(25, 27, 26, 0.08);
  border-radius: 0 0 4px 4px;
  color: var(--community-red, #8c0000);
}

.account-popover nav svg {
  width: 15px;
}

.account-popover nav strong {
  color: var(--community-red);
}

.reader-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.reader-heading-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
}

.reader-heading-aside .reader-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.reader-heading-aside .reader-author > a {
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.reader-heading-aside .reader-author-avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  overflow: hidden;
}

.reader-heading-aside .reader-author > a > span:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 2px;
}

.reader-heading-aside .reader-author small {
  display: block;
  color: #8a918d;
  font-size: 0.52rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.reader-heading-aside .reader-author em {
  display: none;
}

.reader-heading-aside .reader-author strong {
  max-width: 48px;
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-heading-aside .reader-author button {
  min-height: 26px;
  padding: 3px 6px;
  font-size: 0.58rem;
}

.reader-heading-aside .reader-author-edit {
  display: none !important;
}

.reader-heading-aside .reader-author button span {
  display: none;
}

.reader-heading-aside .reader-aside-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.reader-heading-aside .reader-edit,
.reader-heading-aside .reader-export,
.reader-heading-aside .reader-favorite,
.reader-heading-aside .reader-like,
.reader-heading-aside .reader-share,
.reader-heading-aside .reader-private-badge {
  margin-top: 0;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  flex-direction: column;
  gap: 2px;
  padding: 7px 2px 5px;
  border: 0;
  background: transparent;
  font-size: 0.58rem;
}

.toast[data-global-toast] {
  z-index: 1000;
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent);
  border-left: 3px solid var(--community-red);
  border-radius: 4px;
  background: #fff;
  color: #303532;
  box-shadow: 0 14px 36px rgba(25, 27, 26, 0.16);
}

body.has-site-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.has-site-footer > .site-shell,
body.has-site-footer > main {
  min-width: 0;
  flex: 1 0 auto;
}

body.has-site-footer > main:not(.reader-main) {
  width: 100%;
}

body.has-site-footer > header {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.site-footer {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  border-top: 3px solid var(--community-red);
  background: #1d211f;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer-inner {
  width: var(--front-shell, min(1600px, calc(100% - 40px)));
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 36px;
  margin: 0 auto;
}

.footer-identity {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 78px;
  color: white;
  text-decoration: none;
}

.footer-identity-mark {
  display: block;
  width: auto;
  height: 46px;
  max-width: 72px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  align-self: center;
  opacity: 0.96;
}

.footer-identity-copy {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 1px;
  width: auto;
}

.footer-wordmark {
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.98;
}

.footer-en {
  display: block;
  width: auto;
  height: 12px;
  margin-top: 0;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.88;
}

.footer-identity small {
  display: none;
  color: var(--community-red, #8c0000);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a.active {
  color: white;
}

.footer-links a.active {
  box-shadow: inset 0 -2px var(--community-red);
}

.footer-links .footer-admin-link {
  color: rgba(255, 255, 255, 0.48);
}

.footer-admin-link svg {
  width: 14px;
  height: 14px;
}

.footer-legal {
  justify-self: end;
  display: grid;
  gap: 7px;
  text-align: right;
}

.footer-legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.71rem;
  line-height: 1.7;
}

.footer-legal p span {
  color: rgba(255, 255, 255, 0.38);
}

.footer-icp {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  line-height: 1.5;
  text-decoration: none;
}

.footer-icp:hover {
  color: white;
}

.footer-icp.is-pending {
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.info-main,
.profile-main {
  padding-bottom: 58px;
}

.profile-access-main {
  width: min(980px, calc(100% - 40px));
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  margin: 54px auto 80px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--community-paper);
  box-shadow: 0 18px 55px rgba(25, 27, 26, 0.08);
}

body[data-module="profile"]:has(.important-reminder) .profile-access-main {
  margin-top: 178px;
}

.auth-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 44px;
  overflow: hidden;
  background: #e7e9e6;
}

.auth-intro::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -45px;
  width: 280px;
  height: 190px;
  background: url("./assets/cloud-gray-top.png") center / contain no-repeat;
  opacity: 0.1;
}

.auth-intro h1 {
  max-width: 320px;
  margin: 12px 0 18px;
  color: var(--community-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 2.25rem;
  line-height: 1.35;
}

.auth-intro > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--community-muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.auth-intro ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.auth-intro li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #535b56;
  font-size: 0.8rem;
}

.auth-intro li svg { width: 17px; color: var(--community-red); }

.auth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 44px 52px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 34px;
  padding: 3px;
  border-radius: 5px;
  background: #eff1ee;
}

.auth-forgot-row {
  margin: -6px 0 0;
  text-align: right;
}
.auth-login-row,
.auth-login-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 2px 0 0;
}
.auth-login-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
}
.auth-check,
.auth-remember,
.auth-form > label.auth-check,
.auth-form > label.auth-remember,
.auth-form > label.auth-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6d746f;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}
.auth-form input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  flex: 0 0 15px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  accent-color: var(--community-red);
}
.auth-forgot-row button,
.auth-login-row button,
.auth-login-bar button {
  border: 0;
  background: transparent;
  color: var(--community-red);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}
.auth-reset-copy {
  margin: 0;
  color: #737a75;
  font-size: 0.78rem;
  line-height: 1.7;
}
.auth-panel[data-mode="forgot"] { justify-content: flex-start; padding-top: 40px; padding-bottom: 34px; }

.points-page-main { padding: 42px 0 80px; display: grid; gap: 22px; }
.points-status-grid { display: grid; grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr); gap: 18px; align-items: start; }
.points-section-copy { margin: 10px 0 0; color: var(--community-muted); font-size: 0.76rem; line-height: 1.7; }
.points-earn-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.points-earn-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 4px; color: var(--community-muted); }
.points-earn-list li + li { border-top: 1px solid rgba(25, 27, 26, 0.06); }
.points-earn-list svg { width: 16px; margin-top: 2px; color: var(--community-green); }
.points-earn-list strong { display: block; color: var(--community-ink); font-size: 0.82rem; }
.points-earn-list small { display: block; margin-top: 3px; color: #8b908c; font-size: 0.7rem; line-height: 1.55; }
.points-earn-list em { color: var(--community-red); font-style: normal; font-weight: 800; }
.points-ledger { padding: 28px; border-radius: 6px; background: var(--community-paper); box-shadow: 0 8px 28px rgba(25, 27, 26, 0.055); }
.points-ledger .section-heading-row { margin-bottom: 8px; }
.points-ledger p { margin: 6px 0 0; color: var(--community-muted); font-size: 0.74rem; line-height: 1.7; }
.points-panel a { color: var(--community-red); font-size: 0.74rem; font-weight: 700; }
@media (max-width: 860px) {
  .points-status-grid { grid-template-columns: 1fr; }
}

.account-page-main { padding: 42px 0 70px; }
.account-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.account-page-head a { display: inline-block; margin-bottom: 10px; color: var(--community-red); font-size: 0.76rem; font-weight: 700; }
.account-page-head h1 { margin: 7px 0 8px; color: var(--community-ink); font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif; font-size: 2.4rem; }
.account-page-head p { margin: 0; color: var(--community-muted); }
.account-page-head button,
.account-page-head span {
  border: 0;
  background: transparent;
  color: var(--community-red);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}
.account-page-list {
  padding: 8px 4px 20px;
}
.account-page-main .favorite-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.library-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.library-column {
  min-width: 0;
}
.library-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.library-column-head h2 {
  margin: 0 0 4px;
  color: var(--community-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.2rem;
}
.library-column-head p {
  margin: 0;
  color: var(--community-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}
.library-column-head > span {
  flex: 0 0 auto;
  color: var(--community-red);
  font-size: 0.74rem;
  font-weight: 750;
  cursor: default;
}
.library-card-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-page-main .library-split .favorite-list,
.library-split .favorite-list {
  grid-template-columns: 1fr;
}
.library-card,
.thought-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid rgba(25, 27, 26, 0.08);
  border-radius: 8px;
  background: #fbfbf9;
}
.library-card + .library-card,
.contribution-list.library-card-list li + li {
  border-top: 0;
}
.library-card a,
.thought-card a {
  color: var(--community-ink);
  text-decoration: none;
}
.library-card a:hover,
.thought-card a:hover {
  color: var(--community-red);
}
.library-card strong,
.thought-card strong {
  display: block;
  font-size: 0.86rem;
}
.library-card span,
.library-card small,
.thought-card span,
.thought-card small {
  color: var(--community-muted);
  font-size: 0.72rem;
}
.thought-card .thought-quote {
  margin: 6px 0;
  color: var(--community-ink);
  font-size: 0.8rem;
  line-height: 1.55;
}
.settings-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(720px, 100%);
  margin: 0 auto 18px;
}
.settings-toc a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 14%, transparent);
  border-radius: 6px;
  background: var(--front-soft, #fbf6f5);
  color: var(--community-red, #8c0000);
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}
.settings-toc a:hover {
  background: #f7eceb;
}
.settings-toc a i {
  width: 14px;
  height: 14px;
}
.profile-settings-stack {
  display: grid;
  gap: 18px;
  width: min(720px, 100%);
  margin: 0 auto;
}
body[data-module="profile"] .profile-main {
  width: min(720px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
body[data-module="profile"] .profile-identity {
  grid-template-columns: 1fr;
  gap: 18px;
}
body[data-module="profile"] .profile-form,
body[data-module="profile"] .password-form,
body[data-module="profile"] .delete-account-form {
  grid-template-columns: 1fr;
}
.appearance-school-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.auth-school-picker.appearance-school-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.appearance-school-card {
  width: 100%;
  position: relative;
  z-index: 1;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.appearance-school-card > * {
  pointer-events: none;
}
.appearance-auto-logo {
  min-height: 28px;
  color: var(--school-accent, var(--community-red, #8c0000));
}
.appearance-auto-logo svg {
  width: 22px;
  height: 22px;
}
.appearance-hint {
  color: var(--community-muted, #666b68);
  font-size: 0.72rem;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .appearance-school-picker {
    grid-template-columns: 1fr;
  }
}
.settings-subhead {
  margin: 4px 0 0;
  color: var(--community-ink);
  font-size: 0.92rem;
}
.settings-subhead.danger,
.profile-button.danger {
  color: var(--community-red, #8c0000);
}
.delete-account-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(25, 27, 26, 0.08);
}
.profile-button.danger {
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  background: var(--community-soft, color-mix(in srgb, var(--community-red) 6%, #fff));
}
.profile-button.danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.settings-avatar-actions {
  margin: 14px 0 8px;
}

#member-center {
  width: min(780px, calc(100% - 40px));
  padding-top: 28px;
  padding-bottom: 72px;
}
#member-center .profile-identity {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0;
  padding: 22px 22px 16px;
  border: 1px solid rgba(36, 28, 22, 0.08);
  border-top: 2px solid var(--community-red, #8c0000);
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}
#member-center .profile-identity-main {
  align-items: center;
  gap: 16px;
}
#member-center .eyebrow {
  display: none;
}
#member-center .profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
#member-center .profile-identity-main h1 {
  margin: 0 0 2px;
  font-size: 1.42rem;
  line-height: 1.25;
}
#member-center .profile-identity-main p {
  font-size: 0.8rem;
}
#member-center .settings-avatar-actions {
  margin: 10px 0 0;
  gap: 6px;
}
#member-center .avatar-button,
#member-center .avatar-save,
#member-center #remove-avatar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(36, 28, 22, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #5c564f;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}
#member-center .avatar-button {
  color: var(--community-red, #8c0000);
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 22%, transparent);
}
#member-center .avatar-save:disabled {
  opacity: 0.45;
  cursor: default;
}
#member-center .profile-identity-aside {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "points links logout"
    "track track track";
  align-items: center;
  gap: 14px 28px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 28, 22, 0.06);
}
#member-center .profile-points-chip {
  grid-area: points;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
#member-center .profile-points-chip strong {
  font-size: 1.2rem;
}
#member-center .profile-identity-aside .level-track {
  grid-area: track;
  height: 3px;
  max-width: 220px;
  margin: 0;
  border-radius: 99px;
  background: #efe8e2;
}
#member-center .profile-identity-aside .level-track span {
  border-radius: inherit;
}
#member-center .profile-quick-links {
  grid-area: links;
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: end;
  align-items: center;
  gap: 18px 32px;
}
#member-center .profile-quick-links a {
  min-height: 0;
  margin: 0;
  padding: 2px 0;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6d6560;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}
#member-center .profile-quick-links a:nth-child(4) {
  grid-column: 2;
}
#member-center .profile-quick-links a:nth-child(5) {
  grid-column: 3;
}
#member-center .profile-quick-links a + a {
  margin-left: 0;
  box-shadow: none;
}
#member-center .profile-quick-links a:hover {
  background: transparent;
  color: var(--community-red, #8c0000);
}
#member-center .profile-identity-aside > button {
  grid-area: logout;
  justify-self: end;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a8178;
  font-size: 0.76rem;
  font-weight: 650;
}
#member-center .profile-identity-aside > button:hover {
  color: var(--community-red, #8c0000);
}
#member-center .settings-toc {
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 6px;
  gap: 0;
  border: 1px solid rgba(36, 28, 22, 0.08);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #fffcf9;
}
#member-center .settings-toc a {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #7a726c;
  font-weight: 650;
}
#member-center .settings-toc a:hover,
#member-center .settings-toc a.is-current {
  background: transparent;
  color: var(--community-red, #8c0000);
  border-bottom-color: var(--community-red, #8c0000);
}
#member-center .profile-settings-stack {
  width: 100%;
  gap: 14px;
}
#member-center .profile-panel {
  padding: 20px 22px 18px;
  border: 1px solid rgba(36, 28, 22, 0.08);
  border-radius: 16px;
  box-shadow: none;
}
#member-center .profile-panel h2 {
  scroll-margin-top: 64px;
  font-size: 1.18rem;
}
#member-center .section-number {
  display: none;
}
#member-center .profile-panel-copy {
  max-width: 62ch;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.75;
}
#member-center .appearance-settings {
  gap: 0;
  margin-top: 20px;
}
#member-center .appearance-row {
  gap: 12px;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(36, 28, 22, 0.06);
}
#member-center .appearance-row:first-child {
  padding-top: 8px;
  border-top: 0;
}
#member-center .appearance-row > span {
  color: #2f2a27;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}
#member-center .appearance-choices {
  display: inline-flex;
  width: fit-content;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: #f3efe9;
}
#member-center .appearance-choice {
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f5852;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
#member-center .appearance-choice.is-active {
  background: #fff;
  color: var(--community-red, #8c0000);
  box-shadow: 0 1px 2px rgba(36, 28, 22, 0.08);
}
#member-center .appearance-school-picker,
#member-center .auth-school-picker.appearance-school-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2px;
}
#member-center .appearance-school-card {
  padding: 14px 12px 12px;
  border-radius: 12px;
}
#member-center .appearance-school-card:hover {
  transform: none;
  box-shadow: none;
}
#member-center .appearance-school-card .auth-school-logo img,
#member-center .appearance-school-card .appearance-auto-logo {
  height: 20px;
  max-width: 100%;
}
#member-center .appearance-school-card .auth-school-meta em {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
#member-center .appearance-hint {
  margin-top: 2px;
  font-size: 0.75rem;
}
#member-center .profile-form,
#member-center .password-form {
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 16px;
}
#member-center .password-form > .settings-subhead,
#member-center .password-form > label:first-of-type,
#member-center .delete-account-form > .settings-subhead,
#member-center .delete-account-form > .profile-panel-copy,
#member-center .profile-actions,
#member-center .profile-status {
  grid-column: 1 / -1;
}
#member-center .profile-form label {
  gap: 6px;
  color: #6a625c;
  font-size: 0.74rem;
  font-weight: 650;
}
#member-center .profile-form input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #e7e1da;
  border-radius: 10px;
  background: #fff;
}
#member-center .profile-form input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 42%, #e7e1da);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--community-red, #8c0000) 12%, transparent);
}
#member-center .profile-form input[readonly] {
  background: #f7f4f1;
  color: #6d6560;
}
#member-center .profile-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
}
#member-center .settings-subhead {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1rem;
}
#member-center .delete-account-form {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 16%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--community-red, #8c0000) 4%, #fff);
}
#member-center .invite-list li {
  padding: 10px 12px;
  border: 1px solid rgba(36, 28, 22, 0.08);
  border-radius: 10px;
  background: #fff;
}
@media (max-width: 720px) {
  #member-center .profile-identity-aside {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "points logout"
      "links links"
      "track track";
  }
  #member-center .profile-quick-links {
    justify-content: start;
    gap: 16px 24px;
  }
  #member-center .profile-form,
  #member-center .password-form,
  #member-center .appearance-school-picker,
  #member-center .auth-school-picker.appearance-school-picker {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .library-split {
    grid-template-columns: 1fr;
  }
}

.auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #7a817c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--community-red);
  box-shadow: 0 2px 8px rgba(25, 27, 26, 0.06);
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form h2 {
  margin: 3px 0 2px;
  color: var(--community-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.55rem;
}

.auth-form > label:not(.auth-check):not(.auth-remember):not(.auth-terms),
.auth-password-grid label {
  display: grid;
  gap: 7px;
  color: #69716c;
  font-size: 0.76rem;
  font-weight: 650;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  outline: 1px solid transparent;
  background: #f0f2ef;
  color: var(--community-ink);
  font: inherit;
}

.auth-form input:not([type="checkbox"]):focus {
  outline-color: color-mix(in srgb, var(--community-red, #8c0000) 42%, transparent);
  background: #fff;
}

.auth-password-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.auth-code-row button { min-width: 98px; height: 42px; border: 0; border-radius: 4px; background: #e4e7e3; color: var(--community-green); font-weight: 750; }
.auth-submit { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; border-radius: 4px; background: var(--community-red); color: white; font-weight: 750; }
.auth-submit:hover { background: var(--community-red-deep); }
.auth-submit:disabled { opacity: 0.58; }
.auth-submit svg { width: 17px; }
.auth-status { min-height: 22px; margin: 16px 0 0; color: var(--community-green); font-size: 0.76rem; line-height: 1.6; }
.auth-status[data-state="error"] { color: var(--community-red); }
.auth-terms {
  margin-top: 2px;
}
.auth-terms a { color: var(--community-red); font-weight: 700; }
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 13px 0 0;
  color: #8b918d;
  font-size: 0.68rem;
  line-height: 1.55;
  white-space: normal;
}
.auth-note svg { flex: 0 0 auto; width: 15px; margin-top: 1px; color: var(--community-green); }
.auth-note span { min-width: 0; flex: 1 1 auto; }
.auth-note strong { color: #68716b; }
.auth-register-policy {
  margin: 0;
  color: #5c655f;
  font-size: 0.84rem;
  line-height: 1.55;
}
.auth-school-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.auth-school-card {
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: center;
  min-height: 0;
  padding: 10px 10px 9px;
  border: 1px solid rgba(90, 102, 94, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
  color: #3f4742;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.auth-school-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: visible;
}
.auth-school-logo img {
  display: block;
  width: auto;
  height: 28px;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.auth-school-card[data-school="pku"] .auth-school-logo img {
  height: 26px;
}
.auth-school-card[data-school="tsinghua"] .auth-school-logo img {
  height: 28px;
}
.auth-school-card[data-school="bnu"] .auth-school-logo img {
  height: 28px;
  max-width: calc(100% + 8px);
}
.auth-school-card[data-school="ruc"] .auth-school-logo img {
  height: 26px;
  max-width: calc(100% + 10px);
}
.auth-school-card[data-school="cufe"] .auth-school-logo img {
  height: 26px;
  max-width: calc(100% + 12px);
}
.auth-school-card[data-school="uir"] .auth-school-logo img {
  height: 26px;
  max-width: calc(100% + 8px);
}
.auth-school-meta {
  display: grid;
  gap: 0;
  justify-items: center;
}
.auth-school-meta em {
  color: #7a817c;
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.25;
}
.auth-school-card:hover {
  border-color: color-mix(in srgb, var(--school-accent, var(--community-red, #8c0000)) 42%, transparent);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(25, 27, 26, 0.06);
}
.auth-school-card.is-active {
  border-color: color-mix(in srgb, var(--school-accent, var(--community-red, #8c0000)) 70%, transparent);
  background: var(--school-soft, #fff8f6);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--school-accent, var(--community-red, #8c0000)) 22%, transparent);
}
.auth-school-card.is-active .auth-school-meta em {
  color: var(--school-accent, var(--community-red, #8c0000));
  font-weight: 650;
}
.auth-partner-hint {
  margin: -4px 0 0;
  color: #68716b;
  font-size: 0.78rem;
  line-height: 1.5;
}
.auth-email-path {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.school-badge {
  --school-accent: #8c0000;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  vertical-align: middle;
}
.school-badge-mark {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(220px, 100%);
  object-fit: contain;
  object-position: left center;
}
.school-badge.is-lg .school-badge-mark { height: 36px; max-width: min(280px, 100%); }
.school-badge.is-sm .school-badge-mark { height: 24px; max-width: min(180px, 100%); }
.school-badge.is-xs .school-badge-mark { height: 18px; max-width: min(140px, 100%); }
.school-badge[data-school="bnu"] .school-badge-mark { height: 24px; }
.school-badge.is-lg[data-school="bnu"] .school-badge-mark { height: 30px; }
.school-badge.is-sm[data-school="bnu"] .school-badge-mark { height: 20px; }
.school-badge[data-school="ruc"] .school-badge-mark { height: 24px; }
.school-badge.is-lg[data-school="ruc"] .school-badge-mark { height: 30px; }
.school-badge.is-sm[data-school="ruc"] .school-badge-mark { height: 20px; }
.school-badge[data-school="cufe"] .school-badge-mark { height: 24px; }
.school-badge.is-lg[data-school="cufe"] .school-badge-mark { height: 30px; }
.school-badge.is-sm[data-school="cufe"] .school-badge-mark { height: 20px; }
.profile-school-row,
.public-profile-school {
  margin: 6px 0 4px;
}
.public-profile-school {
  margin-top: 8px;
}
@media (max-width: 720px) {
  .auth-school-picker {
    grid-template-columns: 1fr;
  }
  .auth-school-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    min-height: 0;
    gap: 8px;
    text-align: left;
    padding: 9px 12px;
  }
  .auth-school-logo {
    justify-items: start;
  }
  .auth-school-meta {
    justify-items: end;
    text-align: right;
  }
  .auth-school-card[data-school="bnu"] .auth-school-logo img,
  .auth-school-card[data-school="ruc"] .auth-school-logo img,
  .auth-school-card[data-school="cufe"] .auth-school-logo img,
  .auth-school-card[data-school="uir"] .auth-school-logo img {
    max-width: 100%;
  }
}
.invite-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.invite-list li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(90, 102, 94, 0.12);
  border-radius: 10px;
  background: #f7f8f6;
  font-size: 0.82rem;
}
.invite-list code {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--community-red, #8c0000);
}
.invite-list .profile-empty {
  display: block;
  color: #68716b;
}
.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eceeeb;
  color: #7a817c;
  font-size: 0.76rem;
}
.auth-switch button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 34%, transparent);
  background: transparent;
  color: var(--community-red);
  font: inherit;
  font-weight: 750;
}
.auth-switch button:hover { border-bottom-color: var(--community-red); }
.auth-panel[data-mode="register"] { justify-content: flex-start; padding-top: 40px; padding-bottom: 34px; }
.auth-panel[data-mode="register"] .auth-form { gap: 14px; }
.auth-panel[data-mode="register"] .auth-status { margin-top: 12px; }
.auth-panel[data-mode="register"] .auth-note { margin-top: 9px; }
.auth-panel[data-mode="register"] .auth-switch { margin-top: 16px; padding-top: 14px; }

.info-hero {
  margin-bottom: 0;
  text-align: center;
}

body[data-page="module"] .module-page-hero.info-hero > div {
  width: min(720px, 92%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body[data-page="module"] .module-page-hero.info-hero .eyebrow {
  display: inline-block;
}

body[data-page="module"] .module-page-hero.info-hero h1,
body[data-page="module"] .module-page-hero.info-hero p {
  text-align: center;
}

body[data-page="module"] .module-page-hero.info-hero p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.terms-main {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.terms-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin: 8px 0 72px;
}

.terms-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-left: 2px solid color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent);
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.95), rgba(248, 249, 247, 0.9));
}

.terms-toc > p {
  margin: 0 0 8px;
  color: var(--community-red, #8c0000);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terms-toc a {
  color: #5c655f;
  font-size: 0.78rem;
  line-height: 1.45;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.terms-toc a:hover {
  color: var(--community-red, #8c0000);
}

.terms-toc-link {
  margin-top: 10px;
  padding-top: 10px !important;
  border-top: 1px solid rgba(90, 102, 94, 0.12);
  color: var(--community-red, #8c0000) !important;
  font-weight: 700;
}

.terms-toc-part {
  display: block;
  margin: 12px 0 4px;
  color: var(--community-red, #8c0000);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.terms-toc-part:first-of-type {
  margin-top: 2px;
}

.terms-part-label {
  margin: 8px 0 22px;
  padding: 10px 0 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent);
  color: var(--community-red, #8c0000);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.terms-article {
  min-width: 0;
  padding: 36px 40px 44px;
  border-top:  solid var(--community-red, #8c0000);
  background:
    linear-gradient(180deg, #fffcfa 0%, #fafaf7 48%, #f7f8f5 100%);
  box-shadow: 0 14px 40px rgba(25, 27, 26, 0.06);
}

.terms-lead {
  margin: 0 0 28px;
  color: #3f4742;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.9;
}

.terms-callout {
  display: grid;
  gap: 8px;
  margin: 0 0 32px;
  padding: 18px 20px 20px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 16%, transparent);
  border-left:  solid var(--community-red, #8c0000);
  background: #fff8f6;
}

.terms-callout-label {
  color: var(--community-red, #8c0000);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.terms-callout strong {
  color: #2c2f2d;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.terms-callout p {
  margin: 0;
  color: #5c655f;
  font-size: 0.9rem;
  line-height: 1.75;
}

.terms-article > section {
  margin: 0 0 30px;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(90, 102, 94, 0.1);
}

.terms-article > section:last-of-type {
  border-bottom: 0;
  padding-bottom: 8px;
}

.terms-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
}

.terms-section-head span {
  color: var(--community-red, #8c0000);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.terms-section-head h2 {
  margin: 0;
  color: #1f2320;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
}

.terms-article p,
.terms-article li {
  color: #3f4742;
  font-size: 0.92rem;
  line-height: 1.85;
}

.terms-article p {
  margin: 0 0 12px;
}

.terms-article ol,
.terms-article ul {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.terms-article li + li {
  margin-top: 8px;
}

.terms-article li::marker {
  color: var(--community-red, #8c0000);
}

.terms-article a {
  color: var(--community-red, #8c0000);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.terms-article code {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: #eef0ec;
  color: #5a2a28;
  font-size: 0.86em;
}

.terms-close {
  margin: 28px 0 18px !important;
  padding-top: 22px;
  border-top: 1px solid rgba(90, 102, 94, 0.12);
  color: #5c655f !important;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
}

.terms-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 0;
  color: var(--community-red, #8c0000);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}

.terms-sign span {
  color: #8a918b;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .terms-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .terms-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 14px 16px;
    border-left: 0;
    border-top: 2px solid color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent);
  }

  .terms-toc > p {
    width: 100%;
    margin-bottom: 2px;
  }

  .terms-toc-link {
    margin-top: 0;
    padding-top: 4px !important;
    border-top: 0;
  }

  .terms-article {
    padding: 26px 18px 32px;
  }
}

.hero-english {
  max-width: 760px !important;
  color: #747a76 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
}

body[data-page="module"][data-module="note"] .module-page-hero > .notes-title-row {
  width: 100%;
  max-width: var(--front-shell-max, 1600px) !important;
  align-items: flex-end;
}

body[data-page="module"][data-module="note"] .submission-entry {
  margin: 0 0 5px auto;
}

body[data-page="module"][data-module="note"]:has(.important-reminder) .submission-entry {
  margin-right: 274px;
}

.about-purpose,
.about-dedication,
.team-section,
.contact-email,
.support-section {
  padding: 42px 2px;
}

.about-purpose {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr);
  gap: 76px;
  align-items: start;
}

.about-purpose p {
  max-width: 720px;
  margin: 2px 0 0;
  color: var(--community-muted);
  font-size: 1.05rem;
  line-height: 2;
}

.about-dedication {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr);
  gap: 76px;
  align-items: start;
  border-top: 1px solid rgba(25, 27, 26, 0.09);
}

.dedication-copy {
  max-width: 720px;
  display: grid;
  gap: 14px;
  padding: 3px 0 3px 22px;
  border-left: 3px solid var(--community-red);
}

.dedication-copy p {
  margin: 0;
  color: #343936;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.95;
}

.dedication-copy p[lang="en"] {
  color: #777d79;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.72;
}

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--community-red);
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.about-purpose h2,
.about-dedication h2,
.team-section h2,
.contact-email h2,
.support-section h2,
.profile-main h2 {
  margin: 0;
  color: var(--community-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.55rem;
}

.team-section,
.support-section {
  border-top: 1px solid rgba(25, 27, 26, 0.09);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-row > small,
.section-heading-row > p {
  margin: 0;
  color: var(--community-muted);
  font-size: 0.82rem;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.team-list li {
  position: relative;
  min-height: 172px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: 6px;
  background: var(--community-paper);
  box-shadow: 0 9px 30px rgba(25, 27, 26, 0.055);
  overflow: hidden;
}

.team-list .team-card-has-portrait {
  grid-template-columns: 54px minmax(0, 1fr) 136px;
  padding-right: 28px;
}

.team-card-has-portrait::after {
  display: none;
}

.team-list li::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -54px;
  width: 170px;
  height: 110px;
  background: url("./assets/cloud-gray-top.png") center / contain no-repeat;
  opacity: 0.06;
}

.team-list li > span {
  color: #b6bab6;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.team-list li div {
  display: grid;
  gap: 8px;
}

.team-list li small {
  color: var(--community-red);
  font-weight: 750;
}

.team-list li strong {
  color: var(--community-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.7rem;
}

.team-email {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: #5b625e;
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.93rem;
  font-weight: 560;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.team-email:hover {
  color: var(--community-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-portrait {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 146px;
  align-self: center;
  display: grid;
  place-items: end center;
  margin: 0;
  transform: translateY(-9px);
  overflow: visible;
}

.team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.contact-email {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.contact-email-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--community-red);
  color: white;
  border-radius: 5px;
}

.contact-email-icon svg {
  width: 25px;
}

.contact-email h2 {
  margin-bottom: 8px;
}

.contact-email a {
  color: var(--community-red-deep);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--community-green);
  font-weight: 700;
}

.copy-email svg {
  width: 16px;
}

.support-codes {
  display: grid;
  grid-template-columns: repeat(2, 230px);
  gap: 22px;
  margin-top: 28px;
}

.support-codes article {
  padding: 15px;
  border-radius: 6px;
  background: var(--community-paper);
  box-shadow: 0 9px 30px rgba(25, 27, 26, 0.055);
}

.qr-frame {
  width: 200px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f1f2ef;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-frame.qr-empty {
  color: #a7aaa6;
  background:
    linear-gradient(90deg, rgba(25, 27, 26, 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(rgba(25, 27, 26, 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    #f1f2ef;
}

.qr-frame.qr-empty svg {
  width: 42px;
  height: 42px;
}

.qr-frame.qr-empty span {
  position: absolute;
  margin-top: 72px;
  font-size: 0.76rem;
}

.support-codes article > div:last-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 2px 2px;
}

.support-codes article strong {
  color: var(--community-ink);
}

.support-codes article span {
  color: var(--community-muted);
  font-size: 0.76rem;
}

.announcement-layout {
  display: block;
}

body[data-page="module"][data-module="announcement"] .module-page-hero,
body[data-page="module"][data-module="announcement"] .announcement-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

body[data-page="module"][data-module="announcement"] .announcement-hero-copy {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 560px;
  flex: 1 1 380px;
}

.announcement-guide {
  position: relative;
  z-index: 2;
  top: auto;
  flex: 0 1 340px;
  width: min(340px, 42%);
  margin: 0 0 0 auto;
  padding: 4px 0 4px 28px;
  border-left: 1px solid rgba(25, 27, 26, 0.1);
}

.announcement-guide > span {
  color: var(--community-red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement-guide h2 {
  margin: 6px 0 12px;
  color: var(--community-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.28rem;
}

.announcement-guide-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 11px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 160ms ease, transform 160ms ease;
}

.announcement-guide-item:hover,
.announcement-guide-item:focus-visible {
  opacity: 0.82;
}

.announcement-guide-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  outline-offset: 5px;
}

.announcement-guide-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -30px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9aeaa;
}

.announcement-guide-item.active {
  opacity: 1;
  transform: translateX(3px);
}

.announcement-guide-item.active::before {
  background: var(--community-red);
  box-shadow: 0 0 0 4px #ead9d9;
}

.announcement-guide-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--community-ink);
}

.announcement-guide-item p {
  margin: 0;
  color: var(--community-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* Refined module heroes: plaza / notes / talks
   Hero is full-bleed (100vw); keep shell-aligned side padding or content hugs the viewport. */
.module-hero-refined,
.plaza-page-hero.plaza-hero-compact,
.note-hero-compact,
.talk-hero-compact {
  display: block;
  grid-template-columns: none;
  align-items: stretch;
  gap: 0;
  min-height: 0 !important;
  margin-top: 0;
  overflow: visible;
  padding-top: 22px !important;
  padding-bottom: 16px !important;
  padding-left: max(48px, calc((100vw - var(--front-shell-max, 1600px)) / 2)) !important;
  padding-right: max(48px, calc((100vw - var(--front-shell-max, 1600px)) / 2)) !important;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(174, 178, 174, 0.18), transparent 34%),
    linear-gradient(108deg, #fdfdfb 0%, #f8f9f7 66%, #eceeec 100%);
}
.module-hero-refined::before {
  display: none !important;
}
.module-hero-refined::after,
.plaza-page-hero.plaza-hero-compact::after,
.note-hero-compact::after,
.talk-hero-compact::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  z-index: 0;
  right: max(-72px, calc((100vw - var(--front-shell-max, 1600px)) / 2 - 40px));
  top: -48px;
  width: min(420px, 48vw);
  height: 220px;
  background: url("./assets/cloud-gray-top.png") right center / contain no-repeat;
  filter: grayscale(1) contrast(0.86);
  opacity: 0.14;
  pointer-events: none;
}
body[data-page="module"][data-module="plaza"] .module-page-hero,
body[data-page="module"][data-module="note"] .module-page-hero,
body[data-page="module"][data-module="talk"] .module-page-hero {
  min-height: 0 !important;
  align-items: stretch;
}
.module-hero-refined > .module-hero-main,
.module-hero-refined > .plaza-hero-main {
  width: 100% !important;
  max-width: none;
  box-sizing: border-box;
}
body[data-page="module"][data-module="plaza"] .module-board,
body[data-page="module"][data-module="note"] .module-board,
body[data-page="module"][data-module="talk"] .module-board {
  padding-left: 0;
  padding-right: 0;
}
.plaza-hero-main,
.module-hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.module-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
}
.plaza-hero-copy,
.module-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.plaza-hero-copy .eyebrow,
.module-hero-copy .eyebrow {
  display: inline-block;
  margin: 0 0 4px;
  color: var(--community-red, #8c0000);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plaza-hero-copy h1,
.module-hero-copy h1,
.note-hero-compact h1,
.talk-hero-compact h1 {
  margin: 0 !important;
  max-width: none;
  color: var(--community-ink, #191b1a);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 2rem !important;
  font-weight: 700;
  line-height: 1.18 !important;
  letter-spacing: 0.01em;
}
.plaza-hero-desc,
.module-hero-desc {
  display: none;
}

.module-compose-rail,
.plaza-compose-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  width: auto;
  max-width: none;
}
.module-compose-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent);
  border-radius: 999px;
  background: #fff;
  color: var(--community-red, #8c0000);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.module-compose-link:hover {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 42%, transparent);
  background: color-mix(in srgb, var(--community-red, #8c0000) 5%, transparent);
}
.module-compose-link svg {
  width: 14px;
  height: 14px;
}
.module-compose-link.is-primary {
  border-color: transparent;
  background: var(--community-red, #8c0000);
  color: #fff;
}
.module-compose-link.is-primary:hover {
  background: var(--community-red-deep, #6f0000);
  border-color: transparent;
  color: #fff;
}

.module-toolbar,
.plaza-toolbar.module-toolbar,
.note-toolbar.module-toolbar,
.talk-toolbar.module-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(25, 27, 26, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(25, 27, 26, 0.04);
}
.module-toolbar-single,
.talk-toolbar.module-toolbar {
  grid-template-columns: minmax(0, 1fr);
}
.module-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.module-search > svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #8a908b;
  pointer-events: none;
}
.module-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 36px;
  border: 1px solid rgba(25, 27, 26, 0.08);
  border-radius: 12px;
  background: #f6f7f5;
  color: #222825;
  font: inherit;
  font-size: 0.9rem;
  box-shadow: none;
}
.module-search input::placeholder {
  color: #9aa09c;
}
.module-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--community-red, #8c0000) 8%, transparent);
}

.module-seg.segmented,
.plaza-section-tabs.module-seg {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #eef0ed;
}
.module-seg.segmented button,
.plaza-section-tabs.module-seg button {
  position: relative;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6662;
  font-size: 0.78rem;
  font-weight: 700;
}
.module-seg.segmented button svg,
.plaza-section-tabs.module-seg button svg {
  width: 14px;
  height: 14px;
}
.module-seg.segmented button.active,
.plaza-section-tabs.module-seg button.active {
  background: #fff;
  color: var(--community-red, #8c0000);
  box-shadow: 0 2px 8px rgba(25, 27, 26, 0.08);
}

.note-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.note-filter-row label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #6a716c;
  font-size: 0.68rem;
  font-weight: 700;
}
.note-filter-row label span {
  padding-left: 2px;
}
.note-filter-row select {
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(25, 27, 26, 0.08);
  border-radius: 10px;
  background: #f6f7f5;
  color: #2a302d;
  font-size: 0.8rem;
  box-shadow: none;
}
.note-toolbar.module-toolbar {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.plaza-section-tabs button[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #1f2321;
  color: #f7f7f5;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: 0 8px 20px rgba(25, 27, 26, 0.18);
}
.plaza-section-tabs button[data-tip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  z-index: 21;
  border: 5px solid transparent;
  border-top-color: #1f2321;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}
.plaza-section-tabs button[data-tip]:hover::after,
.plaza-section-tabs button[data-tip]:focus-visible::after,
.plaza-section-tabs button[data-tip]:hover::before,
.plaza-section-tabs button[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body[data-module="plaza"] .module-board .qa-category-tabs {
  margin: 0 0 12px;
}
body[data-page="module"] .content-tools {
  margin: 14px 0 10px;
}

@media (max-width: 900px) {
  .module-toolbar,
  .plaza-toolbar.module-toolbar {
    grid-template-columns: 1fr;
  }
  .module-seg.segmented,
  .plaza-section-tabs.module-seg {
    width: 100%;
    justify-content: stretch;
  }
  .module-seg.segmented button,
  .plaza-section-tabs.module-seg button {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 6px;
  }
  .note-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .plaza-section-tabs button[data-tip]::after {
    left: 0;
    transform: translateX(0) translateY(4px);
  }
  .plaza-section-tabs button[data-tip]:hover::after,
  .plaza-section-tabs button[data-tip]:focus-visible::after {
    transform: translateX(0) translateY(0);
  }
  .plaza-section-tabs button[data-tip]::before {
    left: 18px;
  }
}
@media (max-width: 760px) {
  .module-hero-refined,
  .plaza-page-hero.plaza-hero-compact,
  .note-hero-compact,
  .talk-hero-compact {
    padding-top: 12px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .module-hero-refined::after,
  .plaza-page-hero.plaza-hero-compact::after,
  .note-hero-compact::after,
  .talk-hero-compact::after {
    right: -48px;
    top: -24px;
    width: 200px;
    height: 120px;
    opacity: 0.1;
  }
  .plaza-hero-copy h1,
  .module-hero-copy h1,
  .note-hero-compact h1,
  .talk-hero-compact h1 {
    font-size: 1.45rem !important;
  }
  .module-hero-top {
    align-items: center;
    gap: 10px;
  }
  .module-toolbar {
    padding: 8px;
    border-radius: 14px;
    gap: 8px;
  }
  .module-search input {
    min-height: 40px;
    font-size: 0.86rem;
  }
  .module-seg.segmented button,
  .plaza-section-tabs.module-seg button {
    min-height: 32px;
    font-size: 0.7rem;
    gap: 3px;
  }
  .module-seg.segmented button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.chip.pin-chip,
.pin-chip {
  background: color-mix(in srgb, var(--community-red) 10%, #fff);
  color: var(--community-red, #8c0000);
  font-weight: 750;
}

.medal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.medal i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex: 0 0 auto;
}

/* 朱砂飘带 */
.medal-recommend {
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  background: linear-gradient(135deg, var(--community-red, #8c0000) 0%, color-mix(in srgb, var(--community-red) 72%, white) 55%, color-mix(in srgb, var(--community-red) 42%, white) 100%);
  color: #fff8f4;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent);
}
.medal-recommend i {
  width: 0;
  height: 0;
  border-radius: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #fff4ea;
  background: transparent;
  opacity: 1;
}
.medal-hot {
  border: 1px solid rgba(166, 112, 28, 0.35);
  background: linear-gradient(135deg, #f4e4b8, #f7f0dc);
  color: #8a5a12;
}
.medal-hot i {
  background: radial-gradient(circle at 30% 30%, #f0d27a, #c8922a 70%);
  box-shadow: inset 0 0 0 1px rgba(138, 90, 18, 0.25);
}
.medal-lock {
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 22%, transparent);
  background: color-mix(in srgb, var(--community-red, #8c0000) 6%, transparent);
  color: var(--community-red, #8c0000);
}
.medal-lock i {
  background: var(--community-red, #8c0000);
}

.content-card.is-recommended:not(.note-tile) {
  border-top:  solid var(--community-red, #8c0000);
}

/* Reading tiles: shared across announcement / notes / QA / talks / collections */
.card-grid.note-tile-grid,
body[data-page="module"] .card-grid.note-tile-grid,
body[data-module="qa"] .card-grid.note-tile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  perspective: 1400px;
  align-items: stretch;
}
.note-tile,
body[data-page="module"] .content-card.note-tile {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  perspective: 1100px;
  justify-content: stretch;
}
.note-tile::before,
.note-tile::after,
body[data-page="module"] .content-card.note-tile::before,
body[data-page="module"] .content-card.note-tile::after {
  content: none;
  display: none;
}
.note-tile-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 168px;
  height: 100%;
  padding: 14px 13px 16px;
  border: 1px solid #ebe4dc;
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--community-soft, #fff8f6) 70%, #fff) , var(--community-soft, #fff8f1) 58%, color-mix(in srgb, var(--community-red, #8c0000) 6%, #fff)),
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--community-red, #8c0000) 5%, transparent), transparent 46%);
  box-shadow: 0 10px 24px rgba(36, 28, 22, 0.06);
  color: inherit;
  overflow: hidden;
  transform-origin: center left;
  transform-style: preserve-3d;
  transition:
    transform 0.48s cubic-bezier(0.18, 0.9, 0.22, 1),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
  backface-visibility: hidden;
}
.note-tile-face::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 8%, transparent);
  border-radius: 7px;
  pointer-events: none;
}
.note-tile-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 28px;
  height: 4px;
  margin: 2px 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--community-red, #8c0000), color-mix(in srgb, var(--community-red) 55%, white));
  flex: 0 0 auto;
}
.note-tile-stamp {
  position: absolute;
  right: -2px;
  top: 50%;
  z-index: 0;
  width: 108px;
  height: 108px;
  margin: 0;
  pointer-events: none;
  background: url("./assets/dingxue-wanshitong-mark-full.png?v=20260915bv") center / contain no-repeat;
  opacity: 0.075;
  transform: translateY(-42%) rotate(-14deg);
  filter: saturate(0.85);
}
.note-tile-badges,
.note-tile-medals {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: -2px;
}
.note-tile-badges .medal,
.note-tile-medals .medal {
  font-size: 10px;
  padding: 3px 7px;
  line-height: 1.2;
}
.note-tile-type,
.note-tile-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 3px;
  background: #eef0ed;
  color: #707671;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}
.note-tile-status[data-state="solved"] {
  background: #e1ece6;
  color: #35684d;
}
.note-tile-badges .qa-program,
.note-tile-badges .qa-bounty,
.note-tile-badges .pin-chip {
  font-size: 10px;
  padding: 3px 7px;
}
.note-tile-open {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}
.note-tile-face h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #211c19;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-tile-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.note-tile-author {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  color: #a3948b;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.14em;
}
.note-tile-author > span {
  flex: 0 0 auto;
  color: #b7a79d;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
}
.note-tile-author .person-link,
.note-tile-author .person-plain {
  color: #3a322d;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.note-tile-topics {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0;
  padding-top: 0;
  min-height: 28px;
}
.note-tile-topics.is-empty {
  min-height: 8px;
  padding-top: 0;
}
.note-tile-topics .topic-chip {
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #eadfd6;
  color: #6d584c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-tile-topics .topic-chip:hover,
.note-tile-topics .topic-chip:focus-visible {
  border-color: #d7b4ac;
  background: #fff4ef;
  color: var(--community-red, #8c0000);
}
.note-tile:hover .note-tile-face {
  border-color: #dfcfc4;
  box-shadow: 0 14px 28px rgba(36, 28, 22, 0.1);
  transform: translateY(-2px);
}
.note-tile.is-recommended .note-tile-face,
.note-tile.is-pinned .note-tile-face {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--community-red, #8c0000) 10%, transparent);
}
.note-tile.is-recommended .note-tile-face {
  background:
    linear-gradient(135deg, rgba(255, 252, 249, 0.92) 0%, rgba(250, 244, 238, 0.98) 100%);
}
.note-tile.is-recommended .note-tile-open h3 {
  padding-right: 72px;
}
.note-tile.is-recommended .note-tile-mark,
.note-tile.is-pinned .note-tile-mark {
  width: 42px;
}
.note-tile.is-recommended:hover .note-tile-stamp {
  opacity: 0.1;
}
.note-tile.is-hot .note-tile-face::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0d27a, #c8922a 72%);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.16);
}
.note-tile.is-flipping {
  z-index: 5;
}
.note-tile.is-flipping .note-tile-face {
  transform: rotateY(-112deg) scale(1.03);
  box-shadow: -18px 18px 40px rgba(28, 22, 18, 0.18);
  pointer-events: none;
}
@media (max-width: 1100px) {
  .card-grid.note-tile-grid,
  body[data-page="module"] .card-grid.note-tile-grid,
  body[data-module="qa"] .card-grid.note-tile-grid,
  .public-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .card-grid.note-tile-grid,
  body[data-page="module"] .card-grid.note-tile-grid,
  body[data-module="qa"] .card-grid.note-tile-grid,
  .public-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .note-tile-face {
    min-height: 168px;
    padding: 14px 12px 18px;
  }
}
@media (max-width: 520px) {
  .card-grid.note-tile-grid,
  body[data-page="module"] .card-grid.note-tile-grid,
  body[data-module="qa"] .card-grid.note-tile-grid,
  .public-post-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .note-tile-face {
    transition: none;
  }
  .note-tile.is-flipping .note-tile-face {
    transform: none;
  }
}

body[data-module="announcement"] .content-card.is-pinned:not(.note-tile) {
  border-top:  solid var(--community-red, #8c0000);
}

.important-reminder {
  position: fixed;
  z-index: 40;
  top: 91px;
  right: max(18px, calc((100vw - 1320px) / 2));
  width: 250px;
  padding-top: 20px;
  transform-origin: 50% -12px;
  animation: reminder-sway 4.8s ease-in-out infinite;
}

.important-reminder:hover,
.important-reminder:focus-within {
  animation-play-state: paused;
}

.reminder-cord {
  position: absolute;
  top: 0;
  width: 1px;
  height: 29px;
  background: #4e504f;
}

.reminder-cord-left { left: 42px; transform: rotate(28deg); }
.reminder-cord-right { right: 42px; transform: rotate(-28deg); }

.reminder-board {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 17px 13px;
  border: 5px solid #795d3c;
  border-radius: 3px;
  background: #222725;
  color: #f7f3e8;
  box-shadow: 0 10px 25px rgba(25, 27, 26, 0.2);
}

.reminder-board::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(247, 243, 232, 0.28);
  pointer-events: none;
}

.reminder-kicker {
  position: relative;
  z-index: 1;
  color: #e8d49b;
  font-size: 0.68rem;
  font-weight: 800;
}

.reminder-board a {
  position: relative;
  z-index: 1;
  color: white;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.reminder-board button {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #d4ddd9;
  font-size: 0.72rem;
}

.reminder-board button svg { width: 13px; }
.reminder-leaving { opacity: 0; transform: translateY(-8px) rotate(2deg); transition: opacity 200ms ease, transform 200ms ease; }

body[data-page="article"] .reader-main {
  width: min(1025px, calc(100% - 48px));
  margin: 48px auto 88px;
  padding: 0;
}

body[data-page="article"][data-reader-layout="columns"] .reader-main:not(.qa-reader-main) {
  width: min(1480px, calc(100vw - 120px));
}

body[data-page="article"] .reader-main.qa-reader-main {
  width: min(1400px, calc(100% - 48px));
}

body[data-page="article"] .reader-back {
  margin-bottom: 28px;
  font-size: 0.85rem;
}

body[data-page="article"] .reader-meta {
  margin-bottom: 20px;
  font-size: 0.85rem;
}

body[data-page="article"] .reader-title {
  margin: 0 0 26px;
  font-size: 2.15rem;
  line-height: 1.42;
}

body[data-page="article"] .reader-title-row {
  margin-bottom: 26px;
}

body[data-page="article"] .reader-title-row .reader-title {
  margin-bottom: 0;
}

body[data-page="article"] .reader-content {
  --article-size: 20px;
  padding-top: 12px;
  color: #343936;
  font-size: var(--article-size);
  line-height: var(--article-leading);
}

body[data-page="article"] .reader-content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 32px rgba(25, 27, 26, 0.08);
}

body[data-page="article"] .reader-content pre,
body[data-page="article"] .markdown-table-scroll {
  max-width: 100%;
}

@keyframes reminder-sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

.reader-discussion {
  max-width: 960px;
  margin: 42px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(25, 27, 26, 0.1);
}

.reader-discussion-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.reader-discussion h2 {
  margin: 0;
  color: var(--community-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.45rem;
}

.reader-discussion-header span {
  color: var(--community-muted);
  font-size: 0.78rem;
}

.discussion-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.discussion-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 18px;
  border-radius: 5px;
  background: var(--community-paper);
  box-shadow: 0 5px 20px rgba(25, 27, 26, 0.04);
}

.discussion-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eadede;
  color: var(--community-red);
  font-weight: 800;
}

.discussion-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.discussion-meta strong { color: var(--community-ink); }
.discussion-meta span, .discussion-meta time { color: var(--community-muted); font-size: 0.72rem; }
.discussion-meta span { padding: 2px 5px; border-radius: 3px; background: #ece3df; color: var(--community-red); }
.discussion-reply-to { color: #8a918d; font-size: 0.72rem; font-style: normal; font-weight: 650; }
.discussion-item p { margin: 0; color: #505653; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }

.discussion-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.discussion-like,
.discussion-reply,
.discussion-delete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a817d;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.discussion-like svg { width: 15px; height: 15px; }
.discussion-like[aria-pressed="true"] { color: var(--community-red); }
.discussion-like[aria-pressed="true"] svg { fill: currentColor; }
.discussion-like:disabled,
.discussion-reply:disabled,
.discussion-delete:disabled { opacity: 0.55; cursor: default; }
.discussion-delete {
  margin-left: auto;
  color: #a56b66;
}
.discussion-delete:hover { color: var(--community-red, #8c0000); }
.discussion-mine { background: #f3e4e2 !important; color: var(--community-red) !important; }

.discussion-replies {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 0 0 4px;
  border-top: 1px dashed #e4e6e2;
}

.discussion-item.is-reply {
  padding: 8px 0 2px;
  background: transparent;
  box-shadow: none;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.discussion-item.is-reply .discussion-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.discussion-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 5px;
  background: var(--community-soft);
}

.discussion-reply-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: white;
  color: var(--community-ink);
  font: inherit;
  line-height: 1.65;
}

.discussion-reply-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discussion-reply-cancel {
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #7a817d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.discussion-compose {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 6px;
  background: var(--community-soft);
}

.discussion-compose textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: white;
  color: var(--community-ink);
  font: inherit;
  line-height: 1.65;
}

.discussion-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.discussion-kinds { display: flex; gap: 14px; color: var(--community-muted); font-size: 0.8rem; }
.discussion-kinds label { display: flex; align-items: center; gap: 5px; }
.discussion-kinds input { accent-color: var(--community-red); }
.discussion-submit { padding: 8px 13px; border: 0; border-radius: 4px; background: var(--community-red); color: white; font-weight: 700; }
.discussion-message { min-height: 20px; margin: 0; color: var(--community-red); font-size: 0.78rem; }
.discussion-login { padding: 17px 0; color: var(--community-muted); }
.discussion-login a { color: var(--community-red); font-weight: 700; }

.profile-main { padding-top: 40px; }
.profile-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.profile-heading h1 { margin: 7px 0 8px; color: var(--community-ink); font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif; font-size: 2.55rem; }
.profile-heading p { margin: 0; color: var(--community-muted); }
.prototype-state { padding: 5px 8px; border-radius: 3px; background: #e7e9e6; color: #686e6a; font-size: 0.72rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 0.9fr; gap: 22px; }
.profile-panel, .points-panel { padding: 28px; border-radius: 6px; background: var(--community-paper); box-shadow: 0 8px 28px rgba(25, 27, 26, 0.055); }
.profile-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.profile-avatar { width: 82px; height: 82px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--community-red); color: white; font-family: "Noto Serif SC", "Songti SC", STSong, serif; font-size: 2rem; font-weight: 800; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.avatar-button { display: inline-flex; align-items: center; gap: 6px; color: var(--community-red); font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.avatar-button svg { width: 15px; }
.profile-avatar-row button { justify-self: start; min-height: 30px; padding: 5px 9px; border: 1px solid #dfe2de; background: #f5f6f3; color: var(--community-muted); font-size: 0.72rem; }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.profile-form label { position: relative; display: grid; gap: 7px; color: var(--community-muted); font-size: 0.76rem; }
.profile-form input { min-width: 0; padding: 11px 12px; border: 0; border-radius: 4px; background: #f0f1ee; color: var(--community-ink); font: inherit; }
.field-state { position: absolute; top: 0; right: 0; color: var(--community-green); font-size: 0.7rem; }
.profile-actions { grid-column: 1 / -1; display: flex; gap: 9px; }
.profile-button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 4px; background: #e4e7e3; color: var(--community-green); font-weight: 750; }
.profile-button.primary { background: var(--community-red); color: white; }
.profile-button svg { width: 15px; }
.profile-status { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--community-muted); font-size: 0.72rem; }
.points-top { display: flex; align-items: flex-start; justify-content: space-between; }
.points-top > strong { color: var(--community-red); font-family: Georgia, serif; font-size: 3.2rem; font-weight: 500; line-height: 1; }
.level-row { display: flex; align-items: baseline; gap: 9px; margin-top: 28px; }
.level-row span { color: var(--community-red); font-size: 0.78rem; font-weight: 800; }
.level-row strong { color: var(--community-ink); font-size: 1.05rem; }
.level-track { height: 6px; margin: 11px 0 8px; overflow: hidden; background: #e1e4e1; }
.level-track span { display: block; width: 0; height: 100%; background: var(--community-red); transition: width 240ms ease; }
.points-panel > p { margin: 0; color: var(--community-muted); font-size: 0.72rem; }
.level-scale { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.level-scale li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding: 9px 0; color: var(--community-muted); font-size: 0.76rem; }
.level-scale li + li { border-top: 1px solid rgba(25, 27, 26, 0.06); }
.level-scale span { color: var(--community-red); font-weight: 800; }
.level-scale small { color: #9b9f9b; }
.points-rules { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 34px; align-items: start; padding: 42px 2px; }
.points-rules ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.points-rules li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 15px; border-radius: 5px; background: #e7e9e6; color: var(--community-muted); font-size: 0.78rem; }
.points-rules li svg { width: 17px; color: var(--community-green); }
.points-rules li strong { color: var(--community-red); }
.profile-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.profile-history-grid > section { padding: 26px; border-radius: 6px; background: var(--community-paper); box-shadow: 0 8px 28px rgba(25, 27, 26, 0.045); }
.profile-history-grid .section-heading-row { margin-bottom: 16px; }
.profile-history-grid .section-heading-row a { color: var(--community-red); font-size: 0.76rem; font-weight: 700; }
.profile-history-grid > section { scroll-margin-top: 110px; }
.favorites-section { grid-column: 1 / -1; }
.favorite-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.favorite-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 8px; padding: 15px 16px; border: 1px solid rgba(25, 27, 26, 0.07); border-radius: 5px; background: #fafbf8; }
.favorite-item > a { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; color: inherit; text-decoration: none; }
.favorite-item > a span { grid-row: 1 / 3; align-self: start; padding-top: 2px; color: var(--community-red); font-size: 0.65rem; font-weight: 800; }
.favorite-item > a strong { overflow: hidden; color: var(--community-ink); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.favorite-item > a small { color: #929792; font-size: 0.67rem; }
.favorite-item > button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #8e938f; }
.favorite-item > button:hover { background: #f3e8e7; color: var(--community-red); }
.favorite-item svg { width: 16px; }
.favorite-empty { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 9px; }
.favorite-empty svg { width: 18px; color: var(--community-red); }
.history-list, .contribution-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.history-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; gap: 10px; padding: 11px 0; color: var(--community-muted); font-size: 0.78rem; }
.history-list li + li, .contribution-list li + li { border-top: 1px solid rgba(25, 27, 26, 0.065); }
.history-list time { color: #9a9e9a; }
.history-list strong { color: var(--community-red); text-align: right; }
.contribution-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; }
.contribution-list li div { display: grid; gap: 4px; min-width: 0; }
.contribution-list li strong { color: var(--community-ink); font-size: 0.82rem; overflow-wrap: anywhere; }
.contribution-list li span { color: var(--community-muted); font-size: 0.72rem; }
.contribution-list em { flex: 0 0 auto; color: var(--community-muted); font-size: 0.7rem; font-style: normal; }
.contribution-list em[data-status="published"] { color: var(--community-green); }
.contribution-list em[data-status="review"] { color: var(--community-red); }
.thought-list li { align-items: flex-start; }
.thought-quote {
  margin: 4px 0 2px;
  color: #5d5850;
  font-size: 0.8rem;
  line-height: 1.65;
  border-bottom: 1px dashed #c4a574;
  display: inline;
}
.thought-list small { display: block; color: #7a6a4e; font-size: 0.76rem; line-height: 1.6; }
.profile-empty { display: block !important; color: var(--community-muted) !important; padding: 22px 0 !important; font-size: 0.78rem !important; }

@media (max-width: 1080px) {
  .points-rules { grid-template-columns: 1fr; gap: 20px; }
  .points-rules ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .account-popover { display: none; }
  .points-rules ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .favorite-list { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  body[data-page="module"][data-module="announcement"] .module-page-hero,
  body[data-page="module"][data-module="announcement"] .announcement-page-hero { align-items: flex-start; flex-direction: column; gap: 22px; }
  body[data-page="module"][data-module="announcement"] .announcement-hero-copy,
  .announcement-guide { width: 100%; max-width: none; flex: none; margin: 0; }
  .announcement-guide { padding: 18px 0 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .announcement-guide > span, .announcement-guide > h2 { grid-column: 1 / -1; }
  .announcement-guide > h2 { margin-bottom: 0; }
  .announcement-guide-item { padding: 13px; background: rgba(231, 233, 230, 0.65); border-radius: 5px; }
  .announcement-guide-item::before { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-footer-inner {
    width: calc(100% - 32px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0 28px;
  }
  .footer-identity,
  .footer-legal { justify-self: start; text-align: left; }
  .footer-links { width: 100%; justify-content: flex-start; gap: 22px; flex-wrap: wrap; }
  body[data-page="home"] .topnav,
  body[data-page="module"] .topnav,
  .reader-header nav { justify-content: flex-start; gap: 13px; padding: 0 4px 3px; overflow-x: auto; scrollbar-width: none; }
  body[data-page="home"] .topnav::-webkit-scrollbar,
  body[data-page="module"] .topnav::-webkit-scrollbar,
  .reader-header nav::-webkit-scrollbar { display: none; }
  body[data-page="home"] .topnav a,
  body[data-page="home"] .topnav .topnav-install-link,
  body[data-page="module"] .topnav a,
  body[data-page="module"] .topnav .topnav-install-link,
  .reader-header nav a,
  .reader-header nav .topnav-install-link { flex: 0 0 auto; font-size: 0.76rem; }
  .about-purpose,
  .about-dedication { grid-template-columns: 1fr; gap: 18px; padding: 30px 2px; }
  .dedication-copy { padding-left: 16px; }
  body[data-page="module"][data-module="note"] .module-page-hero > .notes-title-row { align-items: flex-start; }
  body[data-page="module"][data-module="note"]:has(.important-reminder) .submission-entry { margin-right: 0; }
  .team-list { grid-template-columns: 1fr; }
  .team-list li { min-height: 134px; padding: 20px; }
  .team-list .team-card-has-portrait { grid-template-columns: 38px minmax(0, 1fr) 96px; gap: 10px; padding-right: 18px; }
  .team-portrait { width: 96px; height: 112px; margin: 0; transform: translateY(-2px); }
  .team-list li > span { font-size: 1.45rem; }
  .team-list li strong { font-size: 1.45rem; }
  .team-email { font-size: 0.82rem; }
  .contact-email { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .contact-email-icon { width: 52px; height: 52px; }
  .contact-email .copy-email { grid-column: 2; justify-self: start; padding-left: 0; }
  .support-section .section-heading-row { display: grid; }
  .support-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .support-codes article { padding: 9px; }
  .qr-frame { width: 100%; }
  .announcement-guide { grid-template-columns: 1fr; }
  .important-reminder { position: fixed; top: 122px; right: 12px; width: 205px; animation-duration: 5.6s; }
  .important-reminder .reminder-board { grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; padding: 11px 12px 9px; }
  .important-reminder .reminder-kicker { grid-column: 1 / -1; }
  .important-reminder .reminder-board a { font-size: 0.86rem; }
  body[data-page="home"]:has(.important-reminder) .front-hero,
  body[data-page="module"]:has(.important-reminder) .module-page-hero { padding-top: 132px; min-height: 330px; }
  body[data-page="article"]:has(.important-reminder) .reader-main,
  body[data-page="submission"]:has(.important-reminder) .submission-main { padding-top: 124px; }
  body[data-page="article"] .reader-main,
  body[data-page="article"] .reader-main.qa-reader-main { width: calc(100% - 28px); margin: 24px auto 58px; }
  body[data-page="article"] .reader-title { font-size: 1.72rem; line-height: 1.45; }
  body[data-page="article"] .reader-content { font-size: max(16px, var(--article-size)); }
  body[data-page="article"] .reader-content img { max-height: 68vh; }
  .profile-main { padding-top: 28px; }
  .profile-access-main { width: calc(100% - 24px); min-height: 0; grid-template-columns: 1fr; margin: 24px auto 50px; }
  body[data-module="profile"]:has(.important-reminder) .profile-access-main { margin-top: 176px; }
  .auth-intro { padding: 30px 24px; }
  .auth-intro h1 { font-size: 1.8rem; }
  .auth-intro ul { display: none; }
  .auth-panel { padding: 28px 20px; }
  .auth-tabs { margin-bottom: 26px; }
  .auth-password-grid { grid-template-columns: 1fr; }
  .auth-login-bar { flex-wrap: wrap; align-items: flex-start; }
  .profile-heading h1 { font-size: 2rem; }
  .profile-panel, .points-panel { padding: 20px; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-actions, .profile-status { grid-column: auto; }
  .points-rules ul { grid-template-columns: 1fr; }
  .profile-history-grid { grid-template-columns: 1fr; }
  .reader-discussion { margin-top: 30px; }
  .reader-discussion-header { align-items: flex-start; flex-direction: column; }
  .discussion-compose-footer { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .important-reminder { animation: none; }
  .announcement-guide-item, .level-track span { transition: none; }
}

/* Account messages and server-backed avatars */
.account-nav { display: inline-flex; align-items: center; gap: 9px; }
.messages-nav-link { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 34px; color: #555b57; font-size: .74rem; font-weight: 750; text-decoration: none; }
.messages-nav-link .messages-dot { display: none; }
.messages-nav-link .messages-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b41a14;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
}
.messages-nav-link.has-unread .messages-count { display: inline-block; }
.messages-nav-link.has-unread .messages-dot { display: none; }
.account-popover-avatar,
.reader-author-avatar,
.discussion-avatar { overflow: hidden; }
.account-popover-avatar img,
.reader-author-avatar img,
.discussion-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.public-profile-avatar { overflow: hidden; }
.public-profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.account-popover nav .popover-unread { min-width: 20px; padding: 2px 6px; border-radius: 10px; background: #a01812; color: #fff; font-size: .65rem; text-align: center; }

/* Profile editing and messages */
.avatar-save { display: inline-flex; align-items: center; gap: 5px; border-color: color-mix(in srgb, var(--community-red, #8c0000) 22%, transparent) !important; background: color-mix(in srgb, var(--community-red) 8%, #fff) !important; color: var(--community-red) !important; font-weight: 800; }
.avatar-save:disabled { border-color: #e3e5e2 !important; background: #f3f4f1 !important; color: #a3aaa5 !important; cursor: not-allowed; }
.avatar-save svg { width: 14px; }
.password-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e2e5e1; }
.password-form h3 { grid-column: 1 / -1; margin: 0; color: var(--community-ink); font-size: .92rem; }
.messages-section { grid-column: 1 / -1; }
.messages-section .section-heading-row button { border: 0; background: transparent; color: var(--community-red); font-size: .74rem; font-weight: 750; cursor: pointer; }
.message-list { display: grid; }
.message-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 14px 2px; color: inherit; text-decoration: none; }
.message-item + .message-item { border-top: 1px solid #e7e9e6; }
.message-state { width: 7px; height: 7px; border-radius: 50%; background: #d4d8d3; }
.message-item.is-unread .message-state { background: #a01812; box-shadow: 0 0 0 4px #f4e8e5; }
.message-item > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.message-item strong { color: var(--community-ink); font-size: .84rem; }
.message-item small { overflow: hidden; color: var(--community-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.message-item time { color: #989e99; font-size: .67rem; }

/* Question plaza */
body[data-module="qa"] .module-page-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.qa-ask-button { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 5px; background: var(--community-red, #8c0000); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px color-mix(in srgb, var(--community-red, #8c0000) 16%, transparent); }
.qa-ask-button svg { width: 18px; }
.qa-category-tabs button { gap: 6px; }
.qa-category-tabs svg { width: 15px; height: 15px; }
body[data-module="qa"] .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
body[data-module="qa"] .qa-card { min-height: 280px; border-top:  solid var(--community-red, #8c0000); }
.qa-card-status { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; }
.qa-card-status > span:not(.qa-program) { padding: 4px 7px; border-radius: 3px; background: #eef0ed; color: #707671; font-size: .68rem; font-weight: 750; }
.qa-card-status > span[data-state="solved"] { background: #e1ece6; color: #35684d; }
.qa-program-life { background: #e3ece6 !important; color: #35684d !important; }
.qa-program-study { background: #f0e2df !important; color: var(--community-red, #8c0000) !important; }
.qa-program-work { background: #eee9da !important; color: #756128 !important; }
.qa-bounty { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #856817 !important; background: #f4efd9 !important; }
.qa-bounty svg { width: 13px; }
.qa-card .qa-heading-copy h3 { margin: 0 0 12px; font-size: 1.23rem; line-height: 1.45; }
.qa-card-footer small span { color: var(--community-red, #8c0000); font-weight: 750; }

/* Question composer */
.question-compose-main { width: min(1120px, calc(100% - 40px)); margin: 38px auto 72px; }
.question-compose-head { margin-bottom: 26px; }
.question-compose-head > a { display: inline-flex; align-items: center; gap: 6px; color: #747b76; font-size: .78rem; text-decoration: none; }
.question-compose-head > a svg { width: 16px; }
.question-compose-head > span { display: block; margin-top: 26px; color: var(--community-red, #8c0000); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.question-compose-head h1 { margin: 7px 0; font: 800 2.65rem/1.25 "Noto Serif SC", "Songti SC", serif; }
.question-compose-head p { margin: 0; color: #717873; }
.question-form { padding: 26px; border-top:  solid var(--community-red, #8c0000); background: #fff; box-shadow: 0 14px 40px rgba(25, 27, 26, .08); }
.question-settings { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 22px; margin-bottom: 22px; }
.question-settings fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.question-settings legend,
.question-settings > label,
.question-title-label { display: grid; gap: 7px; color: #666d68; font-size: .76rem; font-weight: 750; }
.question-settings select { height: 42px; padding: 0 10px; border: 1px solid #dfe2de; background: #f7f8f6; color: #292d2a; font: inherit; }
.question-settings small { font-size: .65rem; font-weight: 500; }
.qa-category-options { display: flex; gap: 8px; margin-top: 8px; }
.qa-category-options label input { position: absolute; opacity: 0; }
.qa-category-options label span { display: inline-flex; align-items: center; gap: 7px; min-width: 94px; justify-content: center; padding: 10px 14px; border: 1px solid #dfe2de; border-radius: 4px; background: #f7f8f6; color: #555c57; cursor: pointer; }
.qa-category-options label input:checked + span { border-color: var(--community-red, #8c0000); background: color-mix(in srgb, var(--community-red) 10%, #fff); color: var(--community-red, #8c0000); }
.qa-category-options svg { width: 16px; }
.question-form > .article-title-input { width: 100%; margin: 8px 0 18px; }
.question-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; }
.question-submit-row p { margin: 0; color: #737a75; font-size: .76rem; }

/* Focused QA writing flow */
.question-form { padding: 0; overflow: hidden; }
.question-step { padding: 25px 28px 28px; }
.question-step + .question-step { border-top: 1px solid #e2e5e1; }
.question-step > header { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.question-step > header > span { flex: 0 0 auto; padding-top: 2px; color: var(--community-red, #8c0000); font-size: .72rem; font-weight: 850; }
.question-step > header > div { display: grid; gap: 3px; }
.question-step > header h2 { margin: 0; color: #222825; font: 800 1.12rem/1.35 "Noto Serif SC", "Songti SC", serif; }
.question-step > header p { margin: 0; color: #858b87; font-size: .72rem; }
.question-basics { display: grid; grid-template-columns: minmax(0, 1fr) 310px; column-gap: 28px; }
.question-basics > header { grid-column: 1 / -1; }
.question-title-label { grid-column: 1; }
.question-basics > .article-title-input { grid-column: 1; width: 100%; min-height: 48px; margin: 7px 0 0; padding: 9px 12px; border: 1px solid #dfe2de; background: #fafbf9; color: #202522; font: 700 1.12rem/1.5 inherit; }
.question-basics fieldset { grid-column: 2; grid-row: 2 / 4; min-width: 0; margin: 0; padding: 0; border: 0; }
.question-basics legend { color: #666d68; font-size: .76rem; font-weight: 750; }
.question-writing-guide { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: -3px 0 13px 41px; color: #858b87; font-size: .68rem; }
.question-writing-guide em { padding: 4px 7px; border-radius: 3px; background: #eef0ed; color: #626964; font-style: normal; }
.question-writing #editor-mount { border: 1px solid #dfe3de; }
.question-writing .markdown-workbench { --writer-height: clamp(410px, 54vh, 560px); border-radius: 0; box-shadow: none; overflow: hidden; }
.question-writing .editor-menubar { min-height: 48px; padding: 7px 10px; border-bottom: 1px solid #e7e9e6; }
.question-writing .editor-modes button { width: auto; min-width: 70px; padding: 0 10px; }
.question-writing .editor-utilities { display: none; }
.question-writing .editor-toolbar { min-height: 42px; padding: 5px 9px; }
.question-writing #find-editor,
.question-writing [data-format="strike"],
.question-writing [data-format="quote"],
.question-writing [data-format="task"],
.question-writing [data-format="inline-code"],
.question-writing [data-format="code"],
.question-writing [data-format="table"],
.question-writing [data-format="math"],
.question-writing [data-format="rule"] { display: none; }
.question-writing .format-tools .tool-break { margin-left: 5px; }
.question-writing .editor-panes { grid-template-columns: minmax(0, 1fr) 5px minmax(0, 1fr); }
.question-writing .pane-resizer { background: #ecefeb; }
.question-writing .pane-heading,
.question-writing .preview-controls { padding: 6px 16px; background: #fafbf9; }
.question-writing .preview-controls > :not(.preview-label) { display: none; }
.question-writing .preview-label { margin: 0; color: #6d746f; font-weight: 750; }
.question-writing .CodeMirror { height: var(--writer-height); background: #fff; color: #303633; font: 15px/1.85 Consolas, "Microsoft YaHei", monospace; }
.question-writing .CodeMirror-lines { padding-top: 22px; }
.question-writing .CodeMirror pre.CodeMirror-line,
.question-writing .CodeMirror pre.CodeMirror-line-like { padding-left: 18px; padding-right: 18px; }
.question-writing .CodeMirror-gutters { display: none; }
.question-writing .CodeMirror-sizer { margin-left: 0 !important; }
.question-writing .preview-scroll { background: #fcfcfb; padding: 27px 30px 42px; }
.question-writing .editor-statusbar { justify-content: flex-start; gap: 18px; }
.question-writing .editor-statusbar #cursor-position { display: none; }
.question-finish { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 0 28px; background: #fafbf9; }
.question-finish > header { grid-column: 1; margin-bottom: 0; }
.question-finish .question-settings { grid-column: 2; grid-row: 1 / 3; display: block; margin: 0; }
.question-finish .question-settings > label { display: grid; gap: 7px; color: #666d68; font-size: .76rem; font-weight: 750; }
.question-finish .question-settings select { width: 100%; }
.question-finish .question-submit-row { grid-column: 1; padding-top: 18px; }

.question-receipt { margin-top: 8px; }
.question-receipt-card {
  position: relative;
  padding: 42px 48px 36px;
  border-top:  solid var(--community-red, #8c0000);
  background: #fff;
  box-shadow: 0 14px 40px rgba(25, 27, 26, .08);
}
.question-receipt-seal {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 0 20px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--community-red, #8c0000) 8%, transparent) 0 42%, transparent 43%),
    linear-gradient(180deg, #fff8f6, #f7ece9);
  color: var(--community-red, #8c0000);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--community-red, #8c0000) 55%, transparent),
    inset 0 0 0 5px rgba(255, 255, 255, .92),
    inset 0 0 0 6.5px color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent),
    0 10px 24px color-mix(in srgb, var(--community-red, #8c0000) 8%, transparent);
}
.question-receipt-seal::before {
  content: "通";
  font: 700 1.35rem/1 "Noto Serif SC", "Songti SC", serif;
  letter-spacing: .04em;
}
.question-receipt-seal i,
.question-receipt-seal svg { display: none !important; }
.question-receipt-kicker {
  display: block;
  color: var(--community-red, #8c0000);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.question-receipt-card h1 {
  margin: 8px 0 12px;
  color: #191b1a;
  font: 800 2.35rem/1.22 "Noto Serif SC", "Songti SC", serif;
}
.question-receipt-copy {
  max-width: 36em;
  margin: 0 0 22px;
  color: #6d746f;
  font-size: .92rem;
  line-height: 1.8;
}
.question-receipt-quote {
  max-width: 40em;
  margin: 0 0 28px;
  padding: 14px 18px;
  border-left:  solid var(--community-red, #8c0000);
  background: #f7f4f2;
  color: #2a2f2c;
  font: 700 1.05rem/1.55 "Noto Serif SC", "Songti SC", serif;
}
.question-receipt-quote:empty { display: none; }
.question-receipt-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  border: 1px solid #e4e6e2;
}
.question-receipt-flow li {
  display: grid;
  gap: 4px;
  padding: 16px 18px 18px;
  background: #fafbf9;
}
.question-receipt-flow li + li { border-left: 1px solid #e4e6e2; }
.question-receipt-flow span {
  color: var(--community-red, #8c0000);
  font-size: .68rem;
  font-weight: 850;
}
.question-receipt-flow strong {
  color: #222825;
  font-size: .9rem;
}
.question-receipt-flow small {
  color: #858b87;
  font-size: .72rem;
  line-height: 1.5;
}
.question-receipt-flow .is-done { background: #fff; }
.question-receipt-flow .is-now { background: #f6ecea; }
.question-receipt-flow .is-now strong { color: var(--community-red, #8c0000); }
.question-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.question-receipt-actions .button { min-width: 148px; padding: 11px 16px; }

/* Fixed QA reading theme */
.qa-reader-main .reader-heading-row { padding-bottom: 24px; border-bottom: 1px solid #dedfdb; }
.qa-reader-main .reader-title-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 15px; align-items: start; }
.qa-reader-main .qa-program { margin-top: 8px; padding: 6px 9px; border-radius: 3px; font-size: .72rem; font-weight: 800; }
.qa-reader-main .reader-content { max-width: 1200px; margin: 28px auto 0; padding: 27px 30px 29px; border-left:  solid var(--community-red, #8c0000); background: #fff; color: #303633; box-shadow: 0 8px 26px rgba(25, 27, 26, .055); font-size: 1.05rem; line-height: 1.82; }
.qa-reader-main .reader-content .qa-reading-fallback > :first-child { margin-top: 0; }
.qa-reader-main .reader-content .qa-reading-fallback > :last-child { margin-bottom: 0; }
.qa-reader-main .reader-content li::marker { color: var(--community-red, #8c0000); }
.qa-reader-main .reader-discussion { max-width: 1200px; margin-top: 34px; }
.qa-reader-main .reader-discussion-header { padding: 0 2px 12px; border-bottom: 2px solid #252a27; }
.qa-reader-main .discussion-list { gap: 14px; }
.qa-reader-main .discussion-item.is-reply { padding: 10px 0 0; border: 0; background: transparent; box-shadow: none; }
.qa-reader-main .discussion-item.is-accepted { position: relative; border-color: #cdbb76; box-shadow: inset 4px 0 0 #a88b2e; }
.qa-reader-main .discussion-markdown { color: #3d4440; font-size: .92rem; line-height: 1.82; }
.qa-reader-main .discussion-compose { border: 1px solid #dde1dc; background: #f3f5f2; }
.qa-reader-main .discussion-compose textarea { min-height: 128px; border: 1px solid transparent; }
.qa-reader-main .discussion-compose textarea:focus { border-color: color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent); outline: 0; }

/* Markdown answers */
.discussion-compose-head { display: flex; align-items: center; gap: 10px; }
.discussion-compose-head strong { color: var(--community-ink); }
.discussion-compose-head span { color: var(--community-muted); font-size: .68rem; }
.discussion-image-button { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 4px; background: #fff; color: #646b66; cursor: pointer; }
.discussion-image-button svg { width: 16px; }
.discussion-markdown { min-width: 0; font-size: .88rem; line-height: 1.7; }
.discussion-markdown > :first-child { margin-top: 0; }
.discussion-markdown > :last-child { margin-bottom: 0; }
.discussion-item.is-accepted { border: 1px solid #cfb96f; background: #fffdf4; }
.accepted-answer { display: inline-flex !important; align-items: center; gap: 4px; background: #eee6c9 !important; color: #725b17 !important; }
.accepted-answer svg { width: 13px; }
.discussion-review-state { background: #e9eae8 !important; color: #797f7a !important; }
.accept-answer-button { margin-top: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid #c8b365; border-radius: 4px; background: #fffaf0; color: #725b17; font-weight: 750; cursor: pointer; }
.accept-answer-button svg { width: 15px; }

.activity-compose-main .question-form { background: #fff; }
.activity-field,
.activity-meta-grid label {
  display: grid;
  gap: 8px;
  color: #666d68;
  font-size: 0.76rem;
  font-weight: 750;
}
.activity-field input,
.activity-meta-grid input,
.activity-body-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #dfe2de;
  border-radius: 4px;
  background: #fafbf9;
  color: #202522;
  font: inherit;
}
.activity-field input:focus,
.activity-meta-grid input:focus,
.activity-body-field textarea:focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 35%, transparent);
  background: #fff;
}
.activity-body-field { margin-top: 18px; }
.activity-body-field textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.7;
}
.activity-kinds {
  display: block;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
  color: #666d68;
  font-size: 0.76rem;
  font-weight: 750;
}
.activity-kinds legend {
  float: none;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 8px;
}
.activity-kind-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.activity-kind-options label {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
}
.activity-kind-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.activity-kind-options span {
  min-height: 76px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon hint";
  column-gap: 10px;
  row-gap: 3px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #dfe2de;
  border-radius: 5px;
  background: #f7f8f6;
  color: #3d4440;
  cursor: pointer;
}
.activity-kind-options span:hover { background: color-mix(in srgb, var(--community-red) 10%, #fff); border-color: #e0cfcb; }
.activity-kind-options i,
.activity-kind-options svg {
  grid-area: icon;
  align-self: center;
  width: 18px;
  height: 18px;
  color: var(--community-red, #8c0000);
}
.activity-kind-options b {
  grid-area: title;
  color: #222825;
  font-size: 0.9rem;
  font-weight: 800;
}
.activity-kind-options small {
  grid-area: hint;
  color: #7a817c;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
}
.activity-kind-options input:checked + span {
  border-color: var(--community-red, #8c0000);
  background: color-mix(in srgb, var(--community-red) 10%, #fff);
  box-shadow: inset 3px 0 0 var(--community-red, #8c0000);
}
.activity-kind-options input:checked + span b,
.activity-kind-options input:focus-visible + span b { color: var(--community-red, #8c0000); }
.activity-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.activity-meta-grid .wide { grid-column: 1 / -1; }
.activity-disclaimer {
  padding: 16px 18px;
  border-left:  solid var(--community-red, #8c0000);
  background: #f7f4f2;
}
.activity-disclaimer strong { display: block; margin-bottom: 6px; color: var(--community-red, #8c0000); font-size: 0.82rem; }
.activity-disclaimer p { margin: 0; color: #6d746f; font-size: 0.78rem; line-height: 1.7; }
.activity-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 14px 0 8px;
  padding: 12px 14px;
  border-radius: 5px;
  background: #f3f4f1;
  color: #5f6661;
  font-size: 0.78rem;
  line-height: 1.55;
  cursor: pointer;
}
.activity-accept input {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--community-red, #8c0000);
}
.activity-accept span {
  flex: 1;
  min-width: 0;
}

.profile-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
  padding: 28px 30px;
  border-top: 4px solid var(--community-red);
  background: var(--community-paper);
  box-shadow: 0 8px 28px rgba(25, 27, 26, 0.055);
}
.profile-identity-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}
.profile-identity-copy { min-width: 0; }
.profile-identity-main h1 { margin: 4px 0 6px; font-size: 2rem; }
.profile-identity-main p { margin: 0; color: var(--community-muted); font-size: 0.82rem; word-break: break-all; }
.profile-identity-copy .profile-avatar-actions { margin-top: 14px; }
.avatar-save,
#remove-avatar {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dfe2de;
  border-radius: 4px;
  background: #f5f6f3;
  color: var(--community-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.avatar-save:disabled { opacity: 0.45; cursor: default; }
.profile-identity-aside { display: grid; gap: 12px; justify-items: stretch; }
.profile-points-chip {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 5px;
  background: #f6ecea;
  color: inherit;
  text-decoration: none;
}
.profile-points-chip em { color: var(--community-red); font-size: 0.72rem; font-style: normal; font-weight: 850; }
.profile-points-chip strong { color: var(--community-red); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; line-height: 1; }
.profile-points-chip span { display: grid; gap: 2px; min-width: 0; }
.profile-points-chip b { color: var(--community-ink); font-size: 0.82rem; }
.profile-points-chip small { color: var(--community-muted); font-size: 0.68rem; line-height: 1.4; }
.profile-identity-aside .level-track { margin: 0; }
.profile-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  background: #eef0ed;
  color: #4b524d;
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
}
.profile-quick-links a:hover { background: color-mix(in srgb, var(--community-red) 10%, #fff); color: var(--community-red); }
.profile-quick-links svg { width: 14px; height: 14px; }
.profile-identity-aside > button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #efe8e6;
  color: var(--community-red);
  font-weight: 750;
  cursor: pointer;
}
.profile-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-panel-copy { margin: 8px 0 0; color: var(--community-muted); font-size: 0.76rem; line-height: 1.6; }
.password-form { grid-template-columns: 1fr; }
.profile-form .wide { grid-column: 1 / -1; }
.contribution-list a {
  color: var(--community-ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}
.contribution-list a:hover { color: var(--community-red); }
.profile-board {
  margin-top: 18px;
  padding: 26px 28px;
  border-radius: 6px;
  background: var(--community-paper);
  box-shadow: 0 8px 28px rgba(25, 27, 26, 0.045);
}
.collection-hero {
  align-items: stretch !important;
}
body[data-page="module"] .module-page-hero.collection-hero > .collection-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  width: min(100%, var(--front-shell-max, 1600px)) !important;
  max-width: none;
}
.collection-hero-copy {
  width: auto !important;
  max-width: min(520px, 100%);
  flex: 1 1 280px;
  min-width: 0;
}
.collection-hero-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #747b76;
  font-size: 0.78rem;
  text-decoration: none;
}
.collection-hero-copy > a svg { width: 16px; }
.collection-hero-copy h1 {
  max-width: none !important;
  margin: 8px 0 10px !important;
}
.collection-hero-actions { margin-top: 16px; }
.collection-related-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 340px;
  max-width: 560px;
  min-width: min(100%, 280px);
  padding: 4px 0 8px;
}
.collection-related-label {
  color: #8a7f76;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.collection-related-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.collection-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #eadfd6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5f4f44;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.collection-related-chip small {
  color: #9a8578;
  font-size: 0.72rem;
  font-weight: 700;
}
.collection-related-chip:hover,
.collection-related-chip:focus-visible {
  border-color: #d7b4ac;
  background: #fff4ef;
  color: var(--community-red, #8c0000);
  outline: none;
}
.collection-related-chip:hover small,
.collection-related-chip:focus-visible small { color: #a45a4a; }
.collection-related-chip.is-on {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 32%, transparent);
  background: linear-gradient(135deg, var(--community-red, #8c0000) 0%, color-mix(in srgb, var(--community-red) 72%, white) 55%, color-mix(in srgb, var(--community-red) 42%, white) 100%);
  color: #fff8f4;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--community-red, #8c0000) 16%, transparent);
}
.collection-related-chip.is-on small { color: rgba(255, 244, 234, 0.82); }
.collection-author-filter {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.collection-author-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #eadfd6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #5f4f44;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}
.collection-author-toggle svg {
  width: 15px;
  height: 15px;
  color: #9a8578;
}
.collection-author-toggle[aria-expanded="true"] {
  border-color: #d7b4ac;
  background: #fff4ef;
  color: var(--community-red, #8c0000);
}
.collection-author-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: min(42vh, 280px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #eadfd6;
  border-radius: 14px;
  background: #fffaf6;
  box-shadow: 0 14px 36px rgba(58, 42, 34, 0.12);
}
.collection-author-panel[hidden] { display: none; }
.collection-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #eadfd6;
  border-radius: 999px;
  background: #fff;
  color: #5f4f44;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}
.collection-author-chip small {
  color: #9a8578;
  font-size: 0.72rem;
  font-weight: 700;
}
.collection-author-chip:hover,
.collection-author-chip:focus-visible {
  border-color: #d7b4ac;
  background: #fff4ef;
  color: var(--community-red, #8c0000);
}
.collection-author-chip.is-on {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 32%, transparent);
  background: linear-gradient(135deg, var(--community-red, #8c0000) 0%, color-mix(in srgb, var(--community-red) 72%, white) 55%, color-mix(in srgb, var(--community-red) 42%, white) 100%);
  color: #fff8f4;
}
.collection-author-chip.is-on small { color: rgba(255, 244, 234, 0.82); }
.collection-search {
  display: block;
  width: min(100%, 260px);
}
.collection-search input {
  width: 100%;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #e4ddd4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #4f4741;
  font: inherit;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.collection-search input::placeholder { color: #a2978d; }
.collection-search input:hover { border-color: #d7b4ac; }
.collection-search input:focus {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 35%, transparent);
  background: #fff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  body[data-page="module"] .module-page-hero.collection-hero > .collection-hero-main {
    align-items: stretch;
    gap: 18px;
  }
  .collection-related-panel {
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
  }
  .collection-search { width: 100%; max-width: 320px; }
}

.note-compose-main { width: var(--front-shell, min(1600px, calc(100% - 40px))); }
.note-compose-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  color: var(--front-ink, #191b1a);
}
.note-compose-head > div > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6d746f;
  font-size: 0.78rem;
  text-decoration: none;
}
.note-compose-main svg { stroke-width: 1.6; }
.note-compose-head > div > a svg { width: 15px; height: 15px; }
.note-compose-head > div > span {
  display: block;
  margin-top: 22px;
  color: var(--community-red, #8c0000);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.note-compose-head h1 {
  margin: 8px 0 10px;
  color: #191b1a;
  font: 800 2.45rem/1.22 "Noto Serif SC", "Songti SC", serif;
}
.note-compose-head p {
  max-width: 36em;
  margin: 0;
  color: #6d746f;
  font-size: 0.88rem;
  line-height: 1.7;
}
.note-compose-status {
  display: grid;
  gap: 10px;
  justify-items: end;
  padding-bottom: 4px;
}
.note-compose-status .save-status {
  color: #6d746f;
  font-size: 0.72rem;
}
.note-compose-status .save-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #7a9080;
  vertical-align: middle;
}
.note-compose-status .button {
  min-height: 40px;
  padding: 0 16px;
}
.note-compose-main .note-form { background: #fff; }
.note-meta-grid,
.note-title-field,
.note-kinds {
  display: grid;
  gap: 8px;
  color: #666d68;
  font-size: 0.76rem;
  font-weight: 750;
}
.note-meta-grid {
  grid-template-columns: 140px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px 16px;
  margin: 0;
}
.note-meta-grid.attachment-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note-meta-grid .wide,
.attachment-parse-hint { grid-column: 1 / -1; }
.attachment-parse-hint {
  margin: 0 0 2px;
  color: #7a8278;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
}
.note-meta-grid input,
.note-meta-grid select,
.note-title-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #dfe2de;
  border-radius: 4px;
  background: #fafbf9;
  color: #202522;
  font: inherit;
}
.note-title-field { margin-top: 28px; }
.note-title-field input {
  font: 750 1.15rem/1.45 "Noto Serif SC", "Songti SC", serif;
}
.note-meta-grid input:focus,
.note-meta-grid select:focus,
.note-title-field input:focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 35%, transparent);
  background: #fff;
}
.note-kinds {
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}
.note-kinds legend {
  padding: 0;
  margin-bottom: 20px;
}
.note-kind-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.note-kind-options label {
  position: relative;
  display: block;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}
.note-kind-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.note-kind-options span {
  min-height: 0;
  width: max-content;
  max-width: 260px;
  display: grid;
  grid-template-columns: 18px max-content;
  grid-template-areas: "icon title" "icon hint";
  column-gap: 10px;
  row-gap: 4px;
  align-content: center;
  padding: 13px 16px;
  border: 1px solid #e2e5e1;
  border-radius: 6px;
  background: #f7f8f6;
  cursor: pointer;
}
.note-kind-options span:hover { background: color-mix(in srgb, var(--community-red) 10%, #fff); border-color: #e0cfcb; }
.note-kind-options i,
.note-kind-options svg {
  grid-area: icon;
  align-self: center;
  width: 16px;
  height: 16px;
  color: #9a4a46;
}
.note-kind-options b {
  grid-area: title;
  color: #222825;
  font-size: 0.9rem;
  font-weight: 800;
}
.note-kind-options small {
  grid-area: hint;
  color: #7a817c;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
}
.note-kind-options input:checked + span {
  border-color: var(--community-red, #8c0000);
  background: color-mix(in srgb, var(--community-red) 10%, #fff);
  box-shadow: inset 3px 0 0 var(--community-red, #8c0000);
}
.note-kind-options input:checked + span b { color: var(--community-red, #8c0000); }
.note-writing .question-writing-guide { margin-left: 41px; }
.note-writing #editor-mount {
  overflow: hidden;
  border: 1px solid #e2e5e1;
  border-radius: 6px;
  background: #fff;
}
.note-writing .markdown-workbench {
  --writer-height: clamp(460px, 58vh, 680px);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.note-writing .editor-menubar {
  min-height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid #ecefeb;
  background: #f7f8f6;
}
.note-writing .editor-modes {
  padding: 3px;
  border-radius: 6px;
  background: #eef0ed;
}
.note-writing .editor-modes button {
  width: auto;
  min-width: 72px;
  padding: 0 12px;
  border-radius: 4px;
  color: #5f6661;
  font-weight: 750;
}
.note-writing .editor-modes button.active {
  color: var(--community-red, #8c0000);
  background: #fff;
  box-shadow: 0 1px 4px rgba(25, 27, 26, 0.08);
}
.note-writing .editor-menubar-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.note-writing .editor-assist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.note-writing .editor-utilities { gap: 2px; margin-left: auto; }
.note-writing .editor-chip {
  min-height: 30px;
  padding: 0 11px;
  border-color: #e0e4df;
  background: #fff;
  color: #5a625c;
  font-size: 0.72rem;
}
.note-writing .editor-chip:hover {
  color: var(--community-red, #8c0000);
  background: #f6ecea;
}
.note-writing .editor-focus-chip[aria-pressed="true"] {
  background: var(--community-red, #8c0000);
  border-color: var(--community-red, #8c0000);
  color: #fff;
}
.note-writing .sync-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin-right: 8px;
  color: #6d746f;
  font-size: 0.7rem;
}
.note-writing .copy-rich-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e0cfcb;
  background: #fff;
  color: var(--community-red, #8c0000);
  box-shadow: none;
}
.note-writing .copy-rich-button:hover { background: #f6ecea; }
.note-writing .editor-toolbar {
  min-height: 44px;
  padding: 5px 10px;
  border-bottom: 1px solid #ecefeb;
  background: #fff;
}
.note-writing .format-tools .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #555c57;
}
.note-writing .editor-panes { grid-template-columns: minmax(0, 1fr) 5px minmax(0, 1fr); }
.note-writing .pane-heading,
.note-writing .preview-controls {
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f2ef;
  background: #fafbf9;
  color: #7a817c;
}
.note-writing .CodeMirror {
  height: var(--writer-height);
  background: #fff;
  color: #303633;
  font: 15px/1.85 Consolas, "Microsoft YaHei", monospace;
}
.note-writing .CodeMirror-lines { padding-top: 22px; }
.note-writing .CodeMirror pre.CodeMirror-line,
.note-writing .CodeMirror pre.CodeMirror-line-like { padding-left: 18px; padding-right: 18px; }
.note-writing .preview-scroll { background: #fcfcfb; padding: 27px 30px 42px; }
.note-writing .editor-statusbar {
  justify-content: flex-start;
  gap: 18px;
  border-top: 1px solid #ecefeb;
  background: #f7f8f6;
  color: #7a817c;
}
.note-compose-main input[type="checkbox"],
.note-compose-main input[type="radio"] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  accent-color: var(--community-red, #8c0000);
}
.note-finish .submission-attachments { margin: 0 0 8px; }
.note-finish .attachment-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}
.note-finish .attachment-heading p {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: #666d68;
  font-size: 0.76rem;
  font-weight: 750;
}
.note-finish .attachment-heading p span {
  color: #9aa09b;
  font-size: 0.68rem;
  font-weight: 500;
}
.note-finish .attachment-heading a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--community-red, #8c0000);
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
}
.note-finish .attachment-heading svg { width: 13px; height: 13px; }
.note-visibility {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 36em;
  margin: 28px 0 10px;
  padding: 0;
  color: #303633;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.note-visibility span {
  display: grid;
  gap: 2px;
}
.note-visibility small {
  color: #7a817c;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.45;
}
.note-share-lock {
  display: grid;
  gap: 10px;
  max-width: 36em;
  margin: 0 0 18px;
}
.note-share-enable { margin: 0; }
.note-share-fields {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e4e6e2;
  border-radius: 10px;
  background: #f7f8f5;
}
.note-share-fields label {
  display: grid;
  gap: 6px;
  color: #303633;
  font-size: 0.78rem;
  font-weight: 650;
}
.note-share-fields input[type="password"],
.note-share-fields input[type="number"] {
  width: 100%;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid #d5d8d3;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.note-share-reads-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.note-share-reads-row input { max-width: 120px; }
.note-share-reads-row .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.75rem;
}
.note-share-fields small {
  color: #7a817c;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.45;
}
.note-share-hint {
  margin: 0;
  color: #5f6761;
  font-size: 0.72rem;
  line-height: 1.45;
}
.share-pass-gate {
  margin: 28px 0 48px;
}
.share-pass-card {
  max-width: 420px;
  padding: 28px 26px;
  border: 1px solid #e4e6e2;
  border-radius: 14px;
  background: linear-gradient(180deg, #faf9f6 0%, #f3f4f1 100%);
}
.share-pass-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--community-red, #8c0000);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.share-pass-kicker svg { width: 14px; height: 14px; }
.share-pass-card h2 {
  margin: 10px 0 8px;
  color: #1f2320;
  font-size: 1.35rem;
  line-height: 1.35;
}
.share-pass-card > p {
  margin: 0 0 8px;
  color: #5f6761;
  font-size: 0.9rem;
  line-height: 1.55;
}
.share-pass-meta { color: #7a817c !important; font-size: 0.8rem !important; }
.share-pass-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.share-pass-form label {
  display: grid;
  gap: 6px;
  color: #303633;
  font-size: 0.8rem;
  font-weight: 650;
}
.share-pass-form input {
  padding: 10px 12px;
  border: 1px solid #d5d8d3;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.share-pass-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--community-red, #8c0000);
  font-size: 0.78rem;
}
.reader-share-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--community-red, #8c0000);
}
.reader-share-lock-tag svg { width: 12px; height: 12px; }
body[data-page="module"] .note-kind-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  background: transparent;
  box-shadow: none;
}
.note-compose-main .button svg {
  width: 14px;
  height: 14px;
}
.note-finish .question-submit-row {
  align-items: center;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #ecefeb;
}
.note-finish .question-submit-row p {
  max-width: 36em;
  line-height: 1.6;
}
.note-compose-main .submission-error { min-height: 18px; margin: 0 0 8px; color: var(--community-red, #8c0000); font-size: 0.78rem; }
body[data-page="module"][data-module="note"] dialog input,
body[data-page="module"][data-module="note"] dialog textarea,
body[data-page="module"][data-module="note"] dialog select,
body[data-page="submission"] dialog input,
body[data-page="submission"] dialog textarea,
body[data-page="submission"] dialog select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #dfe2de;
  border-radius: 4px;
  background: #fafbf9;
  color: #202522;
  font: inherit;
}

@media (max-width: 860px) {
  .activity-kind-options,
  .activity-meta-grid,
  .profile-identity,
  .profile-settings-grid,
  .note-meta-grid,
  .note-meta-grid.attachment-fields { grid-template-columns: 1fr; }
  .note-compose-head { align-items: start; flex-direction: column; }
  .note-compose-status { justify-items: start; }
  .note-writing .question-writing-guide { margin-left: 0; }
  .note-writing .editor-panes { grid-template-columns: minmax(0, 1fr); }
  .note-writing .pane-resizer { display: none; }
  .note-writing .markdown-workbench[data-mode="split"] .preview-pane { border-top: 5px solid #ecefeb; }
  .note-writing .copy-rich-button span { display: none; }
}

@media (max-width: 760px) {
  .account-nav { gap: 7px; }
  .messages-nav-link span { font-size: .7rem; }
  body[data-module="qa"] .module-page-hero { align-items: flex-start; }
  .qa-ask-button span { display: none; }
  body[data-module="qa"] .card-grid { grid-template-columns: 1fr; }
  .question-compose-main { width: calc(100% - 24px); margin-top: 24px; }
  .question-form { padding: 18px 14px; }
  .question-form { padding: 0; }
  .question-step { padding: 21px 16px 23px; }
  .question-basics, .question-finish { grid-template-columns: 1fr; }
  .question-basics > header, .question-basics > .article-title-input, .question-basics fieldset, .question-finish > header, .question-finish .question-settings, .question-finish .question-submit-row { grid-column: 1; grid-row: auto; }
  .question-basics fieldset { margin-top: 17px; }
  .question-writing-guide { margin-left: 0; }
  .question-writing .editor-panes { grid-template-columns: minmax(0, 1fr); }
  .question-writing .pane-resizer { display: none; }
  .question-writing .markdown-workbench[data-mode="split"] .preview-pane { border-top: 5px solid #ecefeb; }
  .question-finish .question-settings { margin-top: 16px; }
  .qa-category-options { display: grid; grid-template-columns: repeat(3, 1fr); }
  .qa-category-options label span { min-width: 0; padding: 9px 6px; }
  .question-submit-row { align-items: stretch; flex-direction: column; }
  .question-receipt-card { padding: 28px 18px 24px; }
  .question-receipt-card h1 { font-size: 1.85rem; }
  .question-receipt-flow { grid-template-columns: 1fr; }
  .question-receipt-flow li + li { border-left: 0; border-top: 1px solid #e4e6e2; }
  .question-receipt-actions { flex-direction: column; }
  .question-receipt-actions .button { width: 100%; min-width: 0; }
  .qa-reader-main .reader-content { margin-top: 20px; padding: 21px 18px 23px; }
  .password-form h3 { grid-column: auto; }
}

/* Reader export dialog */
.reader-export-dialog.insert-dialog,
.insert-dialog.export-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(92vh, 820px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 60px #27382224;
  color: #4b5542;
  background: #fff;
}
.reader-export-dialog::backdrop { background: #24302055; }
.reader-export-dialog form,
.export-dialog form { display: grid; gap: 18px; }
.reader-export-dialog .dialog-heading,
.export-dialog .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-export-dialog .dialog-heading h2,
.export-dialog .dialog-heading h2 { margin: 0; font-size: 18px; }
.reader-export-dialog .icon-button,
.export-dialog .icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: #626962; cursor: pointer;
}
.reader-export-dialog .icon-button:hover { background: #f1e3df; color: var(--community-red, #8c0000); }
.reader-export-dialog label:not(.export-qr-toggle),
.export-dialog .export-fields label { display: grid; gap: 8px; font-size: 12px; color: #7c856f; }
.reader-export-dialog select {
  min-height: 38px; padding: 0 10px; border: 1px solid #dde1da; border-radius: 4px;
  background: #fff; color: #3f4742; font: inherit;
}
.export-dialog .export-word-note { margin: 0; color: #7a817c; font-size: 12px; line-height: 1.65; }
.dialog-eyebrow { color: #9b3029; font: 650 10px/1.2 Arial,sans-serif; }
.export-kind-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; padding: 3px; border-radius: 5px; background: #eef0ec; }
.export-kind-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 0; border-radius: 3px; color: #6d746c; background: transparent; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.export-kind-tabs button.active { color: var(--community-red, #8c0000); background: #fff; box-shadow: 0 1px 7px #26312212; }
.export-kind-tabs svg { width: 16px; height: 16px; }
.export-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.export-fields[hidden] { display: none; }
#reader-image-export-fields label,
#reader-word-export-fields { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr); }
.export-summary { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: center; gap: 16px; min-height: 92px; padding: 14px 16px; border-left:  solid var(--community-red, #8c0000); background: #f6f7f4; }
.export-summary > div:last-child { display: grid; gap: 5px; }
.export-summary strong { color: #343c35; font-size: 14px; }
.export-summary small { color: #7c847b; font-size: 11px; line-height: 1.55; }
.export-live-preview { display: grid; gap: 8px; margin-top: 2px; }
.export-live-preview[hidden] { display: none; }
.export-live-preview-stage {
  display: grid; place-items: center; max-height: min(42vh, 420px); overflow: auto;
  padding: 10px; border: 1px solid #e4e6e2; background: #f3f4f0;
}
.export-live-preview-stage img { display: block; max-width: 100%; height: auto; background: #faf9f6; box-shadow: 0 8px 24px #26312214; }
.export-live-preview-stage iframe { width: 100%; min-height: 280px; height: min(38vh, 360px); border: 0; background: #fff; }
#reader-export-preview-caption { margin: 0; color: #6d746c; font-size: 12px; }
.export-paper-preview { position: relative; width: 52px; height: 68px; justify-self: center; overflow: hidden; border: 1px solid #d7c1bd; background: #fff; box-shadow: 3px 4px 0 #e6e8e3; }
.export-paper-preview::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--community-red, #8c0000); }
.export-paper-preview span { display: block; height: 2px; margin: 14px 9px 0; background: #dfe2dc; }
.export-paper-preview span + span { margin-top: 6px; }
.export-paper-preview[data-shape="long"] { width: 38px; height: 76px; }
.export-paper-preview[data-shape="landscape"] { width: 72px; height: 50px; }
.export-status { min-height: 19px; margin: -2px 0 0; color: #667064; font-size: 12px; line-height: 1.55; }
.export-status[data-state="error"] { color: var(--community-red, #8c0000); }
.export-status[data-state="busy"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #9b3029; animation: export-pulse 1s ease-in-out infinite alternate; }
@keyframes export-pulse { from { opacity: .35; } to { opacity: 1; } }
.export-qr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 4px;
  padding: 8px 12px;
  border: 1px solid #e4e6e2;
  border-radius: 6px;
  background: #fafbf9;
  color: #4a514d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}
.export-qr-toggle:hover { border-color: #d7c1bd; background: #fff; }
.export-qr-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  background: color-mix(in srgb, var(--community-red) 8%, #fff);
  color: #6d1212;
}
.export-qr-toggle input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px;
  margin: 0;
  padding: 0 !important;
  flex: 0 0 16px;
  border: 1.5px solid #b8bfb9;
  border-radius: 4px;
  background: #fff;
  accent-color: var(--community-red, #8c0000);
  cursor: pointer;
}
.export-qr-toggle input:checked {
  border-color: var(--community-red, #8c0000);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    var(--community-red, #8c0000);
}
.export-qr-toggle input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
  outline-offset: 2px;
}
.export-qr-toggle[hidden] { display: none !important; }
.export-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.export-dialog .dialog-actions .button { min-width: 96px; justify-content: center; }
.export-dialog button:disabled { cursor: wait; opacity: .58; }
.editor-export-stage { position: fixed; left: 0; top: 0; z-index: -1; box-sizing: border-box; overflow: visible; padding: 0; color: #1f2320; background: #faf9f6; pointer-events: none; }
.editor-export-stage .export-doc-shell {
  position: relative;
  box-sizing: border-box;
  padding: 18px 56px 20px;
  overflow: visible;
  background: #faf9f6;
}
.editor-export-stage .export-doc-meta {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 12%, transparent);
}
.editor-export-stage .export-doc-meta strong {
  display: block;
  margin: 0 0 8px;
  color: #1f2320;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: calc(var(--article-size, 20px) * 1.55);
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: 0.01em;
}
.editor-export-stage .export-doc-shell[data-font="sans"] .export-doc-meta strong {
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
.editor-export-stage .export-doc-meta span {
  color: #7a817c;
  font-family: "Times New Roman", Georgia, serif;
  font-size: calc(var(--article-size, 20px) * 0.68);
  letter-spacing: 0.02em;
}
.editor-export-stage .export-doc-body { position: relative; z-index: 1; }
.editor-export-stage .export-doc-body > .markdown-article {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #1f2320;
  font-size: var(--article-size, 16px);
  line-height: var(--article-leading, 1.55);
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.editor-export-stage .export-doc-body .markdown-article h2::before {
  background: var(--community-red, #8c0000);
}
.editor-export-stage .export-doc-body img {
  display: block !important;
  width: auto !important;
  max-width: 50% !important;
  height: auto !important;
  margin: 18px auto !important;
  object-fit: contain;
  break-inside: avoid;
  page-break-inside: avoid;
}
.editor-export-stage .export-doc-body figure,
.editor-export-stage .export-doc-body .qa-image-link {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
  break-inside: avoid;
  page-break-inside: avoid;
}
.editor-export-stage .export-doc-body figure img,
.editor-export-stage .export-doc-body .qa-image-link img {
  max-width: 100% !important;
  margin: 0 auto !important;
}
.editor-export-stage .export-nowrap-punct { white-space: nowrap; }
.editor-export-stage .preview-placeholder { display: none; }

/* Copyright acknowledgment gate */
body.copyright-ack-locked {
  overflow: hidden;
}

.copyright-ack-dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: min(92vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2c2f2d;
}

.copyright-ack-dialog::backdrop {
  background:
    radial-gradient(ellipse at 20% 10%, color-mix(in srgb, var(--community-red, #8c0000) 22%, transparent), transparent 42%),
    rgba(18, 20, 19, 0.72);
  backdrop-filter: blur(6px);
}

.copyright-ack-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  max-height: min(92vh, 900px);
  overflow: hidden;
  border-top:  solid var(--community-red, #8c0000);
  background:
    linear-gradient(180deg, #fffcfa 0%, #fafaf7 46%, #f5f6f2 100%);
  box-shadow: 0 28px 80px rgba(18, 20, 19, 0.35);
}

.copyright-ack-head {
  display: grid;
  gap: 18px;
  padding: 26px 28px 8px;
  text-align: center;
}

.copyright-ack-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-ack-brand img {
  display: block;
  height: 28px;
  width: auto;
}

.copyright-ack-brand span {
  color: #8a918b;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copyright-ack-title-block h2 {
  margin: 0 0 8px;
  color: #1f2320;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.copyright-ack-eyebrow {
  margin: 0 0 8px;
  color: var(--community-red, #8c0000);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-align: center;
}

.copyright-ack-title-block p {
  margin: 0 auto;
  max-width: 46rem;
  color: #5c655f;
  font-size: 0.92rem;
  line-height: 1.75;
  text-align: center;
}

.copyright-ack-callout {
  display: grid;
  gap: 8px;
  margin: 8px 28px 0;
  padding: 16px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--community-red, #8c0000) 14%, transparent);
  border-left:  solid var(--community-red, #8c0000);
  background: #fff8f6;
}

.copyright-ack-callout > span {
  color: var(--community-red, #8c0000);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.copyright-ack-callout strong {
  color: #2c2f2d;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.55;
}

.copyright-ack-callout p {
  margin: 0;
  color: #5c655f;
  font-size: 0.88rem;
  line-height: 1.7;
}

.copyright-ack-body {
  overflow: auto;
  padding: 18px 28px 12px;
  overscroll-behavior: contain;
}

.copyright-ack-body section {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(90, 102, 94, 0.1);
}

.copyright-ack-body section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.copyright-ack-body header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
}

.copyright-ack-body header span {
  color: var(--community-red, #8c0000);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.copyright-ack-body h3 {
  margin: 0;
  color: #1f2320;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.08rem;
}

.copyright-ack-body p,
.copyright-ack-body li {
  color: #3f4742;
  font-size: 0.9rem;
  line-height: 1.8;
}

.copyright-ack-body p { margin: 0 0 10px; }
.copyright-ack-body ol { margin: 0 0 10px; padding-left: 1.2em; }
.copyright-ack-body li + li { margin-top: 7px; }
.copyright-ack-body li::marker { color: var(--community-red, #8c0000); }
.copyright-ack-body a {
  color: var(--community-red, #8c0000);
  font-weight: 650;
  text-underline-offset: 0.16em;
}

.copyright-ack-foot {
  display: grid;
  gap: 12px;
  padding: 14px 28px 22px;
  border-top: 1px solid rgba(90, 102, 94, 0.12);
  background: rgba(255, 252, 250, 0.96);
}

.copyright-ack-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #3f4742;
  font-size: 0.86rem;
  line-height: 1.65;
  cursor: pointer;
}

.copyright-ack-check input {
  margin-top: 4px;
  accent-color: var(--community-red, #8c0000);
}

.copyright-ack-error {
  margin: 0;
  color: var(--community-red, #8c0000);
  font-size: 0.84rem;
}

.copyright-ack-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.copyright-ack-decline,
.copyright-ack-accept {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 2px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.copyright-ack-decline {
  border: 1px solid rgba(90, 102, 94, 0.22);
  background: transparent;
  color: #5c655f;
}

.copyright-ack-accept {
  border: 0;
  background: var(--community-red, #8c0000);
  color: #fff;
  min-width: 148px;
}

.copyright-ack-accept:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.copyright-ack-decline:hover { border-color: var(--community-red, #8c0000); color: var(--community-red, #8c0000); }
.copyright-ack-accept:not(:disabled):hover { background: var(--community-red-deep, #6f0000); }

@media (max-width: 720px) {
  .copyright-ack-head,
  .copyright-ack-body,
  .copyright-ack-foot { padding-left: 16px; padding-right: 16px; }
  .copyright-ack-callout { margin-left: 16px; margin-right: 16px; }
  .copyright-ack-actions { flex-direction: column-reverse; }
  .copyright-ack-decline,
  .copyright-ack-accept { width: 100%; }
}

/* —— App install tip / guide —— */
.app-install-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: min(90vh, 820px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2c2f2d;
}
.app-install-dialog::backdrop {
  background:
    radial-gradient(ellipse at 18% 8%, color-mix(in srgb, var(--community-red, #8c0000) 18%, transparent), transparent 40%),
    rgba(18, 20, 19, 0.68);
  backdrop-filter: blur(5px);
}
.app-install-shell {
  display: grid;
  gap: 0;
  max-height: min(90vh, 820px);
  overflow: auto;
  border-top: 3px solid var(--community-red, #8c0000);
  background: linear-gradient(180deg, #fffcfa 0%, #f7f8f4 100%);
  box-shadow: 0 24px 70px rgba(18, 20, 19, 0.32);
}
.app-install-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 0;
}
.app-install-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.app-install-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}
.app-install-eyebrow {
  margin: 0 0 4px;
  color: var(--community-red, #8c0000);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.app-install-brand h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1f2320;
}
.app-install-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #6a716c;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.app-install-close:hover { color: var(--community-red, #8c0000); }
.app-install-lead {
  margin: 12px 22px 0;
  color: #5c655f;
  font-size: 0.92rem;
  line-height: 1.65;
}
.app-install-lead a { color: var(--community-red, #8c0000); }
.app-install-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 22px 0;
}
.app-install-primary,
.app-install-secondary,
.app-install-ghost {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 2px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-install-primary {
  border: 0;
  background: var(--community-red, #8c0000);
  color: #fff;
}
.app-install-primary:hover { background: var(--community-red-deep, #6f0000); }
.app-install-secondary {
  border: 1px solid rgba(90, 102, 94, 0.22);
  background: #fff;
  color: #3d443f;
}
.app-install-ghost {
  border: 0;
  background: transparent;
  color: #7a817c;
  font-weight: 600;
}
.app-install-status {
  margin: 10px 22px 0;
  color: var(--community-red, #8c0000);
  font-size: 0.84rem;
}
.app-install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 22px 0;
}
.app-install-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(90, 102, 94, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: #5c655f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.app-install-tabs button.is-active,
.app-install-tabs button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--community-red, #8c0000) 45%, transparent);
  background: color-mix(in srgb, var(--community-red, #8c0000) 10%, #fff);
  color: var(--community-red, #8c0000);
}
.app-install-panel {
  margin: 12px 22px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(90, 102, 94, 0.1);
}
.app-install-panel ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: #3d443f;
  font-size: 0.9rem;
  line-height: 1.6;
}
.app-install-note {
  margin: 12px 0 0;
  color: #7a817c;
  font-size: 0.82rem;
  line-height: 1.55;
}
.app-install-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 22px 22px;
  margin-top: 8px;
}
.app-install-foot a {
  color: #6a716c;
  font-size: 0.82rem;
  text-decoration: none;
}
.app-install-foot a:hover { color: var(--community-red, #8c0000); }

@media (max-width: 720px) {
  .app-install-head,
  .app-install-lead,
  .app-install-cta-row,
  .app-install-tabs,
  .app-install-panel,
  .app-install-foot { padding-left: 16px; padding-right: 16px; }
  .app-install-cta-row { flex-direction: column; align-items: stretch; }
  .app-install-primary,
  .app-install-secondary { justify-content: center; }
}

/* —— Mobile app chrome —— */
.mobile-tabbar,
.mobile-compose {
  display: none;
}

@media (max-width: 760px) {
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2400;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 58px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(25, 27, 26, 0.08);
    background:
      linear-gradient(180deg, rgba(253, 253, 251, 0.94), rgba(247, 246, 242, 0.98)),
      var(--community-paper, #fdfdfb);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    box-shadow: 0 -10px 28px rgba(25, 27, 26, 0.06);
  }

  .mobile-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    padding: 6px 4px 4px;
    border-radius: 12px;
    color: #7a807c;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 140ms ease, background 140ms ease, transform 140ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab svg { width: 20px; height: 20px; stroke-width: 1.85; }
  .mobile-tab span { line-height: 1; }
  .mobile-tab::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 16px;
    height: 2.5px;
    border-radius: 999px;
    background: transparent;
    transform: translateX(-50%) scaleX(0.4);
    transition: background 140ms ease, transform 140ms ease;
  }
  .mobile-tab:active { transform: scale(0.96); }
  .mobile-tab.active {
    color: var(--community-red, #8c0000);
    background: color-mix(in srgb, var(--community-red, #8c0000) 6%, transparent);
  }
  .mobile-tab.active::before {
    background: var(--community-red, #8c0000);
    transform: translateX(-50%) scaleX(1);
  }

  body.has-mobile-tabbar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* App chrome: single-row topbar — logo left, actions right */
  body.has-mobile-tabbar .topbar,
  body.has-mobile-tabbar .reader-header {
    position: sticky;
    top: 0;
    z-index: 2300;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 48px;
    height: 48px;
    max-height: none;
    padding: 0 10px !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    background: rgba(253, 253, 251, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(25, 27, 26, 0.06);
  }

  body.has-mobile-tabbar .site-title {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 140px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 40px !important;
    gap: 4px !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }
  body.has-mobile-tabbar .site-title .versabase-cn {
    height: 24px !important;
    max-width: min(132px, 38vw) !important;
  }
  body.has-mobile-tabbar .site-title .versabase-en { display: none !important; }
  body.has-mobile-tabbar .site-title .versabase-mark {
    height: 30px !important;
    max-width: 44px !important;
  }

  /* Keep topnav as avatar/messages only; + sits after it on the right */
  body.has-mobile-tabbar .topnav,
  body.has-mobile-tabbar .reader-header nav {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    gap: 4px !important;
    overflow: visible !important;
    justify-content: flex-end !important;
  }
  body.has-mobile-tabbar .topnav > a,
  body.has-mobile-tabbar .topnav > .topnav-install-link,
  body.has-mobile-tabbar .reader-header nav > a,
  body.has-mobile-tabbar .reader-header nav > .topnav-install-link {
    display: none !important;
  }

  body.has-mobile-tabbar .mobile-appbar-actions {
    display: none !important;
  }

  body.has-mobile-tabbar .mobile-compose {
    display: block !important;
    position: relative;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    order: 30;
  }
  body.has-mobile-tabbar .account-nav {
    display: inline-flex !important;
    margin: 0;
    gap: 4px;
  }

  .mobile-compose-trigger {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--community-red, #8c0000);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--community-red, #8c0000) 20%, transparent);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-compose-trigger svg { width: 20px; height: 20px; stroke-width: 2.4; }
  .mobile-compose-trigger:active { transform: scale(0.94); }

  .mobile-compose-layer {
    position: relative;
    z-index: 2600;
  }
  .mobile-compose-scrim {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(25, 27, 26, 0.38);
  }
  .mobile-compose-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2600;
    display: grid;
    gap: 4px;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background: #fdfdfb;
    box-shadow: 0 -16px 40px rgba(25, 27, 26, 0.18);
  }
  .mobile-compose-handle {
    width: 36px;
    height: 4px;
    margin: 2px auto 8px;
    border-radius: 999px;
    background: rgba(25, 27, 26, 0.14);
  }
  .mobile-compose-title {
    margin: 0 4px 8px;
    color: var(--community-ink);
    font-size: 0.95rem;
  }
  .mobile-compose-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: rgba(231, 233, 230, 0.55);
  }
  .mobile-compose-item:active { background: color-mix(in srgb, var(--community-red, #8c0000) 8%, transparent); }
  .mobile-compose-item svg {
    width: 20px;
    height: 20px;
    color: var(--community-red, #8c0000);
    flex: 0 0 auto;
  }
  .mobile-compose-item span { display: grid; gap: 2px; min-width: 0; }
  .mobile-compose-item em {
    font-style: normal;
    font-weight: 750;
    color: var(--community-ink);
    font-size: 0.95rem;
  }
  .mobile-compose-item small {
    color: var(--community-muted);
    font-size: 0.72rem;
  }
  .mobile-compose-cancel {
    margin-top: 6px;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5c635f;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
  }

  /* Avatar-only account chip; icon messages */
  body.has-mobile-tabbar .profile-nav-link > span:not(.account-trigger-avatar) { display: none; }
  body.has-mobile-tabbar .messages-nav-link span:not(.messages-count) { display: none; }
  body.has-mobile-tabbar .messages-nav-link {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(231, 233, 230, 0.7);
    color: var(--community-red, #8c0000);
  }
  body.has-mobile-tabbar .messages-nav-link svg {
    width: 16px;
    height: 16px;
  }
  body.has-mobile-tabbar .messages-nav-link .messages-count {
    position: absolute;
    top: -2px;
    right: -2px;
  }

  /* Hide website chrome that breaks app feel */
  body.has-mobile-tabbar .site-footer { display: none !important; }
  body.has-mobile-tabbar .desktop-compose,
  body.has-mobile-tabbar .plaza-compose-actions.desktop-compose,
  body.has-mobile-tabbar .module-compose-rail.desktop-compose { display: none !important; }

  /* Compact module heroes + toolbars */
  body.has-mobile-tabbar[data-page="module"] .module-page-hero {
    min-height: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    align-items: stretch;
  }
  body.has-mobile-tabbar[data-page="module"] .module-page-hero .eyebrow,
  body.has-mobile-tabbar .plaza-hero-desc,
  body.has-mobile-tabbar .module-hero-desc {
    display: none !important;
  }
  body.has-mobile-tabbar[data-page="module"] .module-page-hero h1 {
    font-size: 1.28rem !important;
    line-height: 1.2 !important;
    margin: 0;
  }
  body.has-mobile-tabbar .plaza-page-hero.plaza-hero-compact,
  body.has-mobile-tabbar .note-hero-compact,
  body.has-mobile-tabbar .talk-hero-compact {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  body.has-mobile-tabbar[data-page="module"] .module-board {
    padding-left: 0;
    padding-right: 0;
  }
  body.has-mobile-tabbar .topbar,
  body.has-mobile-tabbar .reader-header {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.has-mobile-tabbar .module-toolbar,
  body.has-mobile-tabbar .plaza-toolbar.module-toolbar,
  body.has-mobile-tabbar .note-toolbar.module-toolbar,
  body.has-mobile-tabbar .talk-toolbar.module-toolbar,
  body.has-mobile-tabbar .plaza-toolbar.control-panel,
  body.has-mobile-tabbar .note-toolbar.control-panel,
  body.has-mobile-tabbar .talk-toolbar.control-panel,
  body.has-mobile-tabbar[data-page="module"] .control-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border-radius: 14px;
  }
  body.has-mobile-tabbar .module-search input {
    min-height: 38px;
    font-size: 0.84rem;
  }
  body.has-mobile-tabbar[data-page="module"] .search-line label {
    font-size: 0.68rem;
  }
  body.has-mobile-tabbar .plaza-section-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  body.has-mobile-tabbar .plaza-section-tabs button {
    justify-content: center;
    min-height: 34px;
    padding: 5px 2px;
    font-size: 0.64rem;
  }
  body.has-mobile-tabbar .plaza-section-tabs button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.has-mobile-tabbar .note-filter-row,
  body.has-mobile-tabbar[data-module="note"] .course-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
  }
  body.has-mobile-tabbar[data-module="note"] .course-filters label,
  body.has-mobile-tabbar .note-filter-row label {
    margin: 0;
    font-size: 0.7rem;
  }
  body.has-mobile-tabbar[data-page="module"] .module-board {
    padding-top: 8px;
  }
  body.has-mobile-tabbar .content-tools {
    gap: 8px;
    margin-bottom: 8px;
  }
  body.has-mobile-tabbar .content-tools select {
    min-width: 0;
    max-width: 42vw;
  }

  /* Home: schedule-first app workspace */
  body.has-mobile-tabbar[data-page="home"] .front-hero {
    display: block;
    min-height: 0;
    padding: 2px 0 6px;
    gap: 0;
  }
  body.has-mobile-tabbar[data-page="home"] .front-hero-copy {
    display: none !important;
  }
  body.has-mobile-tabbar[data-page="home"] .home-schedule {
    width: 100%;
    margin: 0;
    padding: 10px 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(25, 27, 26, 0.07);
    background: #fff;
    box-shadow: 0 6px 18px rgba(25, 27, 26, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    min-height: calc(100svh - 132px);
    max-height: none;
    grid-template-rows: none;
    overflow: visible;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-head {
    padding-bottom: 8px;
    gap: 8px;
    border-bottom: 0;
    align-items: center;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-panel-title span {
    display: none;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-panel-title strong {
    font-size: 1.08rem;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-actions {
    gap: 6px;
    flex: 0 0 auto;
    max-width: none;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-actions .schedule-notes,
  body.has-mobile-tabbar[data-page="home"] .schedule-actions .schedule-history {
    display: none;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-actions .schedule-notes span,
  body.has-mobile-tabbar[data-page="home"] .schedule-actions .schedule-history span {
    display: none;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-actions button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 9px;
  }

  /* Week strip */
  body.has-mobile-tabbar[data-page="home"] .schedule-cal {
    margin: 0 0 2px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-date-nav {
    gap: 3px;
    padding: 2px 0 6px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-date-nav > button {
    flex-basis: 22px;
    width: 22px;
    min-width: 22px;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8a908b;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days {
    gap: 4px;
    padding: 2px 0 4px;
    perspective: none;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days button {
    min-height: 68px;
    padding: 6px 1px 6px;
    border-radius: 11px;
    background: linear-gradient(145deg, #fbfbfa, #eef0ed);
    box-shadow: 2px 3px 0 rgba(55, 62, 56, 0.07), 0 6px 12px rgba(25, 27, 26, 0.06);
    transform: none;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days button:hover {
    transform: translateY(-2px);
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days button.active {
    background: linear-gradient(145deg, color-mix(in srgb, var(--community-red, #8c0000) 85%, black), var(--community-red, #8c0000));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--community-red, #8c0000) 22%, transparent);
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days button[aria-current="date"]:not(.active) {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--community-red, #8c0000) 35%, transparent), 0 0 12px color-mix(in srgb, var(--community-red, #8c0000) 28%, transparent);
    background: #fff;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days span {
    font-size: 0.54rem;
    letter-spacing: 0;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days strong {
    font-size: 0.98rem;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days em {
    min-height: 1.1em;
    height: auto;
    overflow: hidden;
    line-height: 1.1;
    font-size: 0.58rem;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days button.has-items::after,
  body.has-mobile-tabbar[data-page="home"] .schedule-days button.has-term::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    transform: translateX(-50%);
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-days button.active.has-items::after,
  body.has-mobile-tabbar[data-page="home"] .schedule-days button.active.has-term::after {
    background: #fff;
    opacity: 0.92;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-cal.is-open .schedule-month {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    top: 64px;
    width: auto;
    z-index: 2300;
    max-height: calc(100svh - 88px);
    overflow: auto;
  }

  body.has-mobile-tabbar[data-page="home"] .schedule-life-zone {
    margin-top: 0;
    padding: 6px 0 8px;
    gap: 6px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-life-empty {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-countdown {
    display: none;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-day-heading {
    margin-top: 0;
    padding: 4px 0 6px;
    gap: 8px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-day-heading > div span:first-child {
    font-size: 0.66rem;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-day-heading strong {
    font-size: 0.9rem;
  }
  body.has-mobile-tabbar[data-page="home"] #schedule-cal-toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 9px;
  }

  /* Compact life / anniversary chips */
  body.has-mobile-tabbar[data-page="home"] .schedule-life-chips {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 8px;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    margin: 4px 0;
    padding: 10px 12px 10px 14px;
    gap: 6px 8px;
    border-radius: 10px;
    border-color: rgba(25, 27, 26, 0.07);
    background: #f8f8f6;
    box-shadow: 0 6px 14px rgba(60, 40, 28, 0.08);
    transform: none;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip::before {
    top: 50%;
    left: 8px;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip::after {
    display: none;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip:hover {
    transform: none;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip svg {
    width: 14px;
    height: 14px;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip-days {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    min-width: 2.4em;
    max-width: 3.4em;
    margin: 0;
    flex: 0 0 auto;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip-num {
    font-size: 0.92rem;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip-prefix,
  body.has-mobile-tabbar[data-page="home"] .life-chip-unit {
    font-size: 0.62rem;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.has-mobile-tabbar[data-page="home"] .life-chip-label br {
    display: none;
  }

  body.has-mobile-tabbar[data-page="home"] .schedule-agenda {
    gap: 6px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-entry {
    padding: 10px 11px;
    border-radius: 12px;
  }

  /* Diary stacked at bottom: prompt / view / auto-save edit */
  body.has-mobile-tabbar[data-page="home"] .schedule-countdown {
    order: 0;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-day-body {
    order: 1;
    flex: 1 1 auto;
    overflow: visible;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-diary {
    order: 20;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(25, 27, 26, 0.07);
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-diary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-diary-head strong {
    font-size: 0.86rem;
    color: #1f2421;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-diary-prompt,
  body.has-mobile-tabbar[data-page="home"] .schedule-diary-view {
    min-height: 72px;
    border-radius: 12px;
  }
  body.has-mobile-tabbar[data-page="home"] .schedule-diary textarea {
    min-height: 88px;
    width: 100%;
    border-radius: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(25, 27, 26, 0.09);
    background: #fff;
  }

  body.has-mobile-tabbar .toast {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 761px) {
  .mobile-tabbar,
  .mobile-compose,
  .mobile-appbar-actions,
  .mobile-compose-layer {
    display: none !important;
  }
}

.public-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.public-profile-tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 18px;
  padding: 4px;
  width: fit-content;
  border: 1px solid #e2e5e1;
  border-radius: 10px;
  background: #f4f5f2;
}

.public-profile-tabs button {
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6f7671;
  font: inherit;
  cursor: pointer;
}

.public-profile-tabs button.is-on {
  background: #fff;
  color: var(--front-red, #8c0000);
  box-shadow: 0 1px 2px rgba(20, 24, 22, 0.06);
}

.public-qa-list {
  display: grid;
  gap: 12px;
}

.public-qa-card {
  border: 1px solid #e4e7e2;
  border-radius: 14px;
  background: #fff;
}

.public-qa-card a {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.public-qa-card strong {
  font: 700 1.05rem/1.35 "Noto Serif SC", "Songti SC", serif;
  color: #1f2421;
}

.public-qa-card p {
  margin: 0;
  color: #66706a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.public-qa-card small {
  color: #8a918c;
  font-size: 0.75rem;
}

@media (max-width: 760px) {
  .public-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Home: center the two columns, vertically center the left copy, stretch the schedule */
@media (min-width: 981px) {
  body[data-page="home"] .site-shell {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0 auto;
    padding-inline: clamp(20px, 4vw, 56px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  body[data-page="home"] main#top {
    flex: 1 1 auto;
    display: flex;
    width: 100%;
    min-height: calc(100svh - 100px);
    justify-content: center;
    align-items: stretch;
  }

  body[data-page="home"] .front-hero {
    flex: 1 1 auto;
    align-self: center;
    width: min(100%, calc(520px + 20px + (100svh - 140px) * 0.8));
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 520px) calc((100svh - 140px) * 0.8);
    grid-template-rows: auto;
    column-gap: 20px;
    align-items: center;
    align-content: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    padding: 0;
  }

  body[data-page="home"] .front-hero-copy {
    align-self: center;
    width: 100%;
    max-width: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    padding: 0;
  }

  body[data-page="home"] .front-hero-copy .module-entry-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body[data-page="home"] .home-life-dock {
    width: 100%;
    align-self: stretch;
    justify-content: flex-start;
    margin: 2px 0 0;
  }

  body[data-page="home"] .home-life-dock .life-chip:first-child {
    margin-left: 0;
  }

  body[data-page="home"] .home-schedule {
    align-self: center;
    justify-self: start;
    width: calc((100svh - 140px) * 0.8);
    height: calc(100svh - 140px);
    margin-block: 20px;
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  body[data-page="home"] .home-schedule:has(.schedule-cal.is-open) {
    overflow: visible;
    z-index: 2200;
  }

  body[data-page="home"] .schedule-date-nav {
    padding-bottom: 30px;
  }

  body[data-page="home"] .schedule-day-body {
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="home"] .schedule-agenda-label {
    flex: 0 0 auto;
    line-height: 1.5;
    min-height: 1.5em;
  }

  body[data-page="home"] .schedule-agenda {
    min-width: 0;
    overflow: visible;
    max-height: none;
    padding: 8px 2px 12px;
    box-sizing: border-box;
  }

  body[data-page="home"] .schedule-entry {
    max-width: 100%;
    min-width: 0;
  }
}

html[data-theme="dark"] body[data-page="home"] .topnav,
html[data-theme="dark"] body[data-page="module"] .topnav,
html[data-theme="dark"] body[data-page="submission"] .topnav,
html[data-theme="dark"] body[data-page="article"] .topnav {
  background: transparent;
}

html[data-theme="dark"] body[data-page="home"] .topnav a,
html[data-theme="dark"] body[data-page="home"] .topnav .topnav-install-link,
html[data-theme="dark"] body[data-page="module"] .topnav a,
html[data-theme="dark"] body[data-page="module"] .topnav .topnav-install-link,
html[data-theme="dark"] body[data-page="submission"] .topnav a,
html[data-theme="dark"] body[data-page="submission"] .topnav .topnav-install-link,
html[data-theme="dark"] body[data-page="article"] .topnav a,
html[data-theme="dark"] body[data-page="article"] .topnav .topnav-install-link,
html[data-theme="dark"] .reader-header nav a,
html[data-theme="dark"] .reader-header nav .topnav-install-link {
  color: #e6ebe7;
}

html[data-theme="dark"] body[data-page="home"] .topnav a:hover,
html[data-theme="dark"] body[data-page="home"] .topnav a.active,
html[data-theme="dark"] body[data-page="home"] .topnav .topnav-install-link:hover,
html[data-theme="dark"] body[data-page="module"] .topnav a:hover,
html[data-theme="dark"] body[data-page="module"] .topnav a.active,
html[data-theme="dark"] body[data-page="module"] .topnav .topnav-install-link:hover,
html[data-theme="dark"] body[data-page="submission"] .topnav a:hover,
html[data-theme="dark"] body[data-page="submission"] .topnav a.active,
html[data-theme="dark"] body[data-page="submission"] .topnav .topnav-install-link:hover,
html[data-theme="dark"] .reader-header nav a:hover,
html[data-theme="dark"] .reader-header nav .topnav-install-link:hover {
  background: transparent;
  color: #f6d2cb;
}

html[data-theme="dark"] .topnav .profile-nav-link,
html[data-theme="dark"] .reader-header nav .profile-nav-link {
  color: #f3c7c0;
}

html[data-theme="dark"] .account-popover {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1c1f1e;
  color: #eceee9;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .account-popover::before {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1c1f1e;
}

html[data-theme="dark"] .account-popover-head strong,
html[data-theme="dark"] .account-popover nav a,
html[data-theme="dark"] .account-popover nav button {
  color: #eceee9;
}

html[data-theme="dark"] .account-popover-head small,
html[data-theme="dark"] .account-popover nav a small {
  color: #b7beb8;
}

html[data-theme="dark"] .profile-identity,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .points-panel,
html[data-theme="dark"] .public-profile-hero,
html[data-theme="dark"] .profile-board,
html[data-theme="dark"] .library-card,
html[data-theme="dark"] .thought-card {
  background: #1c1f1e;
  color: #eceee9;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .profile-identity-main h1,
html[data-theme="dark"] .profile-main h2,
html[data-theme="dark"] .public-profile-hero h1,
html[data-theme="dark"] .section-heading-row h2 {
  color: #f4f6f3;
}

html[data-theme="dark"] .profile-identity-main p,
html[data-theme="dark"] .profile-panel-copy,
html[data-theme="dark"] .profile-status,
html[data-theme="dark"] .profile-form label,
html[data-theme="dark"] .appearance-row > span,
html[data-theme="dark"] .appearance-hint,
html[data-theme="dark"] .field-state {
  color: #c5ccc6;
}

html[data-theme="dark"] .profile-points-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #262a28;
  color: #eceee9;
}

html[data-theme="dark"] .profile-points-chip em,
html[data-theme="dark"] .profile-points-chip strong {
  color: #f0b8b0;
}

html[data-theme="dark"] .profile-points-chip b {
  color: #f4f6f3;
}

html[data-theme="dark"] .profile-points-chip small {
  color: #c5ccc6;
}

html[data-theme="dark"] .level-track {
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .profile-quick-links a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e6ebe7;
}

html[data-theme="dark"] .profile-quick-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f6d2cb;
}

html[data-theme="dark"] .profile-identity-aside > button {
  border: 1px solid rgba(240, 180, 172, 0.28);
  background: rgba(140, 48, 40, 0.28);
  color: #f3c7c0;
}

html[data-theme="dark"] .settings-toc a {
  border-color: rgba(240, 180, 172, 0.32);
  background: #262a28;
  color: #f3c7c0;
}

html[data-theme="dark"] .settings-toc a:hover {
  background: #322826;
}

html[data-theme="dark"] .profile-form input,
html[data-theme="dark"] .profile-form textarea,
html[data-theme="dark"] .profile-form select {
  background: #121416;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f6f3;
}

html[data-theme="dark"] .profile-form input:focus,
html[data-theme="dark"] .profile-form textarea:focus {
  border-color: rgba(240, 180, 172, 0.55);
  outline: none;
}

html[data-theme="dark"] .avatar-save,
html[data-theme="dark"] .avatar-save:disabled,
html[data-theme="dark"] #remove-avatar,
html[data-theme="dark"] .profile-button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: #2a2e2c !important;
  color: #e6ebe7 !important;
}

html[data-theme="dark"] .avatar-save:not(:disabled) {
  border-color: rgba(240, 180, 172, 0.4) !important;
  background: rgba(140, 48, 40, 0.35) !important;
  color: #f6d2cb !important;
}

html[data-theme="dark"] .profile-button.danger {
  border-color: rgba(240, 160, 150, 0.4);
  background: rgba(140, 40, 32, 0.28);
  color: #f3c7c0;
}

html[data-theme="dark"] .delete-account-form,
html[data-theme="dark"] .level-scale li + li {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] #member-center .profile-identity,
html[data-theme="dark"] #member-center .profile-panel,
html[data-theme="dark"] #member-center .settings-toc {
  border-color: rgba(255, 255, 255, 0.08);
  background: #1c1f1e;
}
html[data-theme="dark"] #member-center .settings-toc {
  background: #1c1f1e;
}
html[data-theme="dark"] #member-center .settings-toc a,
html[data-theme="dark"] #member-center .profile-quick-links a,
html[data-theme="dark"] #member-center .profile-identity-aside > button,
html[data-theme="dark"] #member-center .avatar-save,
html[data-theme="dark"] #member-center #remove-avatar,
html[data-theme="dark"] #member-center .profile-form label,
html[data-theme="dark"] #member-center .appearance-choice,
html[data-theme="dark"] #member-center .settings-subhead {
  color: #d7ddd8;
}
html[data-theme="dark"] #member-center .settings-toc a:hover,
html[data-theme="dark"] #member-center .settings-toc a.is-current,
html[data-theme="dark"] #member-center .profile-quick-links a:hover,
html[data-theme="dark"] #member-center .profile-identity-aside > button:hover,
html[data-theme="dark"] #member-center .avatar-button {
  color: #f3c7c0;
}
html[data-theme="dark"] #member-center .avatar-button,
html[data-theme="dark"] #member-center .avatar-save,
html[data-theme="dark"] #member-center #remove-avatar,
html[data-theme="dark"] #member-center .profile-form input,
html[data-theme="dark"] #member-center .invite-list li {
  border-color: rgba(255, 255, 255, 0.12);
  background: #262a28;
}
html[data-theme="dark"] #member-center .profile-form input[readonly],
html[data-theme="dark"] #member-center .appearance-choices,
html[data-theme="dark"] #member-center .profile-identity-aside .level-track {
  background: #121416;
}
html[data-theme="dark"] #member-center .appearance-choice.is-active {
  background: #2c2624;
  color: #f3c7c0;
}
html[data-theme="dark"] #member-center .delete-account-form {
  border-color: rgba(240, 160, 150, 0.28);
  background: rgba(140, 40, 32, 0.16);
}
html[data-theme="dark"] #member-center .profile-identity-aside,
html[data-theme="dark"] #member-center .appearance-row {
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] #member-center .appearance-row > span {
  color: #f4f6f3;
}

html[data-theme="dark"] .note-tile-face {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #242826, #1c1f1e);
  color: #eceee9;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .note-tile.is-recommended .note-tile-face,
html[data-theme="dark"] .note-tile.is-pinned .note-tile-face,
html[data-theme="dark"] .public-post-list.is-private-view .note-tile-face {
  border-color: rgba(240, 184, 176, 0.34);
  background: linear-gradient(160deg, #2c2624 0%, #1c1f1e 72%);
  color: #f4f6f3;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .note-tile-face h3,
html[data-theme="dark"] .note-tile-open h3 {
  color: #f4f6f3;
}

html[data-theme="dark"] .topic-chip,
html[data-theme="dark"] .note-tile-topics .topic-chip,
html[data-theme="dark"] .reader-meta .topic-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #d7ddd8;
}

html[data-theme="dark"] .person-link,
html[data-theme="dark"] .person-plain,
html[data-theme="dark"] .reader-meta .person-link,
html[data-theme="dark"] .reader-meta .person-plain {
  color: #e6ebe7;
}

html[data-theme="dark"] .note-tile-author,
html[data-theme="dark"] .note-tile-author > span {
  color: #b7b2aa;
}

html[data-theme="dark"] .note-tile-author .person-link,
html[data-theme="dark"] .note-tile-author .person-plain {
  color: #f4f1ec;
}

html[data-theme="dark"] .public-course-heading {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .public-course-heading h3,
html[data-theme="dark"] .public-course-heading h3 a {
  color: #f4f6f3;
}

html[data-theme="dark"] .points-rules li,
html[data-theme="dark"] .prototype-state {
  background: #262a28;
  color: #d7ddd8;
}

html[data-theme="dark"] .site-title .versabase-cn,
html[data-theme="dark"] .site-title .versabase-en,
html[data-theme="dark"] .site-title .versabase-mark,
html[data-theme="dark"] .reader-brand img {
  filter: brightness(0) invert(0.92);
}

html[data-theme="dark"] body[data-page="home"] .front-hero,
html[data-theme="dark"] body[data-page="module"] .module-page-hero {
  background: #161818;
  color: #f4f6f3;
  box-shadow: none;
}

html[data-theme="dark"] .module-hero-copy h1,
html[data-theme="dark"] .plaza-hero-copy h1,
html[data-theme="dark"] .note-hero-compact h1,
html[data-theme="dark"] .talk-hero-compact h1,
html[data-theme="dark"] body[data-page="home"] .front-hero h1 {
  color: #f4f6f3;
}

html[data-theme="dark"] .module-hero-copy .eyebrow,
html[data-theme="dark"] .plaza-hero-copy .eyebrow {
  color: #f0b8b0;
}

html[data-theme="dark"] .module-search input,
html[data-theme="dark"] body[data-page="module"] .content-tools select,
html[data-theme="dark"] body[data-page="module"] .course-filters select {
  background: #262a28;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4f6f3;
}

html[data-theme="dark"] .module-search input::placeholder,
html[data-theme="dark"] .module-search > svg {
  color: #b7beb8;
}

html[data-theme="dark"] .module-search input:focus {
  background: #2c302e;
  border-color: rgba(240, 184, 176, 0.45);
  color: #f4f6f3;
  box-shadow: none;
}

html[data-theme="dark"] body[data-page="module"] .module-page-hero p,
html[data-theme="dark"] body[data-page="home"] .front-hero p,
html[data-theme="dark"] body[data-page="module"] .eyebrow,
html[data-theme="dark"] body[data-page="home"] .eyebrow {
  color: #d5dbd6;
}

html[data-theme="dark"] .collection-filter-bar,
html[data-theme="dark"] .collection-filter-label,
html[data-theme="dark"] .collection-filter-bar button,
html[data-theme="dark"] .collection-filter-bar a,
html[data-theme="dark"] .collection-filter-bar button small,
html[data-theme="dark"] .collection-filter-bar a small,
html[data-theme="dark"] body[data-page="module"] .content-tools p,
html[data-theme="dark"] .filter-default {
  color: #d5dbd6;
}

html[data-theme="dark"] .collection-filter-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .life-chip-label {
  color: #e6ebe7;
}

html[data-theme="dark"] .life-chip-num,
html[data-theme="dark"] .life-chip.tone-countup .life-chip-num,
html[data-theme="dark"] .life-chip.tone-memo .life-chip-num {
  color: #f0b8b0;
}

html[data-theme="dark"] .life-chip-days,
html[data-theme="dark"] .life-chip-prefix,
html[data-theme="dark"] .life-chip-unit {
  color: #e4d2cb;
}

html[data-theme="dark"] .schedule-entry-actions .schedule-note-start {
  border-color: rgba(240, 180, 172, 0.45);
  background: #322826;
  color: #f6d2cb;
}

html[data-theme="dark"] .account-popover nav a,
html[data-theme="dark"] .account-popover nav a:hover,
html[data-theme="dark"] .account-popover nav button,
html[data-theme="dark"] .account-popover nav button:hover,
html[data-theme="dark"] body .topnav .account-popover a,
html[data-theme="dark"] body .topnav .account-popover a:hover,
html[data-theme="dark"] body .topnav .account-popover a.active {
  background: transparent;
  color: #e6ebe7;
}

html[data-theme="dark"] .account-popover nav a:hover,
html[data-theme="dark"] .account-popover nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f6d2cb;
}

html[data-theme="dark"] .account-popover-head em,
html[data-theme="dark"] .account-popover nav strong {
  color: #f0b8b0;
}

html[data-theme="dark"] .reader-body,
html[data-theme="dark"] body[data-page="article"] {
  --reader-theme-heading: #f7f8f6;
  --reader-theme-text: #f4f6f3;
  --reader-theme-muted: #d7ddd8;
  --reader-theme-accent: #f0b8b0;
  --reader-theme-marker: #f0b8b0;
  --reader-theme-border: rgba(255, 255, 255, 0.14);
  --reader-theme-tint: #2a2e2c;
  --reader-theme-soft: #222624;
  background: #141616;
  color: #f4f6f3;
}

html[data-theme="dark"] .reader-header {
  background: rgba(22, 24, 24, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e6ebe7;
}

html[data-theme="dark"] .reader-main {
  --reader-theme-heading: #f4f6f3;
  --reader-theme-text: #e7ebe6;
  --reader-theme-muted: #c5ccc6;
  --reader-theme-accent: #f0b8b0;
  --reader-theme-marker: #f0b8b0;
  --reader-theme-border: rgba(255, 255, 255, 0.12);
  --reader-theme-tint: #262a28;
  --reader-theme-soft: #1c1f1e;
}

html[data-theme="dark"] .markdown-article,
html[data-theme="dark"] .markdown-article[data-theme] {
  --article-text: #f4f6f3;
  --article-heading: #f7f8f6;
  --article-accent: #f0b8b0;
  --article-marker: #f0b8b0;
  --article-muted: #d7ddd8;
  --article-tint: #2a2e2c;
  --article-soft: #222624;
  --article-code: #242826;
  --article-border: rgba(255, 255, 255, 0.14);
  --article-row: #222624;
  color: #f4f6f3;
}

html[data-theme="dark"] body[data-page="article"] .reader-content,
html[data-theme="dark"] body[data-page="article"] .reader-title,
html[data-theme="dark"] .reader-content.markdown-article,
html[data-theme="dark"] .reader-content.markdown-article p,
html[data-theme="dark"] .reader-content.markdown-article li,
html[data-theme="dark"] .reader-content.markdown-article h1,
html[data-theme="dark"] .reader-content.markdown-article h2,
html[data-theme="dark"] .reader-content.markdown-article h3,
html[data-theme="dark"] .reader-content.markdown-article h4 {
  color: #f4f6f3 !important;
}

html[data-theme="dark"] body[data-page="article"] .reader-title {
  color: #f7f8f6 !important;
}

html[data-theme="dark"] .reader-back,
html[data-theme="dark"] .reader-meta,
html[data-theme="dark"] .reader-meta .reader-detail,
html[data-theme="dark"] .reader-meta .topic-chip,
html[data-theme="dark"] .reader-meta .person-link,
html[data-theme="dark"] .reader-meta .person-plain,
html[data-theme="dark"] .reader-header nav,
html[data-theme="dark"] .reader-header nav a {
  color: #e7ebe6;
}

html[data-theme="dark"] .reader-toc-handle,
html[data-theme="dark"] .reader-dock button,
html[data-theme="dark"] .reader-dock a,
html[data-theme="dark"] .reader-dock svg {
  color: #f0f2ef;
}
html[data-theme="dark"] .reader-dock,
html[data-theme="dark"] .reader-dock-rail {
  --reader-theme-heading: #f4f6f3;
  --reader-theme-text: #e7ebe6;
  --reader-theme-muted: #c5ccc6;
  --reader-theme-accent: #f0b8b0;
  --reader-theme-marker: #f0b8b0;
  --reader-theme-border: rgba(255, 255, 255, 0.12);
  --reader-theme-tint: #1c1f1e;
  --reader-theme-soft: #262a28;
  background: #1c1f1e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e6ebe7;
}

html[data-theme="dark"] .schedule-actions button,
html[data-theme="dark"] .schedule-date-nav > button,
html[data-theme="dark"] .schedule-actions .schedule-action-btn,
html[data-theme="dark"] .schedule-entry-actions button {
  color: #e6ebe7;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .reader-toc-handle,
html[data-theme="dark"] .reader-dock button,
html[data-theme="dark"] .reader-dock a,
html[data-theme="dark"] .reader-dock svg {
  color: #f0f2ef;
}

html[data-theme="dark"] .reader-toc-panel {
  background: #1c1f1e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e6ebe7;
}

html[data-theme="dark"] .reader-toc-panel p,
html[data-theme="dark"] .reader-toc-panel a {
  color: #e6ebe7;
}

html[data-theme="dark"] .reader-toc-panel p span {
  color: #b7beb8;
}
