/* one_compat_space.css — 空间子页（blog / album / doing / friend / wall / share / thread / spacecp）
 * 由 lead 统一在 common/header.htm 与 home/space_header.htm 中引入（位于 one_pages.css 之后）。
 * 规则必须带页面作用域（body#space / .one-ui#space / body.pg_*），禁止裸标签全局规则。
 * 追加方式：写 tools/fix_compat_space.py（幂等，t.replace('\r\n','\n')，UTF-8，LF）。
 */

/* one-compat-space */
/* ------------------------------------------------------------------
   1. 画布：#ct.ct2_a 去掉官方/皮肤遗留的白色渐变，露出 --one-canvas
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a,
.one-ui.pg_follow #ct.ct2_a,
.one-ui.pg_spacecp #ct.ct2_a
{
  border: 0;
  background: none;
}

/* ------------------------------------------------------------------
   2. 主卡：.mn 本身作为白卡（与 blogview / wall / 空间首页的单卡结构一致）
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn,
.one-ui.pg_follow #ct.ct2_a > .mn,
.one-ui.pg_spacecp #ct.ct2_a > .mn
{
  box-sizing: border-box;
  align-self: start;
  margin: 0;
  padding: var(--one-panel-padding);
  border: 1px solid var(--one-border);
  border-radius: var(--one-panel-radius);
  background: var(--one-surface);
  box-shadow: var(--one-shadow);
  overflow: hidden;
}

/* 官方 .pbm / .pbw 带 !important */
.one-ui.pg_space #ct.ct2_a > .mn.pbm,
.one-ui.pg_space #ct.ct2_a > .mn.pbw,
.one-ui.pg_follow #ct.ct2_a > .mn.pbm
{
  padding: var(--one-panel-padding) !important;
}

/* ------------------------------------------------------------------
   3. 内层 .bm.bw0 中性化（内容改由 .mn 卡片承载，避免双层卡片）
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn > .bm.bw0,
.one-ui.pg_follow #ct.ct2_a > .mn > .bm.bw0,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm.bw0
{
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* 撤销 one_extra.css:162 的 !important 边框（需 (1,8,0)） */
.one-ui.pg_space #ct.ct2_a > .mn:not(.one-account-panel) > .bm.bw0:not(.pgs),
.one-ui.pg_follow #ct.ct2_a > .mn:not(.one-account-panel) > .bm.bw0:not(.pgs)
{
  border: 0 !important;
}

/* ------------------------------------------------------------------
   4. 左导航 .appl（无 .tbn 的官方裸导航；.one-navigation-rail 已由皮肤处理，排除）
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail),
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail)
{
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-panel-radius);
  background: var(--one-surface);
  box-shadow: var(--one-shadow);
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  float: none;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--one-radius);
  line-height: 20px;
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li:hover,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li:hover
{
  background: var(--one-selected);
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a
{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--one-muted);
  font-size: 14px;
  line-height: 20px;
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a:hover,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a:hover,
.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li:hover > a,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li:hover > a
{
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a > img,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a > img
{
  flex: none;
  margin: 0;
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > span,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > span
{
  flex: none;
  float: none;
  margin: 0;
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > span > a,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > span > a
{
  color: var(--one-accent);
  font-size: 12px;
  line-height: 20px;
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > hr.da,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > hr.da
{
  display: none;
}

.one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul:empty,
.one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul:empty
{
  display: none;
}

/* ------------------------------------------------------------------
   5. 页内标题 h1.mt
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn > .bm > h1.mt,
.one-ui.pg_space #ct.ct2_a > .mn > h1.mt,
.one-ui.pg_follow #ct.ct2_a > .mn > h1.mt,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > h1.mt,
.one-ui.pg_space #ct.ct2 > .mn > .bm > .bm_h > h1.mt
{
  margin: 0 0 16px;
  padding: 0;
  color: var(--one-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .bm > h1.mt > i,
.one-ui.pg_space #ct.ct2_a > .mn > h1.mt > i,
.one-ui.pg_follow #ct.ct2_a > .mn > h1.mt > i,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > h1.mt > i,
.one-ui.pg_space #ct.ct2 > .mn > .bm > .bm_h > h1.mt > i
{
  margin-right: 6px;
  color: var(--one-accent);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm > .bm_h > h2
{
  margin: 0;
  padding: 0;
  color: var(--one-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

/* ------------------------------------------------------------------
   6. Tabs（官方 ul.tb）→ 药丸式
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb,
.one-ui.pg_space #ct.ct2_a > .mn > .tb,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  line-height: 1;
}

/* 官方 .mbw 带 !important */
.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb.mbw,
.one-ui.pg_space #ct.ct2_a > .mn > .tb.mbw,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb.mbw,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb.mbw
{
  margin: 0 0 16px !important;
}

.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb > li,
.one-ui.pg_space #ct.ct2_a > .mn > .tb > li,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb > li,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb > li
{
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--one-radius);
}

.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb > li > a,
.one-ui.pg_space #ct.ct2_a > .mn > .tb > li > a,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb > li > a,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb > li > a
{
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-radius);
  background: var(--one-surface);
  color: var(--one-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 30px;
  white-space: nowrap;
}

.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb > li > a:hover,
.one-ui.pg_space #ct.ct2_a > .mn > .tb > li > a:hover,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb > li > a:hover,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb > li > a:hover
{
  border-color: var(--one-accent);
  background: var(--one-selected);
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb > li.a > a,
.one-ui.pg_space #ct.ct2_a > .mn > .tb > li.a > a,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb > li.a > a,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb > li.a > a
{
  border-color: color-mix(in srgb, var(--one-accent) 40%, #FFF);
  background: var(--one-selected);
  color: var(--one-accent);
  font-weight: 600;
}

.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb > li.o > a,
.one-ui.pg_space #ct.ct2_a > .mn > .tb > li.o > a,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb > li.o > a,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb > li.o > a
{
  height: 32px;
  padding: 0 14px;
  border-color: var(--one-accent);
  background: var(--one-accent);
  color: #FFF;
  font-weight: 600;
  line-height: 30px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb > li.o > a:hover,
.one-ui.pg_space #ct.ct2_a > .mn > .tb > li.o > a:hover,
.one-ui.pg_follow #ct.ct2_a > .mn > .tb > li.o > a:hover,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb > li.o > a:hover
{
  border-color: var(--one-accent);
  background: color-mix(in srgb, var(--one-accent) 86%, #0F172A);
  color: #FFF;
}

/* ------------------------------------------------------------------
   7. 筛选条 .tbmu
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn > .tbmu,
.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tbmu,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tbmu
{
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--one-border);
  color: var(--one-muted);
  font-size: 13px;
  line-height: 26px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tbmu > a,
.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tbmu > a,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tbmu > a
{
  display: inline-block;
  padding: 0 2px;
  color: var(--one-muted);
}

.one-ui.pg_space #ct.ct2_a > .mn > .tbmu > a.a,
.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tbmu > a.a,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tbmu > a.a
{
  color: var(--one-heading);
  font-weight: 600;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tbmu > a:hover,
.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tbmu > a:hover,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tbmu > a:hover
{
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tbmu .pipe,
.one-ui.pg_space #ct.ct2_a > .mn > .bm > .tbmu .pipe,
.one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tbmu .pipe
{
  margin: 0 10px;
  color: var(--one-border);
}

/* ------------------------------------------------------------------
   8. 日志列表 .xld.xlda（blog）
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl
{
  margin: 0;
  padding: 16px 0 16px 65px;
  border-bottom: 1px solid var(--one-border);
  border-radius: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl:first-child
{
  padding-top: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl:last-child
{
  padding-bottom: 0;
  border-bottom: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dt
{
  margin: 0;
  padding: 0 0 6px;
  color: var(--one-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dt > a
{
  color: var(--one-heading);
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dt > a:hover
{
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd
{
  margin: 0 0 6px;
  color: var(--one-text);
  font-size: 13px;
  line-height: 1.7;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd.xg1,
.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd > .xg1
{
  color: var(--one-muted);
  font-size: 12px;
  line-height: 20px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd > a
{
  color: var(--one-link);
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd.m
{
  float: left;
  margin: 0 0 0 -65px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd.m .avt
{
  display: block;
  width: 48px;
  height: 48px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd.m .avt img,
.one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd.m img
{
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--one-radius);
  object-fit: cover;
}

/* ------------------------------------------------------------------
   9. 记录 doing
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .xld.xlda > .doing_list
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2_a > .xld.xlda > .doing_list > .doing_list_item
{
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--one-border);
}

.one-ui.pg_space #ct.ct2_a > .xld.xlda > .doing_list > .doing_list_item:first-child
{
  padding-top: 0;
}

.one-ui.pg_space #ct.ct2_a > .xld.xlda > .doing_list > .doing_list_item:last-child
{
  padding-bottom: 0;
  border-bottom: 0;
}

.one-ui.pg_space #ct.ct2_a > .xld.xlda > .doing_list > .doing_list_item .item_right
{
  margin-left: 12px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--one-text);
  font-size: 13px;
  line-height: 1.7;
}

.one-ui.pg_space #ct.ct2_a > .xld.xlda > .doing_list > .doing_list_item .doing_avatar img
{
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid var(--one-border);
  border-radius: 50%;
  object-fit: cover;
}

/* ------------------------------------------------------------------
   10. 相册列表 .ptw > .ml.mla
   ------------------------------------------------------------------ */
/* 官方 .ptw{padding-top:20px !important} */
.one-ui.pg_space #ct.ct2_a > .mn > .ptw
{
  padding: 0 !important;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla
{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li
{
  box-sizing: border-box;
  float: none;
  width: 150px;
  height: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-radius);
  background: var(--one-surface);
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li:hover
{
  border-color: var(--one-accent);
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li .c
{
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 0;
  margin: 0 0 10px;
  padding: 0 0 100%;
  border-radius: var(--one-radius);
  background: var(--one-canvas);
  box-shadow: none;
  overflow: hidden;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li .c > a
{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: auto;
  height: auto;
  background: none;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li .c img
{
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li .ptn
{
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li .ptn > a
{
  color: var(--one-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li .ptn > a:hover
{
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li .xg1
{
  margin: 2px 0 0;
  color: var(--one-muted);
  font-size: 12px;
  line-height: 20px;
}

/* ------------------------------------------------------------------
   11. 分享 share（ul#share_ul.el.sl + p.emp）
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn > .el
{
  width: auto;
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .el > li
{
  margin: 0;
  padding: 16px 0;
  min-height: 0;
  border-bottom: 1px solid var(--one-border);
}

.one-ui.pg_space #ct.ct2_a > .mn > .el > li:first-child
{
  padding-top: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .el > li:last-child
{
  padding-bottom: 0;
  border-bottom: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .el > li .ec
{
  color: var(--one-text);
  font-size: 13px;
  line-height: 1.7;
}

.one-ui.pg_space #ct.ct2_a > .mn > .emp,
.one-ui.pg_follow #ct.ct2_a > .mn > .emp
{
  margin: 0;
  padding: 40px 0;
  color: var(--one-muted);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

/* ------------------------------------------------------------------
   12. 主题 thread（.tl 表格，已在 .mn 卡片内，去掉外层卡片）
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2_a > .mn > .tl
{
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tl table
{
  width: 100%;
  table-layout: fixed;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tl .th th,
.one-ui.pg_space #ct.ct2_a > .mn > .tl .th td
{
  padding: 0 0 10px;
  border-bottom: 1px solid var(--one-border);
  background: none;
  color: var(--one-muted);
  font-size: 12px;
  font-weight: 500;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tl th,
.one-ui.pg_space #ct.ct2_a > .mn > .tl td
{
  padding: 14px 0;
  border-bottom: 1px solid var(--one-border);
  color: var(--one-text);
  font-size: 13px;
  line-height: 22px;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tl tr:last-child th,
.one-ui.pg_space #ct.ct2_a > .mn > .tl tr:last-child td
{
  border-bottom: 0;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tl td.common a,
.one-ui.pg_space #ct.ct2_a > .mn > .tl th.common a
{
  color: var(--one-heading);
  font-size: 14px;
  font-weight: 600;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tl td.common a:hover,
.one-ui.pg_space #ct.ct2_a > .mn > .tl th.common a:hover
{
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2_a > .mn > .tl p.emp
{
  margin: 0;
  padding: 32px 0;
  color: var(--one-muted);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

/* ------------------------------------------------------------------
   13. 关注 / 广播 follow
   ------------------------------------------------------------------ */
/* 官方 .mbw{margin-bottom:20px !important} */
.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header
{
  margin: 0 0 20px !important;
  padding: 0;
  border: 0;
  background: none;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header .my_flw_stats
{
  box-sizing: border-box;
  width: 132px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-radius);
  background: var(--one-canvas);
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header .my_flw_stats > ul
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header .my_flw_stats > ul > li
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--one-border);
  color: var(--one-muted);
  font-size: 13px;
  line-height: 20px;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header .my_flw_stats > ul > li:last-child
{
  border-bottom: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header .my_flw_stats > ul > li > a
{
  color: var(--one-accent);
  font-size: 14px;
  font-weight: 600;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #fastpostform
{
  margin: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #fastposteditor
{
  margin: 0 152px 0 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #fastposteditor > .tedt
{
  width: 100%;
  margin: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar
{
  padding: 6px 10px;
  border-top: 1px solid var(--one-border);
  border-radius: 0 0 var(--one-radius) var(--one-radius);
  background: var(--one-canvas);
  line-height: 26px;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar .fpd
{
  display: flex;
  align-items: center;
  gap: 6px;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar .fpd > a
{
  flex: none;
  float: none;
  margin: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar .fpd > a.fat
{
  background-image: url(../editor/at.svg?v=8f6cb5bef2);
  background-position: center;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar #uploader
{
  flex: none;
  margin: 0;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar #uploader .btns
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar #uploader #thelist
{
  display: none;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar #uploader .btns #picker
{
  position: relative;
  display: inline-block;
  width: auto !important;
  min-width: 64px;
  height: 26px;
  margin: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar #uploader .btns #picker .webuploader-pick
{
  box-sizing: border-box;
  width: 100% !important;
  height: 26px !important;
  min-width: 64px;
  padding: 0 12px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-radius);
  background: var(--one-surface);
  color: var(--one-text);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_bar #uploader .btns #picker > div[id^='rt_rt_']
{
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header .upfl
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_post_extra .y
{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #flw_post_extra .y > p
{
  margin: 0;
  padding: 0 !important;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list > h3
{
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--one-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li
{
  box-sizing: border-box;
  width: 76px;
  margin: 0 0 16px;
  padding: 0;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li .avt
{
  display: block;
  width: 48px;
  margin: 0 auto 6px;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li .avt img,
.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li img
{
  display: block;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--one-radius);
  object-fit: cover;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li > p
{
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li > p > a
{
  color: var(--one-text);
  font-size: 12px;
  line-height: 18px;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li > span
{
  display: block;
  text-align: center;
}

.one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li > span > a
{
  color: var(--one-link);
  font-size: 12px;
  line-height: 18px;
}

/* ------------------------------------------------------------------
   14. 个人设置 spacecp（表格与表单）
   ------------------------------------------------------------------ */
.one-ui.pg_spacecp #ct.ct2_a > .mn table.tfm
{
  width: 100%;
}

.one-ui.pg_spacecp #ct.ct2_a > .mn .tfm th
{
  box-sizing: border-box;
  width: 148px;
  padding: 12px 16px 12px 0;
  color: var(--one-heading);
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  text-align: right;
  vertical-align: top;
}

.one-ui.pg_spacecp #ct.ct2_a > .mn .tfm td
{
  padding: 12px 0;
  color: var(--one-text);
  font-size: 13px;
  line-height: 22px;
}

.one-ui.pg_spacecp #ct.ct2_a > .mn .tfm td.p
{
  color: var(--one-muted);
  font-size: 12px;
}

.one-ui.pg_spacecp #ct.ct2_a > .mn .tfm tr:last-child th,
.one-ui.pg_spacecp #ct.ct2_a > .mn .tfm tr:last-child td
{
  border-bottom: 0;
}

.one-ui.pg_spacecp #ct.ct2_a > .mn .tfm .one-select-button
{
  max-width: 100%;
}

/* ------------------------------------------------------------------
   15. body#space 的 #ct.ct2 页面（blogview / albumpic / wall）细节补充
   ------------------------------------------------------------------ */
.one-ui.pg_space #ct.ct2 > .sd #pcd .hm img
{
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  object-fit: cover;
}

.one-ui.pg_space #ct.ct2 > .sd #pcd .hm h2
{
  margin: 12px 0 0;
  color: var(--one-heading);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.one-ui.pg_space #ct.ct2 > .sd #pcd .ul_list
{
  margin: 12px 0 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2 > .sd #pcd .ul_list > li
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2 > .sd #pcd .ul_list > li > a
{
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 34px;
  margin: 2px 0;
  padding: 0 10px;
  border-radius: var(--one-radius);
  color: var(--one-text);
  font-size: 13px;
  line-height: 20px;
}

.one-ui.pg_space #ct.ct2 > .sd #pcd .ul_list > li > a:hover
{
  background: var(--one-selected);
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2 > .sd #pcd .ul_list > li:before
{
  color: var(--one-accent);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .vw .h
{
  padding-bottom: 16px;
  border-bottom: 1px solid var(--one-border);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .vw .ph
{
  margin: 0;
  padding: 0 0 10px;
  color: var(--one-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .vw .xg2
{
  color: var(--one-muted);
  font-size: 12px;
  line-height: 20px;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .vw .xg2 > span.xg1 + span.xg1
{
  margin-left: 10px;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .vw .d
{
  margin-top: 16px;
  color: var(--one-text);
  font-size: 14px;
  line-height: 1.9;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .vw .d a
{
  color: var(--one-link);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .vw .o
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--one-border);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .oshr,
.one-ui.pg_space #ct.ct2_a > .mn .xld.xlda .oshr
{
  display: inline-flex;
  align-items: center;
  float: none;
  box-sizing: border-box;
  height: 28px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-radius);
  background: var(--one-surface);
  color: var(--one-text);
  font-size: 12px;
  line-height: 26px;
  white-space: nowrap;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .oshr:hover,
.one-ui.pg_space #ct.ct2_a > .mn .xld.xlda .oshr:hover
{
  border-color: var(--one-accent);
  background: var(--one-selected);
  color: var(--one-accent);
  text-decoration: none;
}

.one-ui.pg_space #ct.ct2 > .mn hr.da
{
  margin: 16px 0;
  border-top: 1px solid var(--one-border);
}

.one-ui.pg_space #ct.ct2 > .mn .xld.xlda
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2 > .mn .xld.xlda > dl
{
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--one-border);
  border-radius: 0;
}

.one-ui.pg_space #ct.ct2 > .mn .xld.xlda > dl:last-child
{
  border-bottom: 0;
}

.one-ui.pg_space #ct.ct2 > .mn .xld.xlda > dl > dt
{
  margin: 0;
  padding: 0 0 4px;
  color: var(--one-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.one-ui.pg_space #ct.ct2 > .mn .xld.xlda > dl > dd
{
  margin: 0;
  color: var(--one-text);
  font-size: 13px;
  line-height: 1.7;
}

.one-ui.pg_space #ct.ct2 > .mn .xld.xlda > dl > dd.m
{
  float: left;
  margin: 0 12px 0 0;
}

.one-ui.pg_space #ct.ct2 > .mn .xld.xlda > dl > dd.m img
{
  display: block;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .ml.mlp
{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .ml.mlp > li
{
  box-sizing: border-box;
  float: none;
  width: 150px;
  height: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-radius);
  background: var(--one-surface);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .ml.mlp > li > a
{
  display: block;
  min-height: 120px;
  border-radius: var(--one-radius);
  background: var(--one-canvas);
  overflow: hidden;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm .ml.mlp > li img
{
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--one-radius);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm #pnv .ml
{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}

/* 内联 style="width:136px" 只能用 !important 覆盖 */
.one-ui.pg_space #ct.ct2 > .mn > .bm #pnv .ml > li
{
  box-sizing: border-box;
  float: none;
  width: 152px !important;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--one-border);
  border-radius: var(--one-radius);
  background: var(--one-surface);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm #pnv .ml > li > .c
{
  margin: 0;
  padding: 0;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm #pnv .ml > li > .c > a
{
  display: block;
  min-height: 120px;
  border-radius: var(--one-radius);
  background: var(--one-canvas);
  overflow: hidden;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm #pnv .ml > li > .c img
{
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--one-radius);
}

.one-ui.pg_space #ct.ct2 > .mn > .bm #pnv .ml > li > .c > p
{
  height: auto;
  margin: 8px 0 0;
  color: var(--one-muted);
  font-size: 12px;
  line-height: 18px;
}

.one-ui.pg_space #ct.ct2 > .mn > .bm #pnv .ml > li > .c > p > a
{
  color: var(--one-link);
  font-size: 13px;
  line-height: 20px;
}

/* ------------------------------------------------------------------
   16. 移动端（真实站点断点 700px）
   ------------------------------------------------------------------ */
@media (max-width:700px) {
  .one-ui.pg_space #ct.ct2_a > .mn,
  .one-ui.pg_follow #ct.ct2_a > .mn,
  .one-ui.pg_spacecp #ct.ct2_a > .mn {
    padding: 16px;
  }
  .one-ui.pg_space #ct.ct2_a > .mn.pbm,
  .one-ui.pg_space #ct.ct2_a > .mn.pbw,
  .one-ui.pg_follow #ct.ct2_a > .mn.pbm {
    padding: 16px !important;
  }
  .one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail),
  .one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) {
    padding: 6px;
  }
  .one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li,
  .one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li {
    min-height: 36px;
    padding: 0 10px;
  }
  .one-ui.pg_space #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a,
  .one-ui.pg_follow #ct.ct2_a > .appl:not(.one-navigation-rail) > ul > li > a {
    font-size: 13px;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb,
  .one-ui.pg_space #ct.ct2_a > .mn > .tb,
  .one-ui.pg_follow #ct.ct2_a > .mn > .tb,
  .one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb {
    gap: 6px;
    margin-bottom: 12px;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .bm > .tb > li > a,
  .one-ui.pg_space #ct.ct2_a > .mn > .tb > li > a,
  .one-ui.pg_follow #ct.ct2_a > .mn > .tb > li > a,
  .one-ui.pg_spacecp #ct.ct2_a > .mn > .bm > .tb > li > a {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 28px;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .ptw > .ml.mla > li {
    width: calc(50% - 8px);
  }
  .one-ui.pg_space #ct.ct2 > .mn > .bm .ml.mlp > li {
    width: calc(50% - 8px);
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl {
    padding-left: 56px;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .xld.xlda > dl > dd.m {
    margin-left: -56px;
  }
  .one-ui.pg_follow #ct.ct2_a > .mn > #flw_header .my_flw_stats {
    float: none;
    width: 100%;
    margin: 0 0 12px;
  }
  .one-ui.pg_follow #ct.ct2_a > .mn > #flw_header #fastposteditor {
    margin: 0;
  }
  .one-ui.pg_follow #ct.ct2_a > .mn > .flw_user_list .ml.mls > li {
    width: 25%;
  }
  /* 表头行：one_extra.css 的 .one-ui .tl .th{padding:10px 16px} 落在 tr 上，
     table-layout:fixed 下 tr 背景只画在单元格并集上，表头底色带比表格窄约 52px。
     改为 5 列百分比合计 100% 让底色带铺满整张表格（实测 29..384 = 满宽），
     并保留官方全部 5 列（含 回复/查看），不做列隐藏 */
  .one-ui.pg_space #ct.ct2_a > .mn > .tl tr.th {
    padding-left: 0;
    padding-right: 0;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .tl tr.th > td.icn {
    width: 8%;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .tl tr.th > th {
    width: 28%;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .tl tr.th > td.frm {
    width: 20%;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .tl tr.th > td.by {
    width: 22%;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .tl tr.th > td.num {
    width: 22%;
  }
  /* friend：官方模板用内联 style 做「左侧列表 + 右侧 263px 栏」两栏，
     移动端解除两栏让右栏（查找好友 / 好友分组）堆到列表上方；内联 style 需 !important */
  .one-ui.pg_space #ct.ct2_a > .mn > .bm div.cl[style*="padding-right"] {
    padding-right: 0 !important;
  }
  .one-ui.pg_space #ct.ct2_a > .mn > .bm div.cl[style*="padding-right"] > div {
    float: none !important;
    display: block !important;
    width: auto !important;
    margin: 0 0 16px !important;
  }
  .one-ui.pg_spacecp #ct.ct2_a > .mn .tfm th {
    width: 96px;
    padding-right: 10px;
  }
}
