/*
 * 问道社交 — 前台样式。
 * 颜色全走变量：主题在 :root 上设 --rs-accent / --rs-card / --rs-ink / --rs-muted / --rs-line / --rs-ke / --rs-soft 即可换肤；
 * 没设时用下面的缺省值（相生=玉色，相克=朱砂）。
 */
.rs {
	--_accent: var(--rs-accent, #1a7a5e);
	--_accent-ink: var(--rs-accent-ink, #fff);
	--_ke: var(--rs-ke, #b0402c);
	--_card: var(--rs-card, #fff);
	--_ink: var(--rs-ink, #0f1315);
	--_muted: var(--rs-muted, #5d6769);
	--_line: var(--rs-line, #dfe3df);
	--_soft: var(--rs-soft, #eef1ed);
	--_radius: var(--rs-radius, 12px);
	color: var(--_ink);
	font-size: 15px;
	line-height: 1.55;
}
.rs *, .rs *::before, .rs *::after { box-sizing: border-box; }
.rs a { color: inherit; text-decoration: none; }
.rs a:hover { text-decoration: underline; }
.rs :focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; border-radius: 4px; }
.rs .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rs [hidden] { display: none !important; }

.rs-card { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); margin: 0 0 14px; overflow: hidden; }
.rs-pad { padding: 14px 16px; margin: 0; }
.rs-muted { color: var(--_muted); }
.rs-empty { padding: 28px 20px; text-align: center; color: var(--_muted); }
.rs-empty p { margin: 0 0 10px; }
.rs-empty p:last-child { margin-bottom: 0; }
.rs-h { font-size: 15px; font-weight: 700; margin: 0; padding: 14px 16px 6px; }
/* 账号地址用 <code>：ActivityPub 的「@提及」过滤器不改写 code 里的文字 */
.rs code.rs-acct { color: var(--_muted); font: inherit; font-size: 13px; word-break: break-all; background: none; padding: 0; border: 0; }
.rs-tag { display: inline-block; font-size: 12px; line-height: 1; padding: 3px 7px; border-radius: 99px; background: var(--_soft); color: var(--_muted); white-space: nowrap; }
.rs-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-ico { flex: none; display: block; }
.rs-msg { margin: 8px 0 0; font-size: 13.500px; color: var(--_muted); min-height: 0; }
.rs-msg:empty { display: none; }
.rs-msg.is-error { color: var(--_ke); }
.rs-msg.is-ok { color: var(--_accent); }

/* 按钮 */
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--_line); background: var(--_card); color: var(--_ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s; }
.rs a.rs-btn:hover, .rs-btn:hover { text-decoration: none; background: var(--_soft); }
.rs-btn--primary { background: var(--_accent); border-color: var(--_accent); color: var(--_accent-ink); }
.rs a.rs-btn--primary { color: var(--_accent-ink); }
.rs a.rs-btn--primary:hover, .rs-btn--primary:hover { background: var(--_accent); opacity: .88; }
.rs-btn--ghost { border-color: transparent; background: transparent; color: var(--_muted); }
.rs-btn--ke { color: var(--_ke); }
.rs-btn--sm { padding: 6px 12px; font-size: 13px; }
.rs-btn[disabled], .rs-btn[aria-busy="true"] { opacity: .55; cursor: default; }
.rs-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--_accent); cursor: pointer; }
.rs a.rs-link { color: var(--_accent); }
.rs-link:hover { text-decoration: underline; }
.rs-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--_soft); color: var(--_ink); }
.rs a.rs-iconbtn:hover { text-decoration: none; filter: brightness(.96); }
.rs-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--_ke); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.rs-iconbtn .rs-badge { position: absolute; top: -3px; right: -4px; }

/* 头像 */
.rs-avatar { flex: none; display: inline-flex; position: relative; }
.rs-avatar__img, .rs-avatar__ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--_soft); display: block; }
.rs-avatar__ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--_accent); }
.rs-person .rs-avatar__img, .rs-person .rs-avatar__ph, .rs-notif .rs-avatar__img, .rs-notif .rs-avatar__ph { width: 40px; height: 40px; }

/* 账户按钮（顶栏） */
.rs-b-account { display: flex; align-items: center; gap: 10px; }
.rs-account { position: relative; }
.rs-account > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 12px 3px 3px; border-radius: 99px; background: var(--_soft); font-weight: 600; font-size: 14px; }
.rs-account > summary::-webkit-details-marker { display: none; }
.rs-account .rs-avatar__img, .rs-account .rs-avatar__ph { width: 32px; height: 32px; }
.rs-account__name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 6px; background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_radius); box-shadow: 0 10px 30px rgba(15, 19, 21, .14); }
.rs-menu__me { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--_line); margin-bottom: 6px; }
.rs-menu__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.rs a.rs-menu__item:hover { background: var(--_soft); text-decoration: none; }

/* 侧栏导航 */
.rs-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.rs-nav__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15.500px; font-weight: 600; }
.rs a.rs-nav__item:hover { background: var(--_soft); text-decoration: none; }
.rs-nav__item.is-current { color: var(--_accent); background: var(--_soft); }
.rs-nav__item .rs-badge { margin-left: auto; }
.rs-nav__write { width: 100%; padding: 11px 16px; }

/* 给站长的自查提示 */
.rs-doctor { border-color: var(--_ke); }
.rs-doctor p { margin: 0; }

/* 发帖框 */
.rs-composer { padding: 14px 16px 12px; overflow: visible; }
.rs-composer__row { display: flex; gap: 12px; align-items: flex-start; }
.rs-composer textarea { flex: 1; min-height: 46px; resize: vertical; border: 0; background: var(--_soft); border-radius: 22px; padding: 11px 16px; font: inherit; color: var(--_ink); line-height: 1.5; }
.rs-composer textarea:focus { outline: 2px solid var(--_accent); outline-offset: 0; background: var(--_card); border-radius: 12px; }
.rs-composer__bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--_line); }
.rs-composer__hint { flex: 1; font-size: 13px; min-width: 0; }

/* 帖子卡片 */
.rs-post { padding: 14px 16px 4px; }
.rs-post__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rs-post__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rs-post__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-post__meta { font-size: 13px; color: var(--_muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-post__edit { color: var(--_muted); padding: 6px; border-radius: 50%; }
.rs a.rs-post__edit:hover { background: var(--_soft); }
.rs-post__title { font-size: 18px; line-height: 1.35; margin: 2px 0 6px; font-weight: 700; }
.rs-post__body { overflow-wrap: anywhere; }
.rs-post__body > :first-child { margin-top: 0; }
.rs-post__body > :last-child { margin-bottom: 0; }
.rs-post__body p { margin: 0 0 .7em; }
.rs-post__body a { color: var(--_accent); }
.rs-post__body img, .rs-post__body video, .rs-post__body iframe { max-width: 100%; height: auto; border-radius: 8px; }
.rs-post__body blockquote { margin: .6em 0; padding-left: 12px; border-left: 3px solid var(--_line); color: var(--_muted); }
.rs-post__acts { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 0; border-top: 1px solid var(--_line); }
.rs-act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.500px; font-weight: 600; color: var(--_muted); cursor: pointer; }
.rs a.rs-act:hover, button.rs-act:hover { background: var(--_soft); text-decoration: none; }
.rs-act--stat { cursor: default; }
.rs-act--end { margin-left: auto; }
.rs-act[aria-pressed="true"] { color: var(--_accent); }
.rs-act[data-rs-react="like"][aria-pressed="true"] { color: var(--_ke); }
.rs-act[aria-pressed="true"] .rs-ico { fill: currentColor; fill-opacity: .18; }
.rs-feed__more { text-align: center; margin: 4px 0 20px; }

/* 个人资料 */
.rs-profile__cover { height: 150px; background: linear-gradient(120deg, var(--_accent), color-mix(in srgb, var(--_accent) 45%, var(--_ke))); opacity: .9; }
.rs-profile__main { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px; margin-top: -44px; flex-wrap: wrap; }
.rs-profile__avatar .rs-avatar__img, .rs-profile__avatar .rs-avatar__ph { width: 112px; height: 112px; border: 4px solid var(--_card); font-size: 40px; }
.rs-profile__id { flex: 1; min-width: 200px; padding-bottom: 6px; }
.rs-profile h1.rs-profile__name { font-size: 24px; line-height: 1.25; margin: 0; font-weight: 800; }
.rs-profile__acct { margin: 2px 0 0; }
.rs-profile__act { margin-bottom: 10px; }
.rs-profile__bio { padding: 12px 20px 0; }
.rs-profile__bio p { margin: 0 0 .5em; }
.rs-profile__hint { padding: 0 20px 16px; margin: 0; font-size: 13px; }
.rs-stats { list-style: none; display: flex; gap: 22px; margin: 0; padding: 14px 20px 16px; }
.rs-stats li, .rs-stats a { display: flex; align-items: baseline; gap: 5px; }
.rs-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.rs-stats span { color: var(--_muted); font-size: 13px; }
.rs-profile--mini { text-align: center; padding-bottom: 4px; }
.rs-profile--mini .rs-profile__cover { height: 62px; }
.rs-profile--mini .rs-profile__avatar { margin-top: -32px; }
.rs-profile--mini .rs-profile__avatar .rs-avatar__img, .rs-profile--mini .rs-profile__avatar .rs-avatar__ph { width: 64px; height: 64px; border-width: 3px; font-size: 24px; }
.rs-profile--mini .rs-profile__name { display: block; font-weight: 700; font-size: 16px; margin-top: 6px; padding: 0 12px; }
.rs-profile--mini .rs-acct { display: block; padding: 0 12px; }
.rs-profile--mini .rs-stats { justify-content: center; gap: 16px; padding: 12px 12px 14px; }
.rs-profile--mini .rs-stats li, .rs-profile--mini .rs-stats a { flex-direction: column; align-items: center; gap: 0; }

/* 关系 */
.rs-followform { padding: 16px; border-bottom: 1px solid var(--_line); }
.rs-discover .rs-followform { border-bottom: 0; }
.rs-followform label { display: block; font-weight: 700; margin-bottom: 8px; }
.rs-followform__row { display: flex; gap: 8px; }
.rs-followform input { flex: 1; min-width: 0; padding: 9px 14px; border: 1px solid var(--_line); border-radius: 99px; background: var(--_card); color: var(--_ink); font: inherit; }
.rs-followform__help { margin: 8px 0 0; font-size: 13px; }
.rs-followform [data-rs-result]:empty { display: none; }
.rs-followform [data-rs-result] { margin-top: 10px; border: 1px solid var(--_line); border-radius: 10px; }
.rs-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--_line); overflow-x: auto; }
.rs-tab { padding: 12px 12px 10px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--_muted); cursor: pointer; white-space: nowrap; }
.rs-tab[aria-selected="true"] { color: var(--_accent); border-bottom-color: var(--_accent); }
.rs-person { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.rs-person + .rs-person { border-top: 1px solid var(--_line); }
.rs-person__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rs-person__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-person__acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rs-person.is-gone { opacity: .45; }
.rs-rels { list-style: none; margin: 0; padding: 0; }
.rs-rel { display: flex; align-items: center; gap: 10px; padding: 11px 16px; flex-wrap: wrap; }
.rs-rel + .rs-rel { border-top: 1px solid var(--_line); }
.rs-rel__who { color: var(--_muted); font-size: 13.500px; word-break: break-all; }
.rs-pole { font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 99px; font-weight: 700; color: #fff; background: var(--_accent); }
.rs-pole--ke { background: var(--_ke); }

/* 通知 */
.rs-notif { display: flex; gap: 12px; padding: 12px 16px; }
.rs a.rs-notif:hover { background: var(--_soft); text-decoration: none; }
.rs-notif + .rs-notif { border-top: 1px solid var(--_line); }
.rs-notif.is-unread { background: color-mix(in srgb, var(--_accent) 7%, var(--_card)); }
.rs-notif__kind { position: absolute; right: -5px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--_accent); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--_card); }
.rs-notif__kind .rs-ico { width: 11px; height: 11px; stroke-width: 2.4; }
.rs-notif--like .rs-notif__kind { background: var(--_ke); }
.rs-notif__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-notif__body em { font-style: normal; color: var(--_muted); }
.rs-notif__excerpt { color: var(--_muted); font-size: 14px; }
.rs-notif time { font-size: 12.500px; }

/* 应用 */
.rs-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rs-app { display: flex; gap: 12px; padding: 16px; margin: 0; }
.rs-app__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--_accent); color: var(--_accent-ink); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.rs-app__body { min-width: 0; }
.rs-app h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.3; }
.rs-app__ver { font-size: 12px; font-weight: 400; }
.rs-app p { margin: 0 0 10px; font-size: 13.500px; }
.rs-app__links { display: flex; gap: 8px; margin: 0; }

/* 联邦状态 */
.rs-status__acct { padding: 0 16px; margin: 4px 0 2px; }
.rs-status > .rs-muted { padding: 0 16px; margin: 0 0 8px; font-size: 13px; }
.rs-status__list { list-style: none; margin: 0; padding: 4px 16px 14px; }
.rs-status__list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
.rs-status__list li .rs-muted { margin-left: auto; font-size: 12.500px; }
.rs-status__list i { width: 8px; height: 8px; border-radius: 50%; background: var(--_line); }
.rs-status__list .is-on i { background: var(--_accent); }

/* ── 社交主页：插件自带的整页外壳（0.3.0）。宽窄按外壳自身的宽度变，放进主题的内容区里也成立 ── */
body.rs-home-body { margin: 0; background: var(--rs-bg, #f3f4f1); color: var(--rs-ink, #0f1315); font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Microsoft JhengHei", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
.rs-home { --_bar: var(--wp-admin--admin-bar--height, 0px); container-type: inline-size; container-name: rshome; font-size: 15px; }
.rs-home__top { position: sticky; top: var(--_bar); z-index: 50; display: grid; grid-template-columns: 260px minmax(0, 680px) 300px; justify-content: center; align-items: center; gap: 24px; height: 56px; padding: 0 16px; background: var(--_card); border-bottom: 1px solid var(--_line); }
.rs-home__brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 18px; font-weight: 800; }
.rs a.rs-home__brand:hover { text-decoration: none; }
.rs-home__brand img { border-radius: 50%; flex: none; }
.rs-home__brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-home__search { margin: 0; }
.rs-home__search input { width: 100%; height: 38px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--_soft); color: var(--_ink); font: inherit; font-size: 14px; appearance: none; }
.rs-home__search input:focus { outline: 2px solid var(--_accent); background: var(--_card); }
.rs-home__me { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.rs-home__back { font-size: 13px; color: var(--_muted); white-space: nowrap; }
.rs-home__shell { display: grid; grid-template-columns: 260px minmax(0, 680px) 300px; justify-content: center; align-items: start; gap: 24px; padding: 20px 16px 40px; }
.rs-home__left, .rs-home__right { position: sticky; top: calc(56px + var(--_bar) + 20px); max-height: calc(100vh - 56px - var(--_bar) - 40px); overflow-y: auto; scrollbar-width: thin; }
.rs-home__main { min-width: 0; }
.rs-home__title { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 4px 0 14px; }
.rs-home__note { padding: 0 6px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--_muted); }
@container rshome (max-width: 1140px) {
	.rs-home__shell { grid-template-columns: 230px minmax(0, 680px); }
	.rs-home__top { grid-template-columns: minmax(0, 230px) minmax(0, 1fr) auto; justify-content: stretch; }
	.rs-home__right { display: none; }
}
@container rshome (max-width: 782px) {
	.rs-home__top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 0 12px; }
	.rs-home__brand strong { max-width: 7.5em; }
	.rs-home__back { display: none; }
	/* 导航移到底部：外壳排成一列，导航排最后并粘在视口底边 */
	.rs-home__shell { display: flex; flex-direction: column; gap: 0; padding: 12px 0 0; min-height: calc(100vh - 56px - var(--_bar)); }
	.rs-home__main { flex: 1; width: 100%; padding-bottom: 16px; }
	.rs-home__title { padding: 0 14px; }
	.rs-home__left { order: 3; position: sticky; top: auto; bottom: 0; z-index: 40; width: 100%; max-height: none; overflow: visible; background: var(--_card); border-top: 1px solid var(--_line); padding-bottom: env(safe-area-inset-bottom, 0); }
	.rs-home__left .rs-b-profile, .rs-home__left .rs-nav__write { display: none; }
	.rs-home__left .rs-nav ul { display: flex; justify-content: space-around; margin: 0; }
	.rs-home__left .rs-nav li { flex: 1; }
	.rs-home__left .rs-nav__item { position: relative; justify-content: center; padding: 14px 4px; border-radius: 0; background: none; }
	.rs-home__left .rs-nav__item > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.rs-home__left .rs-nav__item .rs-ico { width: 24px; height: 24px; }
	.rs-home__left .rs-nav__item .rs-badge { position: absolute; top: 7px; left: calc(50% + 4px); margin: 0; }
	.rs-home .rs-card { border-radius: 0; border-left: 0; border-right: 0; }
	.rs-home .rs-account__name { display: none; }
	.rs-home .rs-account > summary { padding: 3px; }
}
@media (max-width: 600px) {
	.rs-home { --_bar: 0px; }   /* 窄屏上 WordPress 的工具栏不固定在顶部 */
}

/* ── 0.4.0：附件、内容警告、话题、回复 ── */
.rs-post__body img.sxf-emoji { display: inline; width: auto; height: 1.25em; vertical-align: -.25em; border-radius: 0; }
.rs-media { display: grid; gap: 4px; margin-top: 10px; border-radius: 10px; overflow: hidden; }
.rs-media--2, .rs-media--3, .rs-media--4 { grid-template-columns: 1fr 1fr; }
.rs-media__item { display: block; width: 100%; min-width: 0; background: var(--_soft); }
.rs-media a.rs-media__item img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.rs-media--2 a.rs-media__item img, .rs-media--3 a.rs-media__item img, .rs-media--4 a.rs-media__item img { aspect-ratio: 4 / 3; max-height: none; }
.rs-media--3 > :first-child { grid-column: 1 / -1; }
.rs-media video.rs-media__item { max-height: 520px; }
.rs-media__audio { grid-column: 1 / -1; height: 44px; }
.rs-media__file { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--_soft); font-size: 14px; overflow-wrap: anywhere; }
.rs-cw { margin: 4px 0 0; }
.rs-cw > summary { cursor: pointer; padding: 8px 12px; border-radius: 8px; background: var(--_soft); font-size: 14px; list-style: none; }
.rs-cw > summary::-webkit-details-marker { display: none; }
.rs-cw[open] > summary { margin-bottom: 10px; }
.rs-cw--media { margin-top: 10px; }
.rs-post__tags { margin: 8px 0 0; font-size: 13.500px; color: var(--_muted); }
.rs .rs-post__tags a { color: var(--_accent); }
.rs a.rs-tag--group { color: var(--_accent); }
.rs-tag--ke { color: var(--_ke); }
.rs-thread:empty { display: none; }
.rs-thread { margin: 0 -16px; padding: 10px 16px 2px; border-top: 1px solid var(--_line); background: color-mix(in srgb, var(--_soft) 55%, var(--_card)); }
.rs-reply { display: flex; gap: 10px; margin-bottom: 10px; }
.rs-reply .rs-avatar__img, .rs-reply .rs-avatar__ph { width: 30px; height: 30px; font-size: 13px; }
.rs-reply__main { min-width: 0; flex: 1; }
.rs-reply__who { font-size: 13.500px; font-weight: 700; }
.rs-reply__who time { font-weight: 400; font-size: 12.500px; }
.rs-reply__body { font-size: 14.500px; overflow-wrap: anywhere; }
.rs-reply__body p { margin: 0 0 .4em; }
.rs-reply__body > :last-child { margin-bottom: 0; }
.rs-reply__body a { color: var(--_accent); }
.rs-replyform { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 -16px; padding: 10px 16px 12px; border-top: 1px solid var(--_line); }
.rs-replyform textarea, .rs-dm__form textarea, .rs-groupform textarea, .rs-group__manage textarea { flex: 1; min-width: 0; width: 100%; resize: vertical; border: 1px solid var(--_line); background: var(--_card); border-radius: 12px; padding: 9px 12px; font: inherit; color: var(--_ink); line-height: 1.5; }
.rs-replyform .rs-msg { flex-basis: 100%; margin: 0; }
.rs-post:has(> .rs-thread:not(:empty)), .rs-post:has(> .rs-replyform:not([hidden])) { padding-bottom: 0; }
.rs-act .rs-num:empty { display: none; }

/* ── 0.4.0：群组 ── */
.rs-back { margin: 0 0 10px; padding: 0 4px; }
.rs-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 400 !important; font-size: 14px; }
.rs-check input { flex: none; width: 16px; height: 16px; padding: 0; accent-color: var(--_accent); }
.rs-groupform textarea, .rs-group__manage textarea { margin-top: 8px; display: block; }
.rs-groupform { border-bottom: 0; }
.rs-followform--inline { border-top: 1px solid var(--_line); border-bottom: 0; padding: 12px 16px; }
.rs-followform--inline label { font-size: 14px; }
.rs-grow__ico { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
.rs a.rs-grow__ico { color: var(--_accent-ink); }
.rs a.rs-grow__ico:hover { text-decoration: none; }
.rs-grow__meta { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-group__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 12px; flex-wrap: wrap; }
.rs-group__ico { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; }
.rs-group__id { flex: 1; min-width: 180px; }
.rs-group h1.rs-group__name { font-size: 22px; line-height: 1.3; margin: 0; font-weight: 800; }
.rs-group__id p { margin: 2px 0 0; font-size: 13.500px; }
.rs-group__desc { padding: 0 20px 14px; }
.rs-group__desc p { margin: 0 0 .5em; }
.rs-group__manage { border-top: 1px solid var(--_line); }
.rs-group__manage > summary { cursor: pointer; padding: 11px 20px; font-size: 14px; font-weight: 600; color: var(--_muted); }
.rs-group__manage .rs-followform { border: 0; padding: 4px 20px 16px; }
.rs-group__manage label { margin-top: 10px; }
.rs-group__save { margin: 12px 0 0; display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.rs-group__help { font-size: 13px; padding-top: 0; padding-bottom: 8px; }
.rs-rel__end { margin-left: auto; }
.rs-msg.rs-pad:empty { display: none; }
.rs-msg.rs-pad { padding-top: 0; }

/* ── 0.4.0：私信 ── */
.rs-person__dm { padding: 6px 8px; color: var(--_muted); }
.rs-dm__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--_line); }
.rs-dm__head .rs-person__who { flex: 1; min-width: 0; }
.rs-dm__list { display: flex; flex-direction: column; gap: 10px; padding: 16px; max-height: 60vh; overflow-y: auto; }
.rs-dm__empty { margin: 0; text-align: center; }
.rs-dm__msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.rs-dm__msg.is-out { align-self: flex-end; align-items: flex-end; }
.rs-dm__bubble { padding: 8px 13px; border-radius: 16px; background: var(--_soft); overflow-wrap: anywhere; }
.rs-dm__msg.is-out .rs-dm__bubble { background: var(--_accent); color: var(--_accent-ink); }
.rs .rs-dm__msg.is-out .rs-dm__bubble a { color: inherit; text-decoration: underline; }
.rs-dm__bubble p { margin: 0 0 .4em; }
.rs-dm__bubble > :last-child { margin-bottom: 0; }
.rs-dm__bubble a { color: var(--_accent); }
.rs-dm__msg time { font-size: 11.500px; margin: 2px 6px 0; }
.rs-dm__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--_line); }
.rs-dm__form .rs-msg { flex-basis: 100%; margin: 0; }
.rs-dm__note { padding: 0 6px; margin: 0 0 14px; font-size: 12.500px; line-height: 1.6; }
.rs-notif__n { align-self: center; margin-left: auto; }
.rs-notif .rs-notif__body { flex: 1; }

/* ── 0.5.0：闭环、差一步成环 ── */
.rs-path { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13.500px; line-height: 1.5; }
.rs-path__who { font-weight: 600; overflow-wrap: anywhere; }
.rs-path__who.is-me { color: var(--_accent); }
.rs-path__step { display: inline-flex; align-items: baseline; gap: 3px; color: var(--_muted); white-space: nowrap; }
.rs-path__kind { font-size: 12px; padding: 1px 6px; border-radius: 99px; background: var(--_soft); color: var(--_muted); }
.rs-path__kind--ke { color: var(--_ke); }
.rs-near__intro, .rs-loops__intro { font-size: 13px; line-height: 1.6; padding-top: 0; padding-bottom: 8px; }
.rs-loops__intro { padding-top: 12px; }
.rs-near__via { margin-top: 4px; }
.rs-near__len { font-size: 12.500px; margin-top: 2px; }
.rs-near__row { align-items: flex-start; }
.rs-near__row > .rs-btn { margin-top: 4px; }
.rs-loop { flex-direction: column; align-items: flex-start; gap: 6px; }
.rs-loop__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-loop__kinds { font-size: 12.500px; }
.rs-loop__ke { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; }

/* ── 0.6.0：本站与网络。网站网络的主页是一个站：先是它的专业与功能，再是它与别站的往来。 ── */
.rs-site { padding: 18px 20px 14px; }
.rs-site__head { display: flex; gap: 14px; align-items: center; }
.rs-site__icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--_accent); color: var(--_accent-ink); display: grid; place-items: center; font-size: 26px; font-weight: 800; overflow: hidden; }
.rs-site__icon img { width: 56px; height: 56px; object-fit: cover; }
.rs-site__id { min-width: 0; }
.rs-site__kind { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--_muted); }
.rs .rs-site__name { font-size: 22px; line-height: 1.3; margin: 2px 0 0; font-weight: 800; }
.rs .rs-site__name a { color: inherit; }
.rs-site__desc { margin: 4px 0 0; color: var(--_muted); }
.rs-site__facts { margin: 14px 0 0; display: grid; gap: 8px; }
.rs-site__facts > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.rs-site__facts dt { font-size: 12.5px; color: var(--_muted); }
.rs-site__facts dd { margin: 0; min-width: 0; font-size: 14px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-chip { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px; line-height: 1.3; padding: 4px 9px; border-radius: 99px; background: var(--_soft); color: var(--_ink); }
.rs a.rs-chip { color: var(--_ink); }
.rs a.rs-chip:hover { text-decoration: none; background: var(--_line); }
.rs-chip b { font-weight: 600; color: var(--_muted); font-size: 12px; }
.rs-site__net { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--_line); font-size: 13.5px; }
.rs-site__net .rs-ico { color: var(--_accent); }
.rs-gua { display: inline-grid; gap: 2px; width: 16px; flex: none; color: var(--_accent); vertical-align: middle; }
.rs-gua i { display: block; height: 3px; background: currentColor; }
.rs-gua i.n { background: linear-gradient(90deg, currentColor 0 40%, transparent 40% 60%, currentColor 60% 100%); }
.rs-net__intro { font-size: 13.5px; line-height: 1.7; margin: 0 0 14px; }
.rs-partner { flex-direction: column; align-items: flex-start; gap: 4px; }
.rs-partner__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-partner__last { font-size: 12.5px; }
.rs-partner__flows { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.rs-partner__flows b { font-weight: 600; color: var(--_muted); margin-right: 4px; }
.rs-partner__via { font-size: 12.5px; }
.rs-tag--sheng { color: var(--_accent); }
.rs-kk { color: var(--_ke); }
.rs-net__inner { border-left: 3px solid var(--_ke); }
.rs-net__near + .rs-net__near { border-top: 1px solid var(--_line); }
.rs-net__near-head { padding-bottom: 0; }
.rs-net__foot { font-size: 12.5px; line-height: 1.6; padding: 0 6px; }
.rs-netmini .rs-pad { padding-top: 4px; }
@media (max-width: 600px) {
	.rs-site__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ── 0.4.0：深色。整页由插件输出的社交主页上才启用（模板在 <html> 上标 data-rs-theme）；
      主题想让区块跟着变深色，在自己的 <html> 上标同一个属性即可。 ── */
html[data-rs-theme="dark"] { --rs-bg: #111415; --rs-card: #1a1e20; --rs-ink: #e9edeb; --rs-muted: #9aa6a3; --rs-line: #2b3134; --rs-soft: #242a2c; --rs-accent: #41b892; --rs-accent-ink: #06120e; --rs-ke: #e2735c; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
	html[data-rs-theme="auto"] { --rs-bg: #111415; --rs-card: #1a1e20; --rs-ink: #e9edeb; --rs-muted: #9aa6a3; --rs-line: #2b3134; --rs-soft: #242a2c; --rs-accent: #41b892; --rs-accent-ink: #06120e; --rs-ke: #e2735c; color-scheme: dark; }
}
html[data-rs-theme="dark"] .rs-menu, html[data-rs-theme="auto"] .rs-menu { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.rs-home__theme { border: 0; cursor: pointer; flex: none; }
.rs-home__theme:hover { filter: brightness(.96); }

@media (max-width: 600px) {
	.rs-card { border-radius: 0; border-left: 0; border-right: 0; }
	.rs-composer__hint { display: none; }
	.rs-composer__bar { justify-content: flex-end; }
	.rs-account__name { display: none; }
	.rs-account > summary { padding: 3px; }
	.rs-profile__cover { height: 110px; }
	.rs-person { flex-wrap: wrap; }
	.rs-person__acts { width: 100%; justify-content: flex-start; padding-left: 52px; }
	.rs-dm__msg { max-width: 92%; }
	.rs-thread, .rs-replyform { margin-left: -16px; margin-right: -16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rs-btn { transition: none; }
}
