/* EdgeForum Modern — 用户页（个人主页 / 设置 / 个人中心）。
   只在 profile、memcp、my、pm、notice、medal、task、invite、magic 页面加载。
   结构与数值对照 unicyclist.com（Discourse）实测：
   .user-main .about / .user-navigation / .user-content / .user-stream / .user-preferences */

/* ---------- 按钮（Discourse .btn-default / .btn-primary：38px 高，padding 8px 10.4px，圆角 4px，无过渡） ---------- */
.edge-modern .edge-btn { display: inline-flex; box-sizing: border-box; min-height: 38px; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 8px 10.4px; border: 1px solid transparent; border-radius: 4px; font: inherit; font-size: 16px; font-weight: 400; line-height: 20px; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: none; }
.edge-modern .edge-btn .fa { font-size: 14px; }
.edge-modern .edge-btn--default { border-color: var(--edge-border); background: var(--edge-surface); color: var(--edge-text-secondary); }
.edge-modern .edge-btn--default:hover, .edge-modern .edge-btn--default:focus-visible { outline: none; background: var(--edge-surface-active); color: var(--edge-text); }
.edge-modern .edge-btn--primary { background: var(--edge-primary); color: var(--edge-primary-fg) !important; }
.edge-modern .edge-btn--primary:hover, .edge-modern .edge-btn--primary:focus-visible { outline: none; background: var(--edge-primary-hover); }
.edge-modern .edge-btn--danger { background: var(--edge-danger); color: #fff !important; }
.edge-modern .edge-btn--danger:disabled { color: var(--edge-text-muted) !important; }
.edge-modern .edge-btn:focus-visible { box-shadow: 0 0 0 2px var(--edge-bg), 0 0 0 4px var(--edge-primary); }

/* ---------- 用户头部 .user-main .about ---------- */
.edge-user { width: 100%; max-width: 1040px; padding: 0 0 60px; color: var(--edge-text); font-size: 16px; line-height: 1.4; }
.edge-user__details { border-bottom: 1px solid var(--edge-border-light); }
.edge-user__primary { position: relative; display: flex; align-items: flex-start; width: 100%; }
.edge-user__avatar { position: relative; flex: none; align-self: flex-start; }
.edge-user__avatar img { display: block; width: 144px; height: 144px; margin: 0 20px 10px 0; border-radius: 50%; object-fit: cover; }
.edge-user__avatar-banned { display: grid; width: 144px; height: 144px; margin: 0 20px 10px 0; place-items: center; border-radius: 50%; background: var(--edge-surface-active); color: var(--edge-text-muted); font-size: 13px; }
.edge-user__presence { position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border: 2px solid var(--edge-bg); border-radius: 50%; background: var(--edge-success); }
.edge-user__textual { flex: 1 1 auto; min-width: 0; padding: 0 0 8px; }
.edge-user__username { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--edge-text); font-size: 32px; font-weight: 700; line-height: 38.4px; overflow-wrap: anywhere; }
.edge-user__verify:empty { display: none; }
.edge-user__verify img { width: 20px; height: 20px; vertical-align: middle; }
.edge-user__fullname { margin: 0; color: var(--edge-text); font-size: 24.25px; font-weight: 400; line-height: 33.95px; overflow-wrap: anywhere; }
.edge-user__bio-block { margin-top: 8px; }
.edge-user__bio { max-width: 640px; max-height: 300px; overflow: auto; color: var(--edge-text); font-size: 16px; line-height: 1.5; }
.edge-user__bio img { max-width: 100%; }
.edge-user__location { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; color: var(--edge-text-muted); font-size: 14px; }
.edge-user__location:empty { display: none; }
.edge-user__location > * { display: inline-flex; align-items: center; gap: 6px; color: var(--edge-text-muted); }
.edge-user__location a:hover { color: var(--edge-primary); }
.edge-user__controls { display: flex; flex: none; flex-direction: column; align-items: stretch; gap: 6px; width: 144px; margin: 9px 0 0 8px; }
.edge-user__controls > .edge-btn, .edge-user__admin > summary { width: 100%; }
.edge-user__admin { position: relative; }
.edge-user__admin > summary { list-style: none; }
.edge-user__admin > summary::-webkit-details-marker { display: none; }
.edge-user__admin-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: var(--edge-z-dropdown); display: grid; min-width: 180px; padding: 6px; border: 1px solid var(--edge-border-light); border-radius: 4px; background: var(--edge-surface); box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a; animation: edge-menu-in var(--edge-pop-in) both; }
.edge-user__admin-menu a { padding: 8px 12px; border-radius: 4px; color: var(--edge-text); font-size: 14px; }
.edge-user__admin-menu a:hover { background: var(--edge-surface-active); }
.edge-user__secondary { border-top: 1px solid var(--edge-border-light); }
.edge-user__secondary dl { margin: 0; padding: 8px 0; }
.edge-user__secondary dl > div { display: inline-flex; align-items: baseline; margin: 4px 0; }
.edge-user__secondary dt { margin: 0 5px 0 0; color: var(--edge-text-muted); }
.edge-user__secondary dd { margin: 0 15px 0 0; color: var(--edge-text); }
.edge-user__secondary dd small { color: var(--edge-text-muted); font-size: 13px; }
.edge-user__secondary dd a { color: var(--edge-text); }
.edge-user__modforums a { color: var(--edge-link) !important; }
.edge-user__toggle { display: none; }
.edge-user__about.is-collapsed .edge-user__toggle, .edge-user__about.is-toggleable .edge-user__toggle { display: inline-flex; }
.edge-user__about:not(.is-collapsed) .edge-user__toggle .fa { transform: rotate(180deg); }

/* 收起态（参考站本人主页与活动子页）：头像 45、用户名 24.25、全名 18.38，按钮横排，隐藏简介与 secondary。 */
.edge-user__about.is-collapsed .edge-user__avatar img, .edge-user__about.is-collapsed .edge-user__avatar-banned { width: 45px; height: 45px; margin: 0 10px 10px 0; font-size: 0; }
.edge-user__about.is-collapsed .edge-user__presence { left: 0; top: 0; width: 8px; height: 8px; border-width: 2px; }
.edge-user__about.is-collapsed .edge-user__username { font-size: 24.25px; line-height: 29.1px; }
.edge-user__about.is-collapsed .edge-user__fullname { font-size: 18.38px; line-height: 25.73px; }
.edge-user__about.is-collapsed .edge-user__textual { padding-bottom: 0; }
.edge-user__about.is-collapsed .edge-user__bio-block, .edge-user__about.is-collapsed .edge-user__secondary { display: none; }
.edge-user__about.is-collapsed .edge-user__controls { flex-direction: row; width: auto; margin-top: 9px; }
.edge-user__about.is-collapsed .edge-user__controls > .edge-btn, .edge-user__about.is-collapsed .edge-user__admin > summary { width: auto; }
.edge-user__about.is-collapsed .edge-user__primary { min-height: 64px; }
.edge-user__about.is-animating .edge-user__avatar img { transition: width .2s ease, height .2s ease, margin .2s ease; }
@media (min-width: 761px) {
  .edge-user__about:not(.is-collapsed) .edge-user__controls { display: grid; grid-template-columns: repeat(2, 144px); gap: 8px; width: auto; margin: 9px 0 0 16px; }
  .edge-user__about:not(.is-collapsed) .edge-user__primary { min-height: 154px; }
  .edge-user__about:not(.is-collapsed) .edge-user__controls > .edge-user__toggle { grid-column: 2; }
}

/* ---------- 导航 .user-navigation ---------- */
.edge-user-nav { border-bottom: 1px solid var(--edge-border-light); }
.edge-user-nav .edge-nav-pills { display: flex; align-items: stretch; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.edge-user-nav .edge-nav-pills::-webkit-scrollbar { display: none; }
.edge-user-nav .edge-nav-pills > li { display: flex; flex: 1 1 auto; margin: 0; list-style: none; }
.edge-user-nav .edge-nav-pills a { position: relative; display: flex; box-sizing: border-box; width: 100%; min-height: 30px; align-items: center; justify-content: center; padding: 10.4px 12px; border-radius: 0; color: var(--edge-text); font-size: 16px; line-height: 16px; white-space: nowrap; text-decoration: none !important; }
.edge-user-nav .edge-nav-pills a .fa { margin-right: 5px; color: var(--edge-text-secondary); font-size: 14px; }
.edge-user-nav .edge-nav-pills a:hover { color: var(--edge-primary); }
.edge-user-nav .edge-nav-pills a:hover .fa, .edge-user-nav .edge-nav-pills a.is-active .fa { color: var(--edge-primary); }
.edge-user-nav .edge-nav-pills a.is-active { color: var(--edge-primary); }
.edge-user-nav .edge-nav-pills a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--edge-primary); }
.edge-user-nav .edge-nav-pills a:focus-visible { outline: 2px solid var(--edge-primary); outline-offset: -2px; }
.edge-user-nav--secondary { font-size: 13.93px; }
.edge-user-nav--secondary .edge-nav-pills { gap: 6.96px; }
.edge-user-nav--secondary .edge-nav-pills > li { flex: 1 0 auto; }
.edge-user-nav--secondary .edge-nav-pills a { padding: 9.05px 10.45px; font-size: 13.93px; line-height: 13.93px; }
.edge-user-nav--secondary .edge-nav-pills a .fa { font-size: 12px; }

/* ---------- 内容 .user-content ---------- */
.edge-user__content { margin-top: 32px; }
.edge-user-empty { margin: 16px 0; color: var(--edge-text-muted); }
.edge-user-empty a { color: var(--edge-link); }
.edge-user-summary__stats h3, .edge-user-summary__section > h3 { margin: 0 0 10px; color: var(--edge-text); font-size: 18.72px; font-weight: 700; line-height: 26.2px; text-transform: uppercase; }
.edge-user-summary__stats { margin: 0 0 20px; }
.edge-user-summary__stats ul, .edge-user-summary__credits { margin: 10px 0; padding: 0; list-style: none; }
.edge-user-summary__stats li, .edge-user-summary__credits li { display: inline-block; margin: 0 10px 10px 0; padding: 10px 14px 10px 0; list-style: none; }
.edge-user-summary__stats .value, .edge-user-summary__credits .value { color: var(--edge-text); font-size: 21.11px; font-weight: 700; line-height: 29.56px; }
.edge-user-summary__stats .label, .edge-user-summary__credits .label { margin-left: 4px; color: var(--edge-text-muted); font-size: 16px; }
.edge-user-summary__stats .label .fa-heart { color: var(--edge-love); font-size: 14px; }
.edge-user-summary__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edge-user-summary__section { min-width: 0; margin: 0 0 20px; }
.edge-user-summary__grid .edge-user-summary__section { padding-right: 26px; }
.edge-user-summary__list { margin: 0; padding: 0; list-style: none; }
.edge-user-summary__list li { display: block; margin: 10px 0; padding: 5px 8px; border-left: 2px solid var(--edge-border-light); list-style: none; }
.edge-user-summary__info { display: block; color: var(--edge-text-muted); }
.edge-user-summary__info .fa-heart { color: var(--edge-love); font-size: 13px; }
.edge-user-summary__info .fa-star { color: var(--edge-highlight); font-size: 13px; }
.edge-user-summary__list a, .edge-user-summary__more { color: var(--edge-link); overflow-wrap: anywhere; }
.edge-user-summary__list a:hover, .edge-user-summary__more:hover { color: var(--edge-link-hover); }
.edge-user-summary__empty { margin: 0; color: var(--edge-text); }
.edge-user-summary__categories table { border-collapse: collapse; }
.edge-user-summary__categories th { padding: 8px; color: var(--edge-text-muted); font-weight: 400; text-align: center; }
.edge-user-summary__categories td { padding: 8px; text-align: center; }
.edge-user-summary__categories td:first-child { text-align: left; }
.edge-user-summary__categories td a:not(.edge-category-label) { color: var(--edge-link); }
.edge-user-summary__categories .edge-category-label { font-size: 13.93px; }
.edge-user-summary__trade { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--edge-text-secondary); }
.edge-user-summary__trade img { height: 14px; }
.edge-user-summary__trade a { color: var(--edge-link); }

/* 勋章卡片（Discourse .badge-card.medium） */
.edge-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.edge-badge-grid--summary { margin-bottom: 10px; }
.edge-badge-card { display: flex; box-sizing: border-box; min-height: 108px; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--edge-border-light); border-radius: 4px; background: var(--edge-surface); }
.edge-badge-card__icon { display: grid; flex: none; width: 48px; height: 48px; place-items: center; color: #cd7f32; font-size: 36px; }
.edge-badge-card__icon img { max-width: 48px; max-height: 48px; }
.edge-badge-card h3 { margin: 0 0 4px; color: var(--edge-text); font-size: 17px; font-weight: 700; line-height: 1.3; }
.edge-badge-card p { margin: 0; color: var(--edge-text-secondary); font-size: 13.93px; line-height: 1.4; }
.edge-badge-card p img { vertical-align: -2px; }

/* 活动流 .user-stream-item / .post-list-item */
.edge-user-stream { border-top: 0; }
.edge-user-stream__item { padding: 16px 8.48px; border-bottom: 1px solid var(--edge-border-light); background: var(--edge-bg); }
.edge-user-stream__header { display: flex; align-items: flex-start; }
.edge-user-stream__avatar { flex: none; margin: 0 8px 0 0; }
.edge-user-stream__avatar img { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.edge-user-stream__details { flex: 1 1 auto; min-width: 0; margin-right: 8px; }
.edge-user-stream__title { color: var(--edge-text); font-size: 16px; line-height: 22.4px; overflow-wrap: anywhere; }
.edge-user-stream__title .edge-topic-statuses { margin-right: 2px; }
.edge-user-stream__title a { color: var(--edge-link); }
.edge-user-stream__title a:hover { color: var(--edge-link-hover); }
.edge-user-stream__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; line-height: 22.4px; }
.edge-user-stream__meta .edge-category-label { font-size: 13.93px; }
.edge-user-stream__time, .edge-user-stream__kind { color: var(--edge-text-muted); font-size: 12.13px; line-height: 1.2; }
.edge-user-stream__time::before { content: "•"; margin-right: 8px; }
.edge-user-stream__kind { padding: 1px 6px; border-radius: 10px; background: var(--edge-surface-active); }
.edge-user-stream__expand { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px 4px 0 4px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--edge-text-muted); font-size: 14px; cursor: pointer; }
.edge-user-stream__expand:hover { background: var(--edge-surface-active); color: var(--edge-text); }
.edge-user-stream__expand:focus-visible { outline: 2px solid var(--edge-primary); outline-offset: 1px; }
.edge-user-stream__excerpt { margin: 12px 0 0 56px; color: var(--edge-text); font-size: 16px; line-height: 24px; overflow-wrap: anywhere; word-break: normal; }
.edge-user-stream__excerpt--locked { display: flex; align-items: center; gap: 6px; color: var(--edge-text-muted); font-size: 14px; }
.edge-user-stream__smiley { display: inline-block; width: auto; max-width: 24px; height: auto; max-height: 24px; margin: 0 1px; vertical-align: -5px; }
.edge-user-stream__token { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; padding: 0 6px; border-radius: 4px; background: var(--edge-surface-active); color: var(--edge-text-muted); font-size: 12.13px; line-height: 20px; vertical-align: 1px; white-space: nowrap; }
.edge-user-stream__token .fa { font-size: 11px; }
.edge-user-stream__full { margin: 12px 0 0 56px; min-width: 0; color: var(--edge-text); font-size: 16px; line-height: 1.625; overflow-wrap: anywhere; animation: edge-fade-in 200ms ease both; }
.edge-user-stream__full.postmessage { padding: 0; border: 0; background: transparent; }
.edge-user-stream__full > :first-child { margin-top: 0 !important; }
.edge-user-stream__full > :last-child { margin-bottom: 0 !important; }
.edge-user-stream__full p { margin: 0 0 12px; }
.edge-user-stream__full img { max-width: 100%; height: auto; }
.edge-user-stream__full pre { max-height: 500px; overflow: auto; }
.edge-user-stream__full table { display: block; max-width: 100%; overflow-x: auto; }
.edge-user-stream__item.is-expanded .edge-user-stream__excerpt { display: none; }

/* 话题筛选：Discourse 用户话题页是标准话题列表（话题 / 回复 / 浏览量 / 活动），没有参与者列 */
.edge-user-topics .edge-topic-table__head { grid-template-columns: minmax(0,1fr) 68px 68px 83px; }
.edge-user-topics .edge-topic-row { grid-template-columns: minmax(0,1fr) 219px; }
.edge-user-topics .edge-topic-row__body p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }

@media (max-width: 760px) {
  .edge-user-stream__item { padding: 14px 4px; }
  .edge-user-stream__avatar img { width: 40px; height: 40px; }
  .edge-user-stream__excerpt, .edge-user-stream__full { margin-left: 0; }
  .edge-user-topics .edge-topic-row { grid-template-columns: minmax(0,1fr) 68px; }
}
.edge-user .edge-pagination { margin-top: 20px; }

/* ---------- 个人中心外壳（设置 / 积分 / 私信 / 通知 / 收藏等 Legacy 页面） ---------- */
.edge-ucp-shell { max-width: 1040px; }
.edge-ucp-shell .edge-user { padding-bottom: 0; }
.edge-modern.edge-ucp #nav, .edge-modern.edge-ucp .side, .edge-modern.edge-ucp #wrap > .side, .edge-modern.edge-ucp .content > h1:first-child:not(.edge-pref__title) { display: none !important; }
.edge-modern.edge-ucp #wrap, .edge-modern.edge-ucp #wrap > .main, .edge-modern.edge-ucp .main .content, .edge-modern.edge-ucp .mainbox, .edge-modern.edge-ucp .content { float: none !important; width: auto !important; max-width: 1040px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.edge-modern.edge-ucp #wrap { margin-top: 32px !important; }
.edge-modern.edge-ucp .main { display: block !important; }
.edge-modern.edge-ucp .content h1, .edge-modern.edge-ucp .mainbox h1, .edge-modern.edge-ucp .mainbox h3 { margin: 0 0 16px; padding: 0; border: 0; background: none; color: var(--edge-text); font-size: 21.11px; font-weight: 700; line-height: 29.56px; }
.edge-modern.edge-ucp table { border-collapse: collapse; }
.edge-modern.edge-ucp .datatable, .edge-modern.edge-ucp .mainbox table { width: 100%; border: 0; background: transparent; }
.edge-modern.edge-ucp .datatable th, .edge-modern.edge-ucp .datatable td, .edge-modern.edge-ucp .mainbox table th, .edge-modern.edge-ucp .mainbox table td { padding: 10px 8px; border: 0; border-bottom: 1px solid var(--edge-border-light); background: transparent !important; color: var(--edge-text); font-size: 14px; text-align: left; }
.edge-modern.edge-ucp .datatable thead th, .edge-modern.edge-ucp .datatable thead td, .edge-modern.edge-ucp .mainbox table thead td, .edge-modern.edge-ucp .mainbox table thead th { color: var(--edge-text-muted); font-weight: 400; }
.edge-modern.edge-ucp .datatable a, .edge-modern.edge-ucp .mainbox a { color: var(--edge-link); }
.edge-modern.edge-ucp .tabs, .edge-modern.edge-ucp ul.tabs { display: flex; flex-wrap: wrap; gap: 6.96px; margin: 0 0 16px; padding: 0; border-bottom: 1px solid var(--edge-border-light); background: none; list-style: none; }
.edge-modern.edge-ucp .tabs li { float: none; margin: 0; padding: 0; border: 0; background: none; list-style: none; }
.edge-modern.edge-ucp .tabs li a { position: relative; display: block; padding: 9px 10.4px; border: 0; background: none; color: var(--edge-text); font-size: 13.93px; }
.edge-modern.edge-ucp .tabs li.current a, .edge-modern.edge-ucp .tabs li a:hover { color: var(--edge-primary); }
.edge-modern.edge-ucp .tabs li.current a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--edge-primary); }
.edge-modern.edge-ucp input.txt, .edge-modern.edge-ucp input[type="text"], .edge-modern.edge-ucp input[type="password"], .edge-modern.edge-ucp input[type="email"], .edge-modern.edge-ucp select, .edge-modern.edge-ucp textarea { box-sizing: border-box; max-width: 100%; min-height: 38px; padding: 8px 10.4px; border: 1px solid var(--edge-border); border-radius: 4px; background: var(--edge-surface); color: var(--edge-text); font: inherit; font-size: 16px; }
.edge-modern.edge-ucp textarea { min-height: 120px; line-height: 1.5; }
.edge-modern.edge-ucp input:focus, .edge-modern.edge-ucp select:focus, .edge-modern.edge-ucp textarea:focus { outline: none; border-color: var(--edge-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--edge-primary) 25%, transparent); }
.edge-modern.edge-ucp button.submit, .edge-modern.edge-ucp .btn .submit, .edge-modern.edge-ucp input[type="submit"], .edge-modern.edge-ucp button[type="submit"] { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 10.4px; border: 1px solid transparent; border-radius: 4px; background: var(--edge-primary); color: var(--edge-primary-fg); font: inherit; font-size: 16px; cursor: pointer; }
.edge-modern.edge-ucp button.submit:hover, .edge-modern.edge-ucp input[type="submit"]:hover, .edge-modern.edge-ucp button[type="submit"]:hover { background: var(--edge-primary-hover); }
.edge-modern.edge-ucp .pages_btns, .edge-modern.edge-ucp .pages { margin: 16px 0; }
.edge-modern.edge-ucp .notice, .edge-modern.edge-ucp .message { border-radius: 4px; }

/* ---------- 设置页 .user-preferences（Discourse control-group：标题 21.11px/700，控件宽 500，说明 13.93px） ---------- */
.edge-pref { max-width: 1040px; }
.edge-pref__title { margin: 0 0 24px; color: var(--edge-text); font-size: 21.11px; font-weight: 700; }
.edge-pref .control-group { margin: 0 0 32px; }
.edge-pref .control-label { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; color: var(--edge-text-secondary); font-size: 21.11px; font-weight: 700; line-height: 29.56px; }
.edge-pref .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 530px; }
.edge-pref .controls > input[type="text"], .edge-pref .controls > input[type="password"], .edge-pref .controls > select, .edge-pref .controls > textarea, .edge-pref .edge-pref__input { width: 500px; max-width: 100%; }
.edge-pref .controls > textarea, .edge-pref .edge-pref__editor textarea { width: 530px; min-height: 160px; }
.edge-pref .instructions { margin: 5px 0 10px; color: var(--edge-text-muted); font-size: 13.93px; line-height: 19.5px; }
.edge-pref .instructions a { color: var(--edge-link); }
.edge-pref .checkbox-label, .edge-pref .radio-label { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; color: var(--edge-text-secondary); font-size: 16px; line-height: 19.2px; cursor: pointer; }
.edge-pref .radio-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.edge-pref .radio-row label { display: inline-flex; align-items: center; gap: 6px; color: var(--edge-text-secondary); cursor: pointer; }
.edge-pref input[type="checkbox"], .edge-pref input[type="radio"] { width: 14px; height: 14px; margin: 0; accent-color: var(--edge-primary); }
.edge-pref .edge-pref__editor { width: 530px; max-width: 100%; border: 1px solid var(--edge-border); border-radius: 4px; background: var(--edge-surface); }
.edge-pref .edge-pref__editor .editor_tb, .edge-pref .edge-pref__editor .edge-pref__toolbar { display: flex; gap: 8px; margin: 0; padding: 4px 8px; border-bottom: 1px solid var(--edge-border-light); background: transparent; }
.edge-pref .edge-pref__editor .editor_tb a, .edge-pref .edge-pref__toolbar a { display: inline-grid; width: 32px; height: 31px; place-items: center; border-radius: 4px; color: var(--edge-text-secondary); font-size: 0; text-indent: 0; background: none !important; }
.edge-pref .edge-pref__toolbar a::before { font-family: FontAwesome; font-size: 14px; }
.edge-pref .edge-pref__toolbar a.tb_bold::before { content: "\f032"; }
.edge-pref .edge-pref__toolbar a.tb_link::before { content: "\f0c1"; }
.edge-pref .edge-pref__toolbar a.tb_img::before { content: "\f03e"; }
.edge-pref .edge-pref__toolbar a.tb_imme::before { content: "\f0e6"; }
.edge-pref .edge-pref__toolbar a:hover { background: var(--edge-surface-active) !important; color: var(--edge-text); }
.edge-pref .edge-pref__editor textarea { display: block; width: 100%; min-height: 160px; margin: 0; border: 0 !important; border-radius: 0 0 4px 4px; box-shadow: none !important; }
.edge-pref .save-button { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.edge-pref .edge-pref__avatar { display: flex; align-items: center; gap: 12px; }
.edge-pref .edge-pref__avatar img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.edge-pref .seccheck, .edge-pref .edge-pref__seccheck { max-width: 530px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .edge-user__primary { flex-wrap: wrap; }
  .edge-user__avatar img, .edge-user__avatar-banned { width: 90px; height: 90px; margin-right: 12px; }
  .edge-user__username { font-size: 24px; line-height: 30px; }
  .edge-user__fullname { font-size: 18px; line-height: 26px; }
  .edge-user__controls, .edge-user__about.is-collapsed .edge-user__controls { flex-direction: row; flex-wrap: wrap; width: 100%; margin: 8px 0 12px; }
  .edge-user__controls > .edge-btn, .edge-user__admin > summary { width: auto; }
  .edge-user-nav .edge-nav-pills > li { flex: 0 0 auto; }
  .edge-user-nav .edge-nav-pills a { padding: 10px 10px; font-size: 15px; }
  .edge-user-summary__grid { grid-template-columns: 1fr; }
  .edge-user-summary__grid .edge-user-summary__section { padding-right: 0; }
  .edge-user-stream__excerpt { margin-left: 0; }
  .edge-pref .controls > input[type="text"], .edge-pref .controls > textarea, .edge-pref .edge-pref__editor { width: 100%; }
}
.edge-modern .edge-user__admin.edge-is-closing { animation: none !important; }
.edge-modern .edge-user__admin.edge-is-closing .edge-user__admin-menu { animation: edge-dissolve-up var(--edge-pop-out) forwards; }

/* 设置页 Legacy 表单行映射：第二个 .controls 为说明文字（Discourse .instructions），签名/简介工具栏与 textarea 合成一个编辑器。 */
.edge-pref .control-group > .control-label label { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: inherit; font: inherit; }
.edge-pref .control-group > .control-label label br { display: none; }
.edge-pref .control-group > .control-label label a { color: var(--edge-link); font-size: 13.93px; font-weight: 400; }
.edge-pref .control-group > .control-label:empty { display: none; }
.edge-pref .control-group > .controls + .controls, .edge-pref .controls > span.left, .edge-pref .channelinfo { display: block; max-width: 530px; margin: 5px 0 10px; color: var(--edge-text-muted); font-size: 13.93px; line-height: 19.5px; }
.edge-pref .control-group > .controls + .controls:empty { display: none; }
.edge-pref .channelinfo { margin: 0 0 24px; }
.edge-pref .controls input.txt, .edge-pref .controls input[type="text"], .edge-pref .controls input[type="password"], .edge-pref .controls select { width: 500px; max-width: 100%; }
.edge-pref .controls > label { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 6px 0; color: var(--edge-text-secondary); font-size: 16px; cursor: pointer; }
.edge-pref .controls > label + br { display: none; }
.edge-pref .controls .editor_tb { box-sizing: border-box; display: flex; width: 530px !important; max-width: 100%; margin: 0; padding: 4px 8px; border: 1px solid var(--edge-border); border-bottom: 1px solid var(--edge-border-light); border-radius: 4px 4px 0 0; background: var(--edge-surface) !important; }
.edge-pref .controls .editor_tb > div { display: flex; gap: 8px; }
.edge-pref .controls .editor_tb a { display: inline-grid; width: 32px; height: 31px; place-items: center; overflow: hidden; border-radius: 4px; background: none !important; color: transparent; font-size: 0; }
.edge-pref .controls .editor_tb a::before { color: var(--edge-text-secondary); font-family: FontAwesome; font-size: 14px; }
.edge-pref .controls .editor_tb a.tb_bold::before { content: "\f032"; }
.edge-pref .controls .editor_tb a.tb_link::before { content: "\f0c1"; }
.edge-pref .controls .editor_tb a.tb_img::before { content: "\f03e"; }
.edge-pref .controls .editor_tb a.tb_imme::before { content: "\f0e6"; }
.edge-pref .controls .editor_tb a:hover { background: var(--edge-surface-active) !important; }
.edge-pref .controls .editor_tb + textarea { width: 530px; max-width: 100%; margin-top: 0 !important; border-top: 0 !important; border-radius: 0 0 4px 4px; }
.edge-pref .controls textarea.txtarea { width: 530px; max-width: 100%; min-height: 160px; }
.edge-pref #signaturepreview:not(:empty), .edge-pref #biopreview:not(:empty) { width: 530px; max-width: 100%; margin-bottom: 8px; padding: 10px 12px; border: 1px dashed var(--edge-border); border-radius: 4px; }
.edge-pref .controls { flex-direction: column; align-items: flex-start; }
.edge-pref .controls:has(> label) { flex-direction: row; flex-wrap: wrap; align-items: center; }
.edge-pref .save-button { margin-top: 0; }
.edge-modern.edge-ucp .edge-ucp-shell + * , .edge-modern.edge-ucp .edge-pref { margin-top: 32px; }
.edge-pref .control-label { color: var(--edge-text-muted); }
.edge-pref .controls { gap: 0; }
.edge-pref .controls:has(> label) { gap: 0; }

/* 账户页（Discourse /preferences/account）：头像 90px + 铅笔按钮，上传区为 330×103 虚线框（参考站 .uploaded-image-preview / image-uploader）。 */
.edge-pref .instructions { display: block; max-width: 530px; }
.edge-pref__value { color: var(--edge-text); font-size: 16px; }
.edge-pref__avatar-row, .edge-pref__email-row { flex-direction: row !important; align-items: center !important; gap: 10px !important; }
.edge-pref__avatar-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.edge-pref__icon-btn { width: 32px; min-height: 31px; padding: 4.8px 7.2px; }
.edge-pref__email-row { justify-content: space-between; max-width: 500px; }
.edge-pref__email-row > div { display: grid; }
.edge-pref__primary { color: var(--edge-success); font-size: 16px; }
.edge-pref__upload { margin-top: 12px; }
.edge-uploader { display: flex; box-sizing: border-box; width: 330px; max-width: 100%; height: 103px; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--edge-border); border-radius: 0; background: var(--edge-surface); color: var(--edge-text); font-size: 16px; cursor: pointer; }
.edge-uploader:hover, .edge-uploader.is-dragover { border-color: var(--edge-primary); background: var(--edge-surface-hover); }
.edge-uploader .fa { color: var(--edge-text-secondary); font-size: 14px; }
.edge-uploader input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.edge-pref__crop { max-width: 530px; margin-top: 12px; }
.edge-pref__crop .crop-container { max-height: 360px; overflow: hidden; border: 1px solid var(--edge-border-light); border-radius: 4px; background: var(--edge-surface-active); }
.edge-pref__crop .crop-container img { display: block; max-width: 100%; }
.edge-pref__crop-tools, .edge-pref__crop-previews { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 12px 0; }
.edge-pref__crop-previews > div { display: grid; justify-items: center; gap: 4px; color: var(--edge-text-muted); font-size: 12px; }
.edge-pref__crop-previews .preview { overflow: hidden; border-radius: 50%; background: var(--edge-surface-active); }
.edge-pref__crop-previews .preview-big { width: 100px; height: 100px; }
.edge-pref__crop-previews .preview-middle { width: 60px; height: 60px; }
.edge-pref__crop-previews .preview-small { width: 32px; height: 32px; }
.edge-pref__progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--edge-text-secondary); }
.edge-pref__spinner { width: 16px; height: 16px; border: 2px solid var(--edge-border); border-top-color: var(--edge-primary); border-radius: 50%; animation: edge-spin .8s linear infinite; }
@keyframes edge-spin { to { transform: rotate(360deg); } }
.edge-pref__rules { max-width: 530px; margin: 0; padding-left: 18px; color: var(--edge-text-muted); font-size: 13.93px; line-height: 1.6; }
.edge-pref__avatar-img { display: inline-block; overflow: hidden; }
.edge-pref__avatar-img img { display: block; width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }

.edge-modern.edge-ucp .edge-main > :is(.edge-pm, .edge-notifications, .edge-ucp-empty, .pages_btns) { max-width: 1040px; }
.edge-modern.edge-ucp.edge-sidebar-collapsed :is(.edge-ucp-shell, .edge-user, .edge-pref),
.edge-modern.edge-ucp.edge-sidebar-collapsed :is(#wrap, #wrap > .main, .main .content, .mainbox, .content),
.edge-modern.edge-ucp.edge-sidebar-collapsed .edge-main > :is(.edge-pm, .edge-notifications, .edge-ucp-empty, .pages_btns) { max-width: none; }
/* 通知：一行 = 类型图标 + 正文（摘录 / 理由 / 操作链接）+ 相对时间，未读行用主色浅底。 */
.edge-modern .edge-notifications { margin: 0; padding: 0; border-top: 1px solid var(--edge-border-light); list-style: none; }
.edge-modern .edge-notification { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; column-gap: 12px; align-items: start; margin: 0; padding: 12px; border-bottom: 1px solid var(--edge-border-light); color: var(--edge-text); font-size: 15px; line-height: 22px; list-style: none; transition: background-color .12s ease; }
.edge-modern .edge-notification:hover { background: var(--edge-surface-hover); }
.edge-modern .edge-notification.is-unread { background: var(--edge-primary-low); }
.edge-notification__icon { display: grid; width: 24px; height: 22px; place-items: center; color: var(--edge-text-muted); font-size: 16px; }
.edge-notification.is-unread .edge-notification__icon { color: var(--edge-primary); }
.edge-notification--rate .edge-notification__icon, .edge-notification--reward .edge-notification__icon { color: var(--edge-highlight, #d48806); }
.edge-notification--like .edge-notification__icon { color: var(--edge-danger); }
.edge-notification__body { min-width: 0; overflow-wrap: anywhere; }
.edge-modern .edge-notification__body a { color: var(--edge-link); text-decoration: none; }
.edge-modern .edge-notification__body a:hover { text-decoration: underline; }
.edge-modern .edge-notification__body > a[href*="space.php"]:first-child { color: var(--edge-text); font-weight: 600; }
.edge-modern .edge-notification__body dl.summary { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 2px 10px; margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--edge-border); border-radius: 0 4px 4px 0; background: var(--edge-surface-active); color: var(--edge-text-secondary); font-size: 14px; line-height: 20px; }
.edge-modern .edge-notification__body dl.summary dt { margin: 0; color: var(--edge-text-muted); font-weight: 400; white-space: nowrap; }
.edge-modern .edge-notification__body dl.summary dt a { color: var(--edge-text-secondary); font-weight: 600; }
.edge-modern .edge-notification__body dl.summary dd { display: -webkit-box; overflow: hidden; margin: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.edge-modern .edge-notification__body fieldset { margin: 8px 0 0; padding: 6px 12px; border: 0; border-left: 3px solid var(--edge-border); background: var(--edge-surface-active); color: var(--edge-text-secondary); font-size: 14px; }
.edge-modern .edge-notification__body fieldset ins { text-decoration: none; }
.edge-modern .edge-notification__body p { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.edge-modern .edge-notification__body p a, .edge-modern .edge-notification__body a.il { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--edge-border); border-radius: 4px; color: var(--edge-text-secondary); font-size: 13px; }
.edge-modern .edge-notification__body a.il { margin-left: 8px; }
.edge-modern .edge-notification__body p a:hover, .edge-modern .edge-notification__body a.il:hover { background: var(--edge-surface-active); color: var(--edge-text); text-decoration: none; }
.edge-notification__time { color: var(--edge-text-muted); font-size: 13px; white-space: nowrap; }

/* 二级导航末尾的主按钮（发送私信）。 */
.edge-user-nav--secondary .edge-nav-pills > li.edge-user-nav__action { flex: 0 0 auto; align-items: center; margin-left: auto; }
.edge-user-nav--secondary .edge-nav-pills li.edge-user-nav__action a.edge-btn { width: auto; min-height: 32px; padding: 6px 10px; border-radius: 4px; color: var(--edge-primary-fg); font-size: 13.93px; }
.edge-user-nav--secondary .edge-nav-pills li.edge-user-nav__action a.edge-btn .fa { color: inherit; }


.edge-pm-thread__more { position: relative; }
.edge-pm-thread__more > summary { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 4px; color: var(--edge-text-secondary); cursor: pointer; list-style: none; }
.edge-pm-thread__more > summary::-webkit-details-marker { display: none; }
.edge-pm-thread__more > summary:hover, .edge-pm-thread__more[open] > summary, .edge-pm-thread__more > summary:focus-visible { outline: none; background: var(--edge-surface-active); color: var(--edge-text); }
.edge-pm-thread__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 180px; padding: 4px 0; border: 1px solid var(--edge-border); border-radius: 4px; background: var(--edge-surface); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.edge-modern .edge-pm-thread__menu a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--edge-text) !important; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.edge-modern .edge-pm-thread__menu a .fa { width: 14px; color: var(--edge-text-muted); text-align: center; }
.edge-modern .edge-pm-thread__menu a:hover, .edge-modern .edge-pm-thread__menu a:focus-visible { outline: none; background: var(--edge-surface-hover); }
.edge-modern .edge-pm-thread__menu a.is-danger:hover, .edge-modern .edge-pm-thread__menu a.is-danger:hover .fa { color: var(--edge-danger) !important; }
.edge-pm-day, .edge-pm-new { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; color: var(--edge-text-muted); font-size: 12px; scroll-margin-top: calc(var(--edge-header-height, 52px) + 12px); }
.edge-pm-day::before, .edge-pm-day::after, .edge-pm-new::before, .edge-pm-new::after { content: ""; flex: 1 1 0; height: 1px; background: var(--edge-border-light); }
.edge-pm-new { color: var(--edge-danger); font-weight: 600; }
.edge-pm-new::before, .edge-pm-new::after { background: color-mix(in srgb, var(--edge-danger) 45%, transparent); }

/* 私信设置：接收开关 + 黑名单。 */
.edge-pm-settings { max-width: 640px; }
.edge-modern .edge-pm-settings h2 { margin: 0 0 12px; color: var(--edge-text); font-size: 18px; font-weight: 700; }
.edge-modern .edge-pm-settings h2:not(:first-child) { margin-top: 32px; }
.edge-pm-settings__form { display: grid; gap: 10px; justify-items: start; }
.edge-pm-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; }
.edge-pm-option input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--edge-primary); }
.edge-pm-option span { display: grid; gap: 2px; }
.edge-pm-option strong { color: var(--edge-text); font-size: 15px; font-weight: 600; }
.edge-pm-option small, .edge-modern .edge-pm-settings__note, .edge-modern .edge-pm-settings__empty { margin: 0; color: var(--edge-text-muted); font-size: 13.93px; }
.edge-pm-settings__form .edge-btn { margin-top: 6px; }
.edge-pm-settings__add { display: flex; gap: 8px; margin: 12px 0; }
.edge-modern .edge-pm-settings__add input[type="text"] { box-sizing: border-box; width: 100%; height: 38px; margin: 0; padding: 0 10px; border: 1px solid var(--edge-border); border-radius: 4px; background: var(--edge-surface); color: var(--edge-text); font-size: 15px; box-shadow: none; }
.edge-modern .edge-pm-settings__add input[type="text"] { width: min(260px, 100%); }
.edge-modern .edge-pm-blacklist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.edge-modern .edge-pm-blacklist li { display: inline-flex; align-items: center; margin: 0; border: 1px solid var(--edge-border); border-radius: 4px; background: var(--edge-surface); font-size: 14px; list-style: none; }
.edge-modern .edge-pm-blacklist li a { padding: 5px 10px; color: var(--edge-text); text-decoration: none; }
.edge-modern .edge-pm-blacklist li a.edge-pm-blacklist__remove { padding: 5px 9px; border-left: 1px solid var(--edge-border); color: var(--edge-text-muted); }
.edge-modern .edge-pm-blacklist li a.edge-pm-blacklist__remove:hover { background: var(--edge-danger-low); color: var(--edge-danger); }

}
.edge-modern.edge-ucp .nodata { margin: 16px 0; color: var(--edge-text-muted); }
.edge-modern.edge-ucp .pipe { margin: 0 6px; color: var(--edge-border); }
.edge-modern.edge-ucp .lightlink { color: var(--edge-link); }

/* 通知 / 我的 等页面：页内标题由主导航表达（Discourse 无重复大标题），页内筛选改为次级胶囊。 */
.edge-modern.edge-ucp .itemtitle > h1, .edge-modern.edge-ucp .itemtitle > .left > h1 { display: none; }
.edge-modern.edge-ucp .itemtitle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; background: none; }
.edge-modern.edge-ucp .itemtitle ul { display: flex; flex-wrap: wrap; gap: 6.96px; margin: 0; padding: 0; list-style: none; }
.edge-modern.edge-ucp .itemtitle ul li { float: none; margin: 0; padding: 0; border: 0; background: none; list-style: none; }
.edge-modern.edge-ucp .itemtitle ul li a { position: relative; display: block; padding: 7px 10.4px; border-radius: 4px; background: none; color: var(--edge-text); font-size: 13.93px; line-height: 1.2; }
.edge-modern.edge-ucp .itemtitle ul li a span { background: none; padding: 0; }
.edge-modern.edge-ucp .itemtitle ul li a:hover { background: var(--edge-surface-active); }
.edge-modern.edge-ucp .itemtitle ul li.current a { background: var(--edge-surface-active); color: var(--edge-primary); }
.edge-modern.edge-ucp .itemtitle ul li.pipe { display: none; }
.edge-modern.edge-ucp .itemtitle .right { float: none; margin-left: auto; }
.edge-modern.edge-ucp .itemtitle select { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.edge-modern.edge-ucp .datatable, .edge-modern.edge-ucp .mainbox table { width: 100% !important; }
.edge-modern.edge-ucp .datatable thead th, .edge-modern.edge-ucp .datatable thead td, .edge-modern.edge-ucp .mainbox table thead td, .edge-modern.edge-ucp .mainbox table thead th, .edge-modern.edge-ucp .datatable tr.header td, .edge-modern.edge-ucp .datatable tr.colplural td { background: transparent !important; }

/* ---------- 2026-09-25 第二轮：个人中心布局与列表 ---------- */
/* Legacy #wrap.with_side 是两列 grid，侧栏隐藏后仍占 220px，导致内容只有一半宽。 */
.edge-modern.edge-ucp #wrap { display: block !important; grid-template-columns: minmax(0,1fr) !important; }
/* 三级筛选（主题/版块、全部/系统消息…）：统一为与二级导航左对齐的胶囊组。 */
.edge-modern.edge-ucp .itemtitle { margin: 0 0 16px; }
.edge-modern.edge-ucp .itemtitle:not(:has(ul, select, .right, a, button)) { display: none; }
/* Legacy “暂无数据”统一为空状态卡片。 */
.edge-modern.edge-ucp p.nodata, .edge-modern.edge-ucp .datatable .nodata { display: grid; justify-items: center; gap: 8px; margin: 0; padding: 40px 16px; border: 1px dashed var(--edge-border-light); border-radius: 8px; color: var(--edge-text-muted); font-size: 14px; text-align: center; }
.edge-modern.edge-ucp p.nodata::before, .edge-modern.edge-ucp .datatable .nodata::before { content: "\f01c"; font: 30px/1 FontAwesome; }
.edge-modern.edge-ucp .itemtitle ul li a { display: inline-flex; min-height: 32px; box-sizing: border-box; align-items: center; padding: 6px 12px; border: 1px solid transparent; font-size: 14px; }
.edge-modern.edge-ucp .itemtitle ul li.current a { border-color: var(--edge-border-light); font-weight: 600; }

/* 收藏 / 关注列表：对应 Discourse 话题表（标题 + 类别 / 数字列 / 活动），右侧单行操作。 */
.edge-ucp-list { margin: 0; }
.edge-ucp-list__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 38px; margin: 0 0 8px; }
.edge-ucp-list__count { color: var(--edge-text-secondary); font-size: 14px; }
.edge-ucp-list__toolbar .edge-btn { min-height: 32px; margin-left: auto; padding: 5px 10px; font-size: 14px; }
.edge-ucp-list__toolbar .edge-btn:disabled { opacity: .45; cursor: not-allowed; }
.edge-ucp-list__toolbar .edge-btn.is-loading { opacity: .7; cursor: progress; }
.edge-modern .edge-ucp-list__filter { display: inline-flex; align-items: center; gap: 6px; color: var(--edge-text-secondary) !important; font-size: 14px; text-decoration: none !important; }
.edge-modern .edge-ucp-list__filter:hover, .edge-modern .edge-ucp-list__filter.is-active { color: var(--edge-primary) !important; }
.edge-ucp-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--edge-text-secondary); font-size: 14px; cursor: pointer; }
.edge-ucp-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--edge-primary); cursor: pointer; }
.edge-ucp-table { border-top: 1px solid var(--edge-border-light); }
.edge-ucp-table__head, .edge-ucp-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 68px 180px 36px; align-items: center; column-gap: 8px; }
.edge-ucp-table--forums .edge-ucp-table__head, .edge-ucp-table--forums .edge-ucp-row { grid-template-columns: 28px minmax(0,1fr) 68px 68px 68px 36px; }
.edge-ucp-table__head { padding: 10px 4px; border-bottom: 1px solid var(--edge-border-light); color: var(--edge-text-muted); font-size: 14px; }
.edge-ucp-table__head .is-num, .edge-ucp-row__num { text-align: center; }
.edge-ucp-row { box-sizing: border-box; padding: 12px 4px; border-bottom: 1px solid var(--edge-border-light); transition: background-color .12s ease, opacity .2s ease; }
.edge-ucp-row:hover { background: var(--edge-surface-hover); }
.edge-ucp-row.is-selected { background: color-mix(in srgb, var(--edge-primary) 8%, transparent); }
.edge-ucp-row.is-removing { opacity: .45; pointer-events: none; }
.edge-ucp-row.is-collapsing { height: 0 !important; padding-top: 0; padding-bottom: 0; overflow: hidden; border-bottom-width: 0; opacity: 0; transition: height .2s ease, padding .2s ease, opacity .15s ease; }
.edge-ucp-row__main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.edge-modern .edge-ucp-row__title { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; color: var(--edge-text-primary) !important; font-size: 17px; line-height: 22px; text-decoration: none !important; }
.edge-modern .edge-ucp-row__title:visited { color: var(--edge-text-secondary) !important; }
.edge-modern .edge-ucp-row__title:hover { color: var(--edge-link) !important; }
.edge-ucp-row.is-unread .edge-ucp-row__title { flex: 0 1 auto; font-weight: 600; }
.edge-ucp-row__badge { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--edge-primary); color: var(--edge-primary-fg); font-size: 11px; font-weight: 700; }
.edge-ucp-row.is-unread .edge-ucp-row__main { row-gap: 4px; }
.edge-ucp-row.is-unread .edge-category-label { flex-basis: 100%; }
.edge-ucp-row__num { color: var(--edge-text-secondary); font-size: 15px; font-variant-numeric: tabular-nums; }
.edge-ucp-row__num.is-hot { color: var(--edge-highlight); font-weight: 600; }
.edge-ucp-row__last { display: grid; min-width: 0; color: var(--edge-text-secondary); font-size: 13px; line-height: 18px; }
.edge-ucp-row__last > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edge-modern .edge-ucp-row__last a { color: var(--edge-text-secondary) !important; }
.edge-modern .edge-ucp-row__last a:hover { color: var(--edge-link) !important; }
.edge-ucp-row__time { color: var(--edge-text-muted) !important; }
.edge-ucp-row__remove { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--edge-text-muted); font-size: 14px; cursor: pointer; opacity: .55; }
.edge-ucp-row:hover .edge-ucp-row__remove, .edge-ucp-row__remove:focus-visible { opacity: 1; }
.edge-ucp-row__remove:hover, .edge-ucp-row__remove:focus-visible { outline: none; background: var(--edge-danger-low); color: var(--edge-danger); }
.edge-ucp-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; border: 1px dashed var(--edge-border-light); border-radius: 8px; color: var(--edge-text-muted); text-align: center; }
.edge-ucp-empty .fa { font-size: 32px; }
.edge-ucp-empty h3 { margin: 4px 0 0 !important; color: var(--edge-text-primary) !important; font-size: 17px !important; font-weight: 600 !important; line-height: 24px !important; }
.edge-ucp-empty p { max-width: 420px; margin: 0; font-size: 14px; line-height: 22px; }
.edge-ucp-empty .edge-btn { margin-top: 6px; }
@media (max-width: 720px) {
  .edge-ucp-table__head { display: none; }
  .edge-ucp-row, .edge-ucp-table--forums .edge-ucp-row { grid-template-columns: 28px minmax(0,1fr) 34px; row-gap: 6px; }
  .edge-ucp-row__num, .edge-ucp-row__last { display: none; }
  .edge-ucp-row__remove { grid-column: 3; grid-row: 1; opacity: 1; }
}
.edge-modern.edge-ucp .edge-ucp-list__toolbar button.edge-btn--danger { border: 1px solid transparent; background: var(--edge-danger); color: #fff; opacity: 1; }
.edge-modern.edge-ucp .edge-ucp-list__toolbar button.edge-btn--danger:hover { background: color-mix(in srgb, var(--edge-danger) 86%, #000); }
.edge-modern.edge-ucp .edge-ucp-list__toolbar button.edge-btn--danger:disabled { border-color: var(--edge-border); background: transparent; color: var(--edge-text-muted); cursor: not-allowed; }
/* 积分页：区块标题 = Discourse 用户概要的小节标题；“我的积分”= 统计数字；“积分管理”= 对齐的表单行。 */
.edge-modern.edge-ucp .datalist > .c_header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 0; border: 0; background: none; }
.edge-modern.edge-ucp .datalist > .c_header h3 { margin: 0 !important; color: var(--edge-text-primary) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: .02em; line-height: 22px !important; text-transform: uppercase; }
.edge-modern.edge-ucp .datalist > .c_header .c_header_action a { color: var(--edge-link); font-size: 14px; }
.edge-modern.edge-ucp .datalist > table.datatable:first-of-type { margin-bottom: 28px !important; border-top: 0; }
.edge-modern.edge-ucp .datalist > table.datatable:first-of-type th, .edge-modern.edge-ucp .datalist > table.datatable:first-of-type td { width: 20%; padding: 4px 8px 4px 0 !important; border: 0 !important; }
.edge-modern.edge-ucp .datalist > table.datatable:first-of-type tr.colplural th { color: var(--edge-text-secondary) !important; font-size: 14px !important; font-weight: 400 !important; }
.edge-modern.edge-ucp .datalist > table.datatable:first-of-type tr + tr td { color: var(--edge-text-primary) !important; font-size: 24px !important; font-weight: 700; line-height: 32px; font-variant-numeric: tabular-nums; }
.edge-modern.edge-ucp .creditstable { border-top: 1px solid var(--edge-border-light); }
.edge-modern.edge-ucp .creditstable tr { display: grid; grid-template-columns: 72px minmax(160px,1fr) 56px minmax(160px,1fr) minmax(160px,1.1fr); align-items: start; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--edge-border-light); }
.edge-modern.edge-ucp .creditstable td { display: block; padding: 0 !important; border: 0 !important; font-size: 14px !important; }
.edge-modern.edge-ucp .creditstable .cre_title { padding-top: 9px !important; color: var(--edge-text-primary) !important; font-weight: 600; }
.edge-modern.edge-ucp .creditstable .cre_arrow { padding-top: 9px !important; color: var(--edge-text-muted) !important; }
.edge-modern.edge-ucp .creditstable .cre_opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.edge-modern.edge-ucp .creditstable .cre_opt input.txt { width: 88px; min-height: 36px; font-size: 15px; }
.edge-modern.edge-ucp .creditstable .cre_opt input#to { width: 100%; }
.edge-modern.edge-ucp .creditstable .cre_opt select { min-height: 36px; padding: 6px 28px 6px 10px; font-size: 14px; }
.edge-modern.edge-ucp .creditstable .cre_btn { flex-basis: 100%; margin: 4px 0 0; }
.edge-modern.edge-ucp .creditstable .cre_btn .submit { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.edge-modern.edge-ucp .creditstable td:last-child { color: var(--edge-text-secondary) !important; font-size: 13px !important; line-height: 20px; }
@media (max-width: 760px) {
  .edge-modern.edge-ucp .creditstable tr { grid-template-columns: minmax(0,1fr); row-gap: 8px; }
  .edge-modern.edge-ucp .creditstable .cre_title, .edge-modern.edge-ucp .creditstable .cre_arrow { padding-top: 0 !important; }
}

/* ==========================================================================
   2026-09-26 第三轮：勋章中心 / 任务 / 道具 / 邀请 / 用户组
   ========================================================================== */
/* 通用：页内小节标题与“展开”开关、提示条、Legacy 残留的空状态与嵌套 nodata。 */
.edge-modern.edge-ucp .datalist { margin: 0 0 28px !important; }
.edge-modern.edge-ucp .c_header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; padding: 0; border: 0; background: none; }
.edge-modern.edge-ucp .c_header h3 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--edge-text-primary) !important; font-size: 15px !important; font-weight: 700 !important; line-height: 22px !important; cursor: default; }
.edge-modern.edge-ucp .c_header .c_header_ctrlbtn { margin: 0; color: var(--edge-link); font-size: 13px; cursor: pointer; user-select: none; }
.edge-modern.edge-ucp .c_header .c_header_ctrlbtn:hover { text-decoration: underline; }
.edge-modern.edge-ucp .c_header_ext { color: var(--edge-text-muted); font-size: 13px; }
.edge-modern.edge-ucp .channelinfo { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--edge-primary); border-radius: 0 4px 4px 0; background: var(--edge-primary-low); color: var(--edge-text-secondary); font-size: 14px; line-height: 22px; }
.edge-modern.edge-ucp .channelinfo:empty { display: none; }
.edge-modern.edge-ucp .channelinfo ul { margin: 0; padding-left: 1.2em; }
.edge-modern.edge-ucp p.nodata:empty, .edge-modern.edge-ucp .datatable .nodata:empty { display: none; }
.edge-modern.edge-ucp .datatable th:has(> p.nodata), .edge-modern.edge-ucp .datatable td:has(> p.nodata) { padding: 0 !important; border: 0 !important; }

/* 邀请页：c_header 里的红色警示改为提示条样式，不再用大号红字。 */
.edge-modern.edge-ucp.edge-page-invite .c_header h3 + h3 { flex: 1 1 100%; order: 3; }
.edge-modern.edge-ucp.edge-page-invite .c_header h3 font, .edge-modern.edge-ucp.edge-page-invite .c_header h3 b { display: block; padding: 8px 12px; border-left: 3px solid var(--edge-danger); border-radius: 0 4px 4px 0; background: var(--edge-danger-low); color: var(--edge-danger) !important; font-size: 13px; font-weight: 500; line-height: 20px; }
.edge-modern.edge-ucp.edge-page-invite .c_header h3 font b { padding: 0; border: 0; background: none; }
.edge-modern.edge-ucp.edge-page-invite input.invitecode { width: 260px; font-family: var(--font-family-roboto-mono); font-size: 14px; cursor: copy; }
.edge-modern.edge-ucp.edge-page-invite input.invitecode.marked { color: var(--edge-text-muted); text-decoration: line-through; }
.edge-modern.edge-ucp.edge-page-invite #amount { width: 120px; }
.edge-modern.edge-ucp .avt_list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.edge-modern.edge-ucp .avt_list li { display: grid; justify-items: center; gap: 6px; width: 72px; margin: 0; font-size: 13px; text-align: center; }
.edge-modern.edge-ucp .avt_list img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* 勋章中心：工具栏 + 卡片网格；已拥有高亮、审核中提示，操作按钮统一 Discourse 按钮。 */
.edge-medal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; }
.edge-medal-toolbar__count { margin: 0; color: var(--edge-text-secondary); font-size: 14px; }
.edge-medal-toolbar__count strong { color: var(--edge-text-primary); font-variant-numeric: tabular-nums; }
.edge-medal-toolbar__admin { display: flex; flex-wrap: wrap; gap: 8px; }
.edge-modern .edge-medal-toolbar .edge-btn { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.edge-medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.edge-medal-card { position: relative; display: grid; grid-template-columns: 56px minmax(0,1fr); grid-template-rows: 1fr auto; column-gap: 14px; row-gap: 12px; box-sizing: border-box; min-width: 0; padding: 16px; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.edge-medal-card:hover { border-color: var(--edge-border); box-shadow: 0 4px 14px rgba(0,0,0,.06); transform: translateY(-1px); }
.edge-medal-card.is-owned { border-color: color-mix(in srgb, var(--edge-success) 45%, var(--edge-border-light)); background: color-mix(in srgb, var(--edge-success) 5%, var(--edge-surface)); }
.edge-medal-card__image { display: grid; grid-row: 1 / span 2; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: var(--edge-surface-active); }
.edge-medal-card__image img { display: block; max-width: 40px; max-height: 40px; object-fit: contain; }
.edge-medal-card:not(.is-owned) .edge-medal-card__image img { filter: saturate(.75); }
.edge-medal-card__body { min-width: 0; }
.edge-modern.edge-ucp .edge-medal-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px !important; color: var(--edge-text-primary) !important; font-size: 16px !important; font-weight: 600 !important; line-height: 22px !important; }
.edge-medal-card__tag { padding: 0 6px; border-radius: 999px; background: var(--edge-surface-active); color: var(--edge-text-muted); font-size: 12px; font-weight: 400; line-height: 20px; }
.edge-medal-card__desc { margin: 0; color: var(--edge-text-secondary); font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.edge-medal-card__cond { margin: 8px 0 0; color: var(--edge-text-secondary); font-size: 13px; line-height: 20px; }
.edge-medal-card__cond > span:first-child { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 3px; background: var(--edge-primary-low); color: var(--edge-primary); font-size: 12px; }
.edge-medal-card__cond b { color: var(--edge-highlight); font-weight: 600; }
.edge-medal-card__action { display: flex; align-items: center; min-height: 32px; }
.edge-modern .edge-medal-card__action .edge-btn { min-height: 32px; padding: 5px 12px; font-size: 14px; }
.edge-medal-state { display: inline-flex; align-items: center; gap: 6px; color: var(--edge-text-muted); font-size: 13px; }
.edge-medal-state.is-owned { color: var(--edge-success); font-weight: 600; }
.edge-medal-state.is-pending { color: var(--edge-highlight); }
.edge-medal-center .pages_btns { margin-top: 16px; }

/* 任务：一行一个任务（图标 / 名称 + 进度 / 奖励 / 操作），按钮文字替代旧版 GIF 按钮。 */
.edge-task-list { border-top: 1px solid var(--edge-border-light); }
.edge-task { display: grid; grid-template-columns: 48px minmax(0,1fr) minmax(140px,220px) 120px; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--edge-border-light); transition: background-color .12s ease; }
.edge-task:hover { background: var(--edge-surface-hover); }
.edge-task__icon img { display: block; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.edge-modern.edge-ucp .edge-task__name { margin: 0 !important; font-size: 16px !important; font-weight: 600 !important; line-height: 22px !important; }
.edge-modern.edge-ucp .edge-task__name a { color: var(--edge-text-primary) !important; text-decoration: none; }
.edge-modern.edge-ucp .edge-task__name a:hover { color: var(--edge-link) !important; }
.edge-task__meta { margin: 2px 0 0; font-size: 13px; }
.edge-modern.edge-ucp .edge-task__meta a { color: var(--edge-text-muted) !important; }
.edge-task__progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--edge-text-muted); font-size: 12px; white-space: nowrap; }
.edge-task__bar { flex: 1 1 auto; max-width: 260px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--edge-surface-active); }
.edge-task__bar .optionbar { height: 100%; border-radius: inherit; background: var(--edge-primary); transition: width .3s ease; }
.edge-task__reward { display: grid; gap: 2px; min-width: 0; }
.edge-task__label { color: var(--edge-text-muted); font-size: 12px; }
.edge-task__prize { overflow: hidden; color: var(--edge-highlight); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.edge-task__action { display: flex; justify-content: flex-end; }
.edge-task__action p { margin: 0; }
.edge-modern .edge-task__action .edge-btn { min-height: 32px; padding: 5px 12px; font-size: 14px; }
.edge-modern .edge-task__action .edge-btn.is-disabled { color: var(--edge-text-muted); cursor: not-allowed; }
.edge-task__done { margin: 0; color: var(--edge-text-muted); font-size: 12px; line-height: 18px; text-align: right; }

/* 道具：首页/商店/我的道具统一卡片网格（Legacy 为两列浮动 + 空 li 清浮动）。 */
.edge-modern.edge-ucp .mymagic { margin: 0 0 24px; }
.edge-modern.edge-ucp .mymagic > ul.inlinelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.edge-modern.edge-ucp .mymagic > ul.inlinelist > li { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 14px; float: none; width: auto; height: auto; margin: 0; padding: 14px; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); list-style: none; transition: border-color .15s ease, box-shadow .15s ease; }
.edge-modern.edge-ucp .mymagic > ul.inlinelist > li:hover { border-color: var(--edge-border); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.edge-modern.edge-ucp .mymagic > ul.inlinelist > li.clear { display: none; }
.edge-modern.edge-ucp .mymagic > ul.inlinelist > li.clear:has(.pages_btns), .edge-modern.edge-ucp .mymagic > ul.inlinelist > li:only-child { display: block; grid-column: 1 / -1; border-style: dashed; color: var(--edge-text-muted); text-align: center; }
.edge-modern.edge-ucp .mymagic .magicimg { float: none; width: 56px; margin: 0; }
.edge-modern.edge-ucp .mymagic .magicimg img { display: block; width: 56px; height: 56px; object-fit: contain; }
.edge-modern.edge-ucp .mymagic .magicdetail { float: none; width: auto; min-width: 0; margin: 0; }
.edge-modern.edge-ucp .mymagic .magicdetail h5 { margin: 0 0 4px; color: var(--edge-text-primary); font-size: 15px; font-weight: 600; line-height: 22px; }
.edge-modern.edge-ucp .mymagic .magicdetail p { margin: 0 0 6px; color: var(--edge-text-secondary); font-size: 13px; line-height: 20px; }
.edge-modern.edge-ucp .mymagic .magicdetail p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; }
.edge-modern.edge-ucp .mymagic .magicdetail strong { color: var(--edge-highlight); font-weight: 600; }
.edge-modern.edge-ucp .mymagic .magicdetail a { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid var(--edge-border); border-radius: 4px; color: var(--edge-text-secondary) !important; font-size: 13px; text-decoration: none; }
.edge-modern.edge-ucp .mymagic .magicdetail a:hover { border-color: var(--edge-primary); color: var(--edge-primary) !important; }
.edge-modern.edge-ucp .mymagic .magicdetail a:first-of-type { border-color: transparent; background: var(--edge-primary); color: var(--edge-primary-fg) !important; }
.edge-modern.edge-ucp .mymagic .magicdetail a:first-of-type:hover { background: var(--edge-primary-hover); }

@media (max-width: 760px) {
  .edge-task { grid-template-columns: 40px minmax(0,1fr); gap: 8px 12px; }
  .edge-task__icon img { width: 40px; height: 40px; }
  .edge-task__reward, .edge-task__action { grid-column: 2; justify-content: flex-start; }
  .edge-task__done { text-align: left; }
  .edge-medal-grid { grid-template-columns: minmax(0,1fr); }
}

/* ==========================================================================
   2026-09-26 设置页重排：左标签 / 右控件的两栏行，细线分隔，说明文字紧贴控件，底部吸附保存栏。
   旧版 21px 灰色粗标题 + 大段留白显得松散，改为标签 15px 主文字色，信息密度与现代设置页一致。
   ========================================================================== */
.edge-pref { max-width: 880px; }
.edge-pref > form > .channelinfo, .edge-pref .channelinfo { max-width: none; margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--edge-primary); border-radius: 0 4px 4px 0; background: var(--edge-primary-low); color: var(--edge-text-secondary); font-size: 14px; line-height: 22px; }
.edge-pref .edge-pref__groups, .edge-pref form > .control-group:first-of-type { border-top: 1px solid var(--edge-border-light); }
.edge-pref .control-group { display: grid; grid-template-columns: 180px minmax(0,1fr); column-gap: 32px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--edge-border-light); }
.edge-pref .control-group > .control-label { grid-column: 1; grid-row: 1 / span 6; align-self: start; margin: 0; padding-top: 9px; color: var(--edge-text-primary); font-size: 15px; font-weight: 600; line-height: 20px; }
.edge-pref .control-group > .control-label label a { font-size: 13px; }
.edge-pref .control-group > :not(.control-label) { grid-column: 2; min-width: 0; }
.edge-pref .control-group > .control-label:empty + .controls { padding-top: 0; }
.edge-pref .control-group > .controls + .controls, .edge-pref .control-group > .instructions { max-width: 560px; margin: 6px 0 0; color: var(--edge-text-muted); font-size: 13px; line-height: 20px; }
.edge-pref .controls input.txt, .edge-pref .controls input[type="text"], .edge-pref .controls input[type="password"], .edge-pref .controls input[type="email"], .edge-pref .controls select, .edge-pref .controls > input[type="text"], .edge-pref .controls > select, .edge-pref .edge-pref__input { width: 100%; max-width: 440px; min-height: 38px; font-size: 15px; }
.edge-pref .controls textarea.txtarea, .edge-pref .controls > textarea, .edge-pref .controls .editor_tb, .edge-pref .controls .editor_tb + textarea, .edge-pref .edge-pref__editor, .edge-pref #signaturepreview:not(:empty), .edge-pref #biopreview:not(:empty) { width: 100% !important; max-width: 560px; }
.edge-pref .controls > label, .edge-pref .radio-row label { margin: 0 20px 0 0; padding: 7px 0; color: var(--edge-text-primary); font-size: 15px; }
.edge-pref .controls:has(> label) { row-gap: 2px; }
.edge-pref .save-button { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--edge-border-light); background: var(--edge-bg); }
.edge-pref .control-group + .save-button { border-top: 0; }
.edge-modern .edge-pref .save-button .edge-btn { min-width: 112px; }
@media (max-width: 760px) {
  .edge-pref .control-group { grid-template-columns: minmax(0,1fr); padding: 14px 0; }
  .edge-pref .control-group > .control-label { grid-row: auto; margin: 0 0 8px; padding-top: 0; }
  .edge-pref .control-group > :not(.control-label) { grid-column: 1; }
}

/* ==========================================================================
   积分兑换 / 登录记录（Modern 模板）：统计卡 + 卡片区块 + 行式列表，全部走主题 Token，暗色无白块。
   ========================================================================== */
.edge-status { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--edge-surface-active); color: var(--edge-text-secondary); font-size: 12px; font-style: normal; font-weight: 600; line-height: 20px; white-space: nowrap; }
.edge-status .fa { font-size: 11px; }
.edge-status.is-success { background: color-mix(in srgb, var(--edge-success) 14%, transparent); color: var(--edge-success); }
.edge-status.is-warning, .edge-status.is-pending { background: color-mix(in srgb, var(--edge-highlight) 16%, transparent); color: var(--edge-highlight); }
.edge-status.is-danger { background: var(--edge-danger-low); color: var(--edge-danger); }

.edge-exchange__stats, .edge-logins__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 16px; }
.edge-exchange__stat, .edge-logins__stat { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); }
.edge-exchange__stat span, .edge-logins__stat span { color: var(--edge-text-muted); font-size: 13px; }
.edge-exchange__stat strong, .edge-logins__stat strong { color: var(--edge-text-primary); font-size: 24px; font-weight: 700; line-height: 32px; font-variant-numeric: tabular-nums; }
.edge-exchange__stat em, .edge-logins__stat em { color: var(--edge-text-muted); font-size: 12px; font-style: normal; }
.edge-logins__stat.is-warning strong { color: var(--edge-highlight); }
.edge-logins__stat.is-danger strong { color: var(--edge-danger); }

.edge-exchange__card, .edge-logins__card { margin: 0 0 16px; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); }
.edge-exchange__head, .edge-logins__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--edge-border-light); }
.edge-modern.edge-ucp .edge-exchange__head h2, .edge-modern.edge-ucp .edge-logins__head h2 { margin: 0; color: var(--edge-text-primary); font-size: 16px; font-weight: 700; line-height: 24px; }
.edge-logins__head span { color: var(--edge-text-muted); font-size: 13px; }
.edge-modern .edge-exchange__head .edge-btn { min-height: 32px; padding: 5px 10px; font-size: 14px; }
.edge-exchange__rules { margin: 0; padding: 14px 16px 0 34px; color: var(--edge-text-secondary); font-size: 14px; line-height: 24px; }
.edge-exchange__rules b { color: var(--edge-text-primary); }
.edge-exchange__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; }
.edge-exchange__field { display: grid; gap: 6px; flex: 0 1 200px; color: var(--edge-text-secondary); font-size: 13px; }
.edge-modern.edge-ucp .edge-exchange__field input { width: 100%; font-variant-numeric: tabular-nums; }
.edge-modern.edge-ucp .edge-exchange__field input[readonly] { background: var(--edge-surface-active); color: var(--edge-text-primary); font-weight: 600; cursor: default; }
.edge-exchange__arrow { padding-bottom: 10px; color: var(--edge-text-muted); }
.edge-exchange__pages, .edge-logins__pages { padding: 12px 16px; }
.edge-exchange__pages a, .edge-exchange__pages strong { display: inline-grid; min-width: 30px; height: 30px; place-items: center; margin-right: 4px; border-radius: 4px; font-size: 13px; }
.edge-exchange__pages strong { background: var(--edge-primary); color: var(--edge-primary-fg); }
.edge-exchange__pages a:hover { background: var(--edge-surface-active); }

.edge-exchange__table, .edge-logins__table { display: grid; }
.edge-exchange__row, .edge-logins__row { display: grid; align-items: center; column-gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--edge-border-light); font-size: 14px; transition: background-color .12s ease; }
.edge-exchange__row { grid-template-columns: minmax(140px,1.2fr) 100px 100px minmax(160px,1.4fr); }
.edge-logins__row { grid-template-columns: 150px minmax(170px,1.2fr) minmax(130px,1fr) minmax(160px,1.2fr); }
.edge-exchange__row:last-child, .edge-logins__row:last-child { border-bottom: 0; }
.edge-exchange__row:not(.is-head):hover, .edge-logins__row:not(.is-head):hover { background: var(--edge-surface-hover); }
.edge-exchange__row.is-head, .edge-logins__row.is-head { padding-top: 10px; padding-bottom: 10px; color: var(--edge-text-muted); font-size: 13px; }
.edge-exchange__id { font-family: var(--font-family-roboto-mono); font-size: 13px; }
.edge-exchange__reason { display: block; margin-top: 4px; color: var(--edge-text-muted); font-size: 12px; line-height: 18px; }
.edge-logins__row.is-danger { box-shadow: inset 3px 0 0 var(--edge-danger); }
.edge-logins__row.is-warning { box-shadow: inset 3px 0 0 var(--edge-highlight); }
.edge-logins__time { color: var(--edge-text-primary); font-variant-numeric: tabular-nums; }
.edge-logins__ip { display: grid; gap: 2px; min-width: 0; }
.edge-logins__ip code { color: var(--edge-text-primary); font: 13px/20px var(--font-family-roboto-mono); background: none; padding: 0; }
.edge-logins__ip small, .edge-logins__ua { overflow: hidden; color: var(--edge-text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.edge-logins__ua { font-size: 13px; color: var(--edge-text-secondary); }
.edge-logins__risk { display: flex; flex-wrap: wrap; gap: 4px; }
.edge-logins__alerts { display: grid; gap: 8px; margin: 0 0 16px; }
.edge-logins__alert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 10px 14px; border-radius: 6px; font-size: 14px; line-height: 20px; }
.edge-logins__alert.is-danger { background: var(--edge-danger-low); color: var(--edge-danger); }
.edge-logins__alert.is-warning { background: color-mix(in srgb, var(--edge-highlight) 12%, transparent); color: var(--edge-highlight); }
.edge-logins__alert span { color: var(--edge-text-secondary); }
.edge-logins__alert a { margin-left: auto; color: inherit !important; font-weight: 600; }
.edge-logins__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; border-top: 1px solid var(--edge-border-light); color: var(--edge-text-muted); font-size: 12px; }
.edge-logins__legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .edge-exchange__row, .edge-logins__row { grid-template-columns: minmax(0,1fr) auto; row-gap: 4px; }
  .edge-exchange__row.is-head, .edge-logins__row.is-head { display: none; }
  .edge-logins__ua, .edge-exchange__row > span:nth-child(3) { display: none; }
  .edge-exchange__arrow { display: none; }
}
.edge-modern.edge-ucp .edge-exchange__field input { box-sizing: border-box; height: 40px; min-height: 40px; padding: 8px 12px; font-size: 15px; }
.edge-modern .edge-exchange__form .edge-btn { height: 40px; min-height: 40px; }
.edge-exchange__stat, .edge-logins__stat { align-content: start; }
.edge-exchange__card > .edge-ucp-empty, .edge-logins__card > .edge-ucp-empty { border: 0; border-radius: 0; }
/* 棱星提现：收款方式为分段选择器，字段按方式切换；记录表 5 列。 */
.edge-withdraw { display: grid; gap: 16px; padding: 16px; }
.edge-withdraw .edge-exchange__field { max-width: 320px; }
.edge-withdraw__types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.edge-withdraw__types legend { width: 100%; margin: 0 0 6px; padding: 0; color: var(--edge-text-secondary); font-size: 13px; }
.edge-withdraw__type { position: relative; cursor: pointer; }
.edge-withdraw__type input { position: absolute; opacity: 0; pointer-events: none; }
.edge-withdraw__type span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--edge-border); border-radius: 6px; background: var(--edge-surface); color: var(--edge-text-secondary); font-size: 14px; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.edge-withdraw__type:hover span { border-color: var(--edge-text-muted); color: var(--edge-text-primary); }
.edge-withdraw__type input:checked + span { border-color: var(--edge-primary); background: var(--edge-primary-low); color: var(--edge-primary); font-weight: 600; }
.edge-withdraw__type input:focus-visible + span { box-shadow: 0 0 0 2px color-mix(in srgb, var(--edge-primary) 30%, transparent); }
.edge-withdraw__fields { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.edge-withdraw__fields[hidden] { display: none; }
.edge-withdraw__fields .edge-exchange__field { flex: 1 1 220px; }
.edge-withdraw__hint { flex-basis: 100%; margin: 0; color: var(--edge-text-muted); font-size: 13px; }
.edge-withdraw__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--edge-text-muted); font-size: 13px; }
.edge-modern .edge-withdraw__submit .edge-btn { height: 40px; min-height: 40px; }
.edge-withdraw__table .edge-exchange__row { grid-template-columns: 70px 90px minmax(160px,1.6fr) 100px minmax(120px,1fr); }
.edge-withdraw__account { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.edge-withdraw__account small { color: var(--edge-text-muted); font-size: 12px; }

/* ==========================================================================
   2026-09-28：积分 / 用户组 / 邀请 / 认证管理
   与 edgecoin / edgestar 同一卡片语言：.edge-exchange__card（标题栏 + 内容 + 灰色说明行）
   ========================================================================== */
.edge-ucp-card { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); }
.edge-ucp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--edge-border-light); }
.edge-modern.edge-ucp .edge-ucp-card__head h2 { margin: 0; color: var(--edge-text-primary); font-size: 16px; font-weight: 700; line-height: 24px; }
.edge-ucp-card__meta { color: var(--edge-text-muted); font-size: 13px; }
.edge-ucp-card > .edge-ucp-empty { margin: 16px; }
.edge-credits__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.edge-modern.edge-ucp .edge-credits__title h2 { margin: 0; color: var(--edge-text-primary); font-size: 16px; font-weight: 700; }
.edge-credits__title a, .edge-credits__log { display: inline-flex; align-items: center; gap: 6px; color: var(--edge-link) !important; font-size: 13px; white-space: nowrap; }
.edge-credits__log i { transition: transform var(--edge-transition-fast); }
.edge-credits__log:hover i { transform: translateX(2px); }
.edge-credits__pair { display: flex; gap: 8px; }
.edge-modern.edge-ucp .edge-credits__pair input { flex: 0 0 110px; width: 110px; }
.edge-modern.edge-ucp .edge-credits__pair select { flex: 1 1 auto; min-width: 96px; height: 40px; }
.edge-modern.edge-ucp .edge-credits .edge-exchange__field { flex: 0 1 260px; }
.edge-modern.edge-ucp .edge-credits .edge-credits__to { flex: 1 1 220px; max-width: 320px; }
.edge-modern.edge-ucp .edge-credits input:disabled { background: var(--edge-surface-active); color: var(--edge-text-primary); font-weight: 600; opacity: 1; }
.edge-credits__need { display: flex; min-height: 40px; align-items: center; color: var(--edge-text-primary); font-size: 15px; font-weight: 600; }
.edge-credits__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--edge-border-light); background: var(--edge-surface-raised); color: var(--edge-text-muted); font-size: 13px; line-height: 20px; }
.edge-credits__meta:not(:has(span:not(:empty))) { display: none; }
.edge-credits__meta b { color: var(--edge-text-primary); }
.edge-credits__promo { display: grid; gap: 12px; padding: 16px; color: var(--edge-text-secondary); font-size: 14px; }
.edge-credits__promo p { margin: 0; }
.edge-credits__copy { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 0; }
.edge-credits__copy > span { color: var(--edge-text-muted); font-size: 13px; }
.edge-modern.edge-ucp .edge-credits__copy input { width: 100%; height: 38px; font: 13px/1 var(--font-family-roboto-mono, monospace); }
.edge-modern .edge-exchange__form .edge-btn:active, .edge-modern .edge-credits__copy .edge-btn:active { transform: translateY(1px); }

/* 用户组 */
.edge-groups__main { display: grid; grid-template-columns: 48px minmax(140px, 220px) minmax(0,1fr); align-items: center; gap: 16px; padding: 16px; }
.edge-groups__badge { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: var(--edge-primary-low); color: var(--edge-primary); font-size: 22px; }
.edge-groups__identity { display: grid; gap: 4px; min-width: 0; }
.edge-groups__identity strong { overflow: hidden; color: var(--edge-text-primary); font-size: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.edge-groups__stars img { width: 14px; height: 14px; vertical-align: -2px; }
.edge-groups__facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0; }
.edge-groups__facts dt { color: var(--edge-text-muted); font-size: 12px; }
.edge-groups__facts dd { margin: 2px 0 0; overflow: hidden; color: var(--edge-text-primary); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.edge-groups__table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.edge-modern.edge-ucp table.edge-groups__table { width: 100%; min-width: 620px; border-collapse: collapse; }
.edge-modern.edge-ucp .edge-groups__table :is(th, td) { padding: 11px 16px; border-bottom: 1px solid var(--edge-border-light); color: var(--edge-text-secondary); font-size: 14px; text-align: left; vertical-align: middle; white-space: nowrap; }
.edge-modern.edge-ucp .edge-groups__table th { background: var(--edge-surface-raised); color: var(--edge-text-muted); font-size: 13px; font-weight: 500; }
.edge-modern.edge-ucp .edge-groups__table tbody tr:last-child td { border-bottom: 0; }
.edge-modern.edge-ucp .edge-groups__table tbody tr { transition: background-color var(--edge-transition-fast); }
.edge-modern.edge-ucp .edge-groups__table tbody tr:hover { background: var(--edge-surface-hover); }
.edge-modern.edge-ucp .edge-groups__table tr.is-current { background: var(--edge-primary-low); }
.edge-modern.edge-ucp .edge-groups__table .edge-groups__name { width: 26%; color: var(--edge-text-primary); font-weight: 600; }
.edge-modern.edge-ucp .edge-groups__table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.edge-modern.edge-ucp .edge-groups__table .is-center { text-align: center; }
.edge-modern.edge-ucp .edge-groups__table .is-actions { width: 1%; text-align: right; }
.edge-groups__table .is-actions > * + * { margin-left: 14px; }
.edge-groups__table .is-actions a { color: var(--edge-link) !important; }
.edge-groups__table .is-actions a.is-danger { color: var(--edge-danger) !important; }
.edge-groups__owned { color: var(--edge-success); }
.edge-groups__you { margin-left: 8px; padding: 1px 6px; border-radius: var(--edge-radius-pill); background: var(--edge-primary); color: var(--edge-primary-fg); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.edge-groups__yes { color: var(--edge-success); }
.edge-groups__no { color: var(--edge-text-muted); }
.edge-groups__empty { margin: 0; padding: 20px 16px; color: var(--edge-text-muted); font-size: 14px; }
.edge-groups__fold + .edge-groups__fold { border-top: 1px solid var(--edge-border-light); }
.edge-groups__fold > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--edge-text-primary); font-size: 14px; font-weight: 650; list-style: none; cursor: pointer; user-select: none; transition: background-color var(--edge-transition-fast); }
.edge-groups__fold > summary::-webkit-details-marker { display: none; }
.edge-groups__fold > summary::before { content: "\f105"; width: 10px; color: var(--edge-text-muted); font-family: FontAwesome; transition: transform var(--edge-transition-fast); }
.edge-groups__fold[open] > summary::before { transform: rotate(90deg); }
.edge-groups__fold > summary:hover { background: var(--edge-surface-hover); }
.edge-groups__fold > summary em { margin-left: auto; color: var(--edge-text-muted); font-size: 12px; font-style: normal; font-weight: 400; }
.edge-groups__fold[open] > summary { border-bottom: 1px solid var(--edge-border-light); }

/* 邀请 */
.edge-invite__warning { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--edge-border-light); background: var(--edge-danger-low); color: var(--edge-danger); font-size: 13px; }
.edge-invite__flash:empty { display: none; }
.edge-invite__flash { margin: 12px 16px 0; padding: 10px 12px; border-radius: 6px; background: var(--edge-surface-raised); color: var(--edge-text-secondary); font-size: 14px; }
.edge-invite__flash .onright { color: var(--edge-success); }
.edge-invite__flash .onerror { color: var(--edge-danger); }
.edge-invite__table-wrap { overflow-x: auto; }
.edge-modern.edge-ucp table.edge-invite__table { width: 100%; min-width: 560px; border-collapse: collapse; }
.edge-modern.edge-ucp .edge-invite__table :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--edge-border-light); color: var(--edge-text-secondary); font-size: 14px; text-align: left; vertical-align: middle; white-space: nowrap; }
.edge-modern.edge-ucp .edge-invite__table th { background: var(--edge-surface-raised); color: var(--edge-text-muted); font-size: 13px; font-weight: 500; }
.edge-modern.edge-ucp .edge-invite__table tbody:last-child tr td { border-bottom: 0; }
.edge-modern.edge-ucp .edge-invite__table .edge-invite__row { transition: background-color var(--edge-transition-fast), opacity var(--edge-transition-fast); }
.edge-modern.edge-ucp .edge-invite__table .edge-invite__row:hover { background: var(--edge-surface-hover); }
.edge-modern.edge-ucp .edge-invite__table .edge-invite__row.is-expired { opacity: .55; }
.edge-modern.edge-ucp .edge-invite__table .edge-invite__check { width: 28px; padding-right: 0; }
.edge-invite__check input { width: 16px; height: 16px; margin: 0; accent-color: var(--edge-primary); }
.edge-modern.edge-ucp .edge-invite__code input.invitecode { box-sizing: border-box; width: 200px; height: 32px; min-height: 0; padding: 0 10px; border: 1px dashed var(--edge-border); border-radius: 4px; background: var(--edge-surface-raised); color: var(--edge-text-primary); font: 13px/1 var(--font-family-roboto-mono, monospace); letter-spacing: .02em; cursor: copy; }
.edge-modern.edge-ucp .edge-invite__code input.invitecode:hover { border-color: var(--edge-primary); }
.edge-modern.edge-ucp .edge-invite__row.is-marked .invitecode { color: var(--edge-text-muted); text-decoration: line-through; }
.edge-modern.edge-ucp .edge-invite__table .edge-invite__time { width: 90px; font-variant-numeric: tabular-nums; }
.edge-modern.edge-ucp .edge-invite__table .edge-invite__status { width: 72px; }
.edge-invite__tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--edge-primary-low); color: var(--edge-primary); font-size: 12px; }
.edge-invite__tag.is-sent { background: var(--edge-surface-active); color: var(--edge-text-muted); }
.edge-modern.edge-ucp .edge-invite__table .edge-invite__actions { width: 1%; text-align: right; }
.edge-invite__actions a + a { margin-left: 14px; }
.edge-invite__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.edge-invite__foot:has(> :not([style*="none"])) { padding: 12px 16px; border-top: 1px solid var(--edge-border-light); }
.edge-invite__tips { margin: 0; padding: 12px 16px 0 34px; color: var(--edge-text-secondary); font-size: 14px; line-height: 24px; }
.edge-invite__tips strong { color: var(--edge-text-primary); }
.edge-invite__buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 16px; }
.edge-invite__field { display: grid; gap: 6px; margin: 0; color: var(--edge-text-secondary); font-size: 13px; white-space: nowrap; }
.edge-modern.edge-ucp .edge-invite__field input { box-sizing: border-box; width: 120px; height: 40px; font-size: 15px; font-variant-numeric: tabular-nums; }
.edge-invite__total { display: grid; gap: 6px; min-width: 120px; color: var(--edge-text-secondary); font-size: 13px; white-space: nowrap; }
.edge-invite__total strong { display: flex; height: 40px; align-items: center; gap: 4px; color: var(--edge-text-primary); font-size: 15px; font-weight: 600; }
.edge-invite__total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.edge-modern.edge-ucp .edge-invite__submit { height: 40px; gap: 6px; white-space: nowrap; }
.edge-modern.edge-ucp .edge-invite__submit:active { transform: translateY(1px); }
.edge-modern.edge-ucp .edge-invite__submit.is-loading { opacity: .7; cursor: progress; }
#return_buyinvite.edge-invite__flash { margin: 0 16px 16px; }
.edge-invite__friends { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 16px; list-style: none; }
.edge-invite__friends a { display: grid; justify-items: center; gap: 6px; width: 72px; color: var(--edge-text-secondary); font-size: 12px; text-align: center; }
.edge-invite__friends img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.edge-invite__friends span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 认证管理（member_verification*，Legacy twitter-layout 收编）：
   侧栏“管理菜单”变成内容上方的分段标签，“使用说明”移到底部；内联浅色样式全部改走 Token。 */
.edge-modern.edge-ucp .twitter-layout { display: flex !important; flex-direction: column; gap: 16px; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.edge-modern.edge-ucp .twitter-layout > .twitter-sidebar { display: contents !important; }
.edge-modern.edge-ucp .twitter-layout .sidebar-card { box-sizing: border-box; width: auto !important; margin: 0 !important; }
.edge-modern.edge-ucp .twitter-layout .sidebar-card:has(.sidebar-menu) { order: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.edge-modern.edge-ucp .twitter-layout .sidebar-card:has(.sidebar-menu) > h3 { display: none; }
.edge-modern.edge-ucp .twitter-layout .sidebar-menu { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 !important; padding: 2px !important; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface-raised); list-style: none; }
.edge-modern.edge-ucp .twitter-layout .sidebar-menu li { margin: 0; padding: 0; list-style: none; }
.edge-modern.edge-ucp .twitter-layout .sidebar-menu a { display: block; padding: 6px 14px !important; border-radius: 6px; color: var(--edge-text-secondary) !important; font-size: 14px; white-space: nowrap; transition: background-color var(--edge-transition-fast), color var(--edge-transition-fast); }
.edge-modern.edge-ucp .twitter-layout .sidebar-menu a:hover { background: var(--edge-surface-hover) !important; color: var(--edge-text-primary) !important; }
.edge-modern.edge-ucp .twitter-layout .sidebar-menu a.active { background: var(--edge-surface) !important; color: var(--edge-text-primary) !important; font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.edge-modern.edge-ucp .twitter-layout .sidebar-card:not(:has(.sidebar-menu)) { order: 2; padding: 12px 16px !important; border: 1px solid var(--edge-border-light) !important; border-radius: 8px; background: var(--edge-surface-raised) !important; }
.edge-modern.edge-ucp .twitter-layout .sidebar-card:not(:has(.sidebar-menu)) h3 { margin: 0 0 6px !important; color: var(--edge-text-primary) !important; font-size: 13px !important; font-weight: 650; }
.edge-modern.edge-ucp .twitter-layout .sidebar-tips ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0 0 0 16px; color: var(--edge-text-muted); font-size: 13px; line-height: 1.7; }
.edge-modern.edge-ucp .twitter-layout > .twitter-main { order: 1; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.edge-modern.edge-ucp .twitter-main :is(.veri-header, .form-header) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--edge-border-light); border-bottom-color: var(--edge-border-light); border-radius: 8px 8px 0 0; background: var(--edge-surface); }
.edge-modern.edge-ucp .twitter-main :is(.veri-header, .form-header) h2 { margin: 0 !important; color: var(--edge-text-primary) !important; font-size: 16px !important; font-weight: 700; }
.edge-modern.edge-ucp .twitter-main :is(.btn-add, .btn-submit, .search-btn) { display: inline-flex; min-height: 34px; box-sizing: border-box; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--edge-primary); color: var(--edge-primary-fg) !important; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color var(--edge-transition-fast); }
.edge-modern.edge-ucp .twitter-main :is(.btn-add, .btn-submit, .search-btn):hover { background: var(--edge-primary-hover); text-decoration: none; }
.edge-modern.edge-ucp .twitter-main :is(.btn-add, .btn-submit, .search-btn, .btn-cancel):active { transform: translateY(1px); }
.edge-modern.edge-ucp .twitter-main .btn-cancel { display: inline-flex; min-height: 34px; align-items: center; padding: 0 14px; border: 1px solid var(--edge-border); border-radius: 6px; background: transparent; color: var(--edge-text-secondary) !important; font-size: 14px; }
.edge-modern.edge-ucp .twitter-main .btn-cancel:hover { background: var(--edge-surface-hover); text-decoration: none; }
.edge-modern.edge-ucp .twitter-main table.data-table { width: 100%; border: 1px solid var(--edge-border-light); border-top: 0; border-collapse: separate; border-spacing: 0; background: var(--edge-surface); font-size: 14px; }
.edge-modern.edge-ucp .twitter-main .data-table :is(th, td) { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--edge-border-light); color: var(--edge-text-secondary); text-align: left; vertical-align: middle; white-space: nowrap; }
.edge-modern.edge-ucp .twitter-main .data-table th { background: var(--edge-surface-raised); color: var(--edge-text-muted); font-size: 13px; font-weight: 500; }
.edge-modern.edge-ucp .twitter-main .data-table td:nth-child(3) { width: 100%; color: var(--edge-text-primary); white-space: normal; }
.edge-modern.edge-ucp .twitter-main .data-table tbody tr { transition: background-color var(--edge-transition-fast); }
.edge-modern.edge-ucp .twitter-main .data-table tbody tr:hover { background: var(--edge-surface-hover); }
.edge-modern.edge-ucp .twitter-main .data-table tbody tr:last-child td { border-bottom: 0; }
.edge-modern.edge-ucp .twitter-main .data-table:last-child { border-radius: 0 0 8px 8px; }
.edge-modern.edge-ucp .twitter-main .action-link { color: var(--edge-link) !important; font-size: 13px; }
.edge-modern.edge-ucp .twitter-main .action-link + .action-link { margin-left: 12px; }
.edge-modern.edge-ucp .twitter-main .action-link.danger { color: var(--edge-danger) !important; }
.edge-modern.edge-ucp .twitter-main .type-badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.edge-modern.edge-ucp .twitter-main .type-badge.image { background: var(--edge-primary-low); color: var(--edge-primary); }
.edge-modern.edge-ucp .twitter-main .type-badge.css { background: color-mix(in srgb, #7b1fa2 14%, transparent); color: color-mix(in srgb, #7b1fa2 70%, var(--edge-text-primary)); }
.edge-modern.edge-ucp .twitter-main .user-count { padding: 2px 8px; border-radius: 999px; background: var(--edge-surface-active); color: var(--edge-text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.edge-modern.edge-ucp .twitter-main td.preview-box { display: table-cell; }
.edge-modern.edge-ucp .twitter-main :is(.pages, .empty-state) { border: 1px solid var(--edge-border-light); border-top: 0; border-radius: 0 0 8px 8px; background: var(--edge-surface); color: var(--edge-text-muted); }
.edge-modern.edge-ucp .twitter-main .pages :is(a, strong) { border-color: var(--edge-border-light); color: var(--edge-link); }
.edge-modern.edge-ucp .twitter-main .pages strong { background: var(--edge-primary); color: var(--edge-primary-fg); border-color: var(--edge-primary); }
.edge-modern.edge-ucp .twitter-main :is(.form-body, .search-box) { padding: 20px 16px; border: 1px solid var(--edge-border-light); border-top: 0; background: var(--edge-surface); color: var(--edge-text-secondary); }
.edge-modern.edge-ucp .twitter-main .search-box { margin-bottom: 16px; border-top: 1px solid var(--edge-border-light); border-radius: 8px; }
.edge-modern.edge-ucp .twitter-main .search-box h3 { margin: 0 0 12px !important; color: var(--edge-text-primary) !important; font-size: 15px !important; }
.edge-modern.edge-ucp .twitter-main .search-form { display: flex; gap: 8px; }
.edge-modern.edge-ucp .twitter-main .form-footer { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border: 1px solid var(--edge-border-light); border-top: 0; border-radius: 0 0 8px 8px; background: var(--edge-surface-raised); }
.edge-modern.edge-ucp .twitter-main .form-group { margin: 0 0 16px; }
.edge-modern.edge-ucp .twitter-main .form-label { display: block; margin: 0 0 6px; color: var(--edge-text-primary); font-size: 14px; font-weight: 600; }
.edge-modern.edge-ucp .twitter-main .form-hint { margin-top: 4px; color: var(--edge-text-muted); font-size: 12px; }
.edge-modern.edge-ucp .twitter-main :is(.form-input, .search-input, .custom-input) { box-sizing: border-box; width: 100%; max-width: 480px; height: 38px; padding: 0 12px; border: 1px solid var(--edge-border); border-radius: 6px; background: var(--edge-surface); color: var(--edge-text-primary); font-size: 14px; }
.edge-modern.edge-ucp .twitter-main .search-input { max-width: 320px; }
.edge-modern.edge-ucp .twitter-main .type-tabs { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface-raised); }
.edge-modern.edge-ucp .twitter-main .type-tab { padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--edge-text-secondary); cursor: pointer; }
.edge-modern.edge-ucp .twitter-main .type-tab.active { background: var(--edge-surface); color: var(--edge-text-primary); font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.edge-modern.edge-ucp .twitter-main :is(.preview-section, .user-found, .has-veri-hint, .empty-hint) { padding: 12px 14px; border: 1px solid var(--edge-border-light); border-radius: 6px; background: var(--edge-surface-raised); color: var(--edge-text-secondary); }
.edge-modern.edge-ucp .twitter-main .veri-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.edge-modern.edge-ucp .twitter-main .veri-item { border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); color: var(--edge-text-secondary); transition: border-color var(--edge-transition-fast), background-color var(--edge-transition-fast); }
.edge-modern.edge-ucp .twitter-main .veri-item:hover { border-color: var(--edge-border); background: var(--edge-surface-hover); }
.edge-modern.edge-ucp .twitter-main .veri-item.checked { border-color: var(--edge-primary); background: var(--edge-primary-low); }
.edge-modern.edge-ucp .twitter-main .veri-item-name { color: var(--edge-text-primary); }
.edge-modern.edge-ucp .twitter-main .veri-item-type { color: var(--edge-text-muted); }
@media (max-width: 760px) {
  .edge-groups__main { grid-template-columns: 48px minmax(0,1fr); }
  .edge-groups__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .edge-credits__copy { grid-template-columns: minmax(0,1fr) auto; }
  .edge-credits__copy > span { grid-column: 1 / -1; }
  .edge-modern.edge-ucp .edge-credits__pair input { flex-basis: 90px; width: 90px; }
}

/* 积分记录（memcp_credits_log.htm） */
.edge-credits-log__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.edge-credits-log__tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.edge-credits-log__tabs::-webkit-scrollbar { display: none; }
.edge-credits-log__tabs a { white-space: nowrap; }
.edge-credits-log__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.edge-modern.edge-ucp table.edge-credits-log__table { width: 100%; min-width: 640px; border-collapse: collapse; }
.edge-modern.edge-ucp .edge-credits-log__table :is(th, td) { padding: 11px 16px; border-bottom: 1px solid var(--edge-border-light); color: var(--edge-text-secondary); font-size: 14px; text-align: left; vertical-align: middle; }
.edge-modern.edge-ucp .edge-credits-log__table thead td { background: var(--edge-surface-raised); color: var(--edge-text-muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.edge-modern.edge-ucp .edge-credits-log__table tbody tr:not(.is-empty):hover { background: var(--edge-surface-hover); }
.edge-modern.edge-ucp .edge-credits-log__table tbody tr:last-child td { border-bottom: 0; }
.edge-modern.edge-ucp .edge-credits-log__table tbody td:first-child a { color: var(--edge-text-primary); font-weight: 600; }
.edge-modern.edge-ucp .edge-credits-log__table tr.is-empty td { padding: 40px 16px; color: var(--edge-text-muted); text-align: center; }
.edge-modern.edge-ucp .edge-credits-log__table tr.is-empty .fa { display: block; margin: 0 auto 8px; font-size: 28px; }
.edge-credits-log .edge-exchange__pages { padding: 12px 16px; border-top: 1px solid var(--edge-border-light); }

/* ==========================================================================
   每日签到（signin.htm，个人中心 › 积分 › 每日签到）
   Discourse 用户概要的语言：描边卡片、统计块、细进度条、目录式排行；配色全部走 Token，亮暗一致。
   ========================================================================== */
.edge-signin__today { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 16px; padding: 20px; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); }
.edge-signin__today-main { flex: 1 1 360px; min-width: 0; }
.edge-modern .edge-signin__today h2 { margin: 0 0 4px; color: var(--edge-text-primary); font-size: 20px; font-weight: 700; line-height: 28px; }
.edge-signin__date { margin: 0 0 8px; color: var(--edge-text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.edge-signin__hint { margin: 0; color: var(--edge-text-secondary); font-size: 14px; line-height: 22px; }
.edge-signin__hint b { color: var(--edge-text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.edge-signin__action { flex: none; margin: 0; }
.edge-modern .edge-signin__action .edge-btn { min-width: 132px; min-height: 40px; font-size: 15px; }
.edge-modern .edge-signin__action .edge-btn.is-done { border-color: color-mix(in srgb, var(--edge-success) 35%, transparent); background: var(--edge-success-low); color: var(--edge-success) !important; opacity: 1; cursor: default; }
.edge-modern .edge-signin__action .edge-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.edge-signin__stats strong small { color: var(--edge-text-muted); font-size: 15px; font-weight: 500; }

.edge-signin__goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; }
.edge-signin__goal { padding: 16px; }
.edge-signin__goal + .edge-signin__goal { border-left: 1px solid var(--edge-border-light); }
.edge-signin__goal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.edge-signin__goal-head span { color: var(--edge-text-primary); font-size: 14px; font-weight: 600; }
.edge-signin__goal-head em { color: var(--edge-text-muted); font-size: 13px; font-style: normal; }
.edge-signin__bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--edge-surface-active); }
.edge-signin__bar span { display: block; height: 100%; border-radius: inherit; background: var(--edge-primary); transition: width .4s var(--edge-ease-out, ease-out); }
.edge-signin__steps { display: flex; justify-content: space-between; margin: 8px 0 0; padding: 0; list-style: none; }
.edge-signin__steps li { color: var(--edge-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.edge-signin__steps li.is-done { color: var(--edge-primary); font-weight: 600; }
.edge-signin__goal-foot { margin: 8px 0 0; color: var(--edge-text-muted); font-size: 12px; }

.edge-signin__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.edge-signin__grid > .edge-exchange__card { margin: 0 0 16px; }
.edge-signin__legend { display: inline-flex; align-items: center; gap: 6px; color: var(--edge-text-muted); font-size: 12px; }
.edge-signin__legend i { display: inline-block; width: 10px; height: 10px; margin-left: 6px; border-radius: 3px; }
.edge-signin__legend i.is-signed { background: var(--edge-primary); }
.edge-signin__legend i.is-missed { border: 1px solid var(--edge-border); }
.edge-signin__month { display: grid; gap: 4px; padding: 12px 16px 16px; }
.edge-signin__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.edge-signin__week [role="columnheader"] { padding: 2px 0 4px; color: var(--edge-text-muted); font-size: 12px; text-align: center; }
.edge-signin__day { display: grid; aspect-ratio: 1 / 1; max-height: 44px; place-items: center; border-radius: 6px; color: var(--edge-text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.edge-signin__day.is-signed { background: var(--edge-primary); color: var(--edge-primary-fg); font-weight: 600; }
.edge-signin__day.is-missed { color: var(--edge-text-muted); box-shadow: inset 0 0 0 1px var(--edge-border-light); }
.edge-signin__day.is-future { color: var(--edge-text-disabled, var(--edge-text-muted)); opacity: .55; }
.edge-signin__day.is-today:not(.is-signed) { color: var(--edge-primary); font-weight: 600; box-shadow: inset 0 0 0 2px var(--edge-primary); }
.edge-signin__day.is-today.is-signed { box-shadow: 0 0 0 2px var(--edge-surface), 0 0 0 4px color-mix(in srgb, var(--edge-primary) 45%, transparent); }

/* 排行：Discourse .nav-pills 风格的小标签 + 目录式列表，本人高亮。 */
.edge-signin__tabs { display: inline-flex; gap: 2px; }
.edge-modern.edge-ucp .edge-signin__tabs button { min-height: 28px; padding: 2px 10px; border: 0; border-radius: var(--edge-radius-sm); background: transparent; color: var(--edge-text-secondary); font-size: 13px; cursor: pointer; transition: background-color var(--edge-transition-fast), color var(--edge-transition-fast); }
.edge-modern.edge-ucp .edge-signin__tabs button:hover { background: var(--edge-surface-hover); color: var(--edge-text-primary); }
.edge-modern.edge-ucp .edge-signin__tabs button[aria-selected="true"] { background: var(--edge-primary-low); color: var(--edge-primary); font-weight: 600; }
.edge-signin__ranklist { margin: 0; padding: 4px 0; list-style: none; }
.edge-signin__ranklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 16px; font-size: 14px; }
.edge-signin__ranklist li.is-self { background: var(--edge-primary-low); }
.edge-signin__rank-no { color: var(--edge-text-muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.edge-signin__rank-no.is-top { color: var(--edge-text-primary); font-weight: 700; }
.edge-signin__rank-user { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: var(--edge-text-primary); }
.edge-signin__rank-user > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edge-signin__rank-user .edge-avatar { flex: none; width: 24px; height: 24px; overflow: hidden; border-radius: 50%; }
.edge-signin__rank-user .edge-avatar img, .edge-signin__rank-user .edge-avatar .edge-avatar-fallback { display: grid; width: 24px; height: 24px; place-items: center; object-fit: cover; font-size: 11px; }
a.edge-signin__rank-user:hover > span:last-child { color: var(--edge-primary); }
.edge-signin__rank-days { color: var(--edge-text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }

.edge-signin__count { color: var(--edge-text-muted); font-size: 13px; }
.edge-signin__log .edge-exchange__row { grid-template-columns: minmax(120px, 1.2fr) 1fr 1fr 1fr; font-variant-numeric: tabular-nums; }
.edge-signin__tag { margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--edge-warning-low); color: var(--edge-warning); font-size: 12px; font-style: normal; }
.edge-signin__bonus { color: var(--edge-success); font-weight: 600; }
.edge-signin__nobonus { color: var(--edge-text-muted); }
.edge-signin__more { color: var(--edge-primary); font-size: 14px; }
.edge-signin__empty { margin: 0; padding: 24px 16px; color: var(--edge-text-muted); font-size: 14px; text-align: center; }
.edge-signin__ranklist li.edge-signin__empty { display: block; }

.edge-signin__rules summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: var(--edge-text-primary); font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.edge-signin__rules summary::-webkit-details-marker { display: none; }
.edge-signin__rules summary .fa { color: var(--edge-text-muted); transition: transform var(--edge-transition-fast); }
.edge-signin__rules[open] summary { border-bottom: 1px solid var(--edge-border-light); }
.edge-signin__rules[open] summary .fa { transform: rotate(180deg); }
.edge-signin__rules dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; margin: 0; padding: 8px 16px; }
.edge-signin__rules dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--edge-border-light); font-size: 14px; }
.edge-signin__rules dt { color: var(--edge-text-primary); font-weight: 600; }
.edge-signin__rules dd { margin: 0; color: var(--edge-text-secondary); }
.edge-signin__rules > p { margin: 0; padding: 4px 16px 16px; color: var(--edge-text-muted); font-size: 13px; }

@media (max-width: 900px) {
  .edge-signin__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .edge-signin__goal + .edge-signin__goal { border-left: 0; border-top: 1px solid var(--edge-border-light); }
}
@media (max-width: 600px) {
  .edge-signin__today { padding: 16px; }
  .edge-signin__action, .edge-modern .edge-signin__action .edge-btn { width: 100%; }
  .edge-signin__log .edge-exchange__row:not(.is-head) { grid-template-columns: minmax(0, 1fr) auto; }
}
/* 里程碑刻度按 20 天比例绝对定位（5/7/15/20 → 25%/35%/75%/100%），末项右对齐不溢出。 */
.edge-signin__steps { position: relative; display: block; height: 18px; }
.edge-signin__steps li { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.edge-signin__steps li:last-child { transform: translateX(-100%); }
@media (max-width: 600px) {
  .edge-exchange__stats.edge-signin__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .edge-signin__stats .edge-exchange__stat { padding: 10px 12px; }
}

/* 二级导航按钮在 .edge-pm 内的默认样式（黑名单表单）。 */
.edge-modern.edge-ucp .edge-pm .edge-pm-settings__add button.edge-btn--default { border: 1px solid var(--edge-border); background: var(--edge-surface); color: var(--edge-text-secondary); }
.edge-modern.edge-ucp .edge-pm .edge-pm-settings__add button.edge-btn--default:hover { background: var(--edge-surface-active); color: var(--edge-text); }

/* 私信对话模式：左侧会话列表、右侧聊天窗；消息流与输入框都在面板内部，输入框不再浮在内容上。 */
.edge-chat { display: grid; grid-template-columns: 300px minmax(0,1fr); height: var(--edge-chat-height, 600px); min-height: 440px; overflow: hidden; border: 1px solid var(--edge-border-light); border-radius: 8px; background: var(--edge-surface); }
.edge-chat__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--edge-border-light); }
.edge-chat__search { position: relative; display: flex; align-items: center; flex: none; margin: 12px; }
.edge-chat__search > .fa { position: absolute; left: 10px; color: var(--edge-text-muted); font-size: 13px; pointer-events: none; }
.edge-modern .edge-chat__search input[type="search"] { box-sizing: border-box; width: 100%; height: 34px; margin: 0; padding: 0 30px 0 30px; border: 1px solid var(--edge-border); border-radius: 17px; background: var(--edge-bg); color: var(--edge-text); font-size: 14px; box-shadow: none; }
.edge-modern .edge-chat__search input[type="search"]:focus { border-color: var(--edge-primary); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--edge-primary) 25%, transparent); }
.edge-modern .edge-chat__search-clear { position: absolute; right: 8px; color: var(--edge-text-muted); }
.edge-modern .edge-chat__list-note { flex: none; margin: -4px 14px 8px; color: var(--edge-text-muted); font-size: 12px; }
.edge-chat__convos { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.edge-chat__convo { position: relative; }
.edge-modern .edge-chat__convo-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--edge-text) !important; text-decoration: none !important; transition: background-color .12s ease; }
.edge-chat__convo-link:hover { background: var(--edge-surface-hover); }
.edge-chat__convo.is-active .edge-chat__convo-link { background: var(--edge-primary-low); }
.edge-chat__convo.is-active .edge-chat__convo-link::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--edge-primary); }
.edge-chat__avatar { display: block; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--edge-surface-active); }
.edge-chat__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edge-chat__avatar.is-system { display: grid; place-items: center; color: var(--edge-text-muted); font-size: 16px; }
.edge-chat__convo-main { display: grid; flex: 1; gap: 2px; min-width: 0; }
.edge-chat__convo-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.edge-chat__convo-top strong { overflow: hidden; color: var(--edge-text); font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.edge-chat__convo-top time { flex: none; margin-left: auto; color: var(--edge-text-muted); font-size: 12px; }
.edge-chat__convo-excerpt { overflow: hidden; color: var(--edge-text-muted); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.edge-chat__convo.is-unread .edge-chat__convo-top strong { font-weight: 700; }
.edge-chat__convo.is-unread .edge-chat__convo-excerpt { color: var(--edge-text); }
.edge-chat__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--edge-primary); }
.edge-modern .edge-chat__convo-delete { position: absolute; margin: 0; min-height: 0; right: 8px; top: 50%; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: var(--edge-surface); color: var(--edge-text-muted); opacity: 0; transform: translateY(-50%); cursor: pointer; transition: opacity .12s ease; }
.edge-chat__convo:hover .edge-chat__convo-delete, .edge-chat__convo-delete:focus-visible { opacity: 1; }
.edge-chat__convo-delete:hover, .edge-chat__convo-delete:focus-visible { outline: none; background: var(--edge-danger-low); color: var(--edge-danger); }
.edge-chat__convo.is-removing { opacity: .4; pointer-events: none; }
.edge-modern .edge-chat__convos-empty { margin: 0; padding: 32px 16px; color: var(--edge-text-muted); font-size: 13px; text-align: center; }
.edge-modern .edge-chat__more { display: block; padding: 12px; color: var(--edge-link); font-size: 13px; text-align: center; }
.edge-chat__main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.edge-chat__head { display: flex; flex: none; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--edge-border-light); }
.edge-modern .edge-chat__back { display: none; width: 32px; height: 32px; place-items: center; margin-left: -6px; border-radius: 4px; color: var(--edge-text-secondary) !important; }
.edge-modern .edge-chat__peer { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: var(--edge-text) !important; text-decoration: none !important; }
.edge-chat__peer .edge-chat__avatar { width: 34px; height: 34px; }
.edge-chat__peer-text { display: grid; min-width: 0; line-height: 1.25; }
.edge-chat__peer-text strong { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.edge-chat__peer-text small { color: var(--edge-text-muted); font-size: 12px; }
.edge-chat__scroller { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
.edge-modern .edge-pm-stream { display: flex; flex-direction: column; margin: 0; padding: 16px 16px 20px; list-style: none; }
.edge-modern .edge-pm-stream > li { margin: 0; list-style: none; }
.edge-pm-start { display: grid; justify-items: center; gap: 4px; padding: 8px 0 16px; color: var(--edge-text-muted); font-size: 13px; text-align: center; }
.edge-pm-start .edge-chat__avatar { width: 56px; height: 56px; margin-bottom: 4px; }
.edge-pm-start strong { color: var(--edge-text); font-size: 16px; }
.edge-pm-day, .edge-pm-new { display: flex; align-items: center; gap: 12px; padding: 14px 0 8px; color: var(--edge-text-muted); font-size: 12px; }
.edge-pm-day::before, .edge-pm-day::after, .edge-pm-new::before, .edge-pm-new::after { content: ""; flex: 1 1 0; height: 1px; background: var(--edge-border-light); }
.edge-pm-new { color: var(--edge-danger); font-weight: 600; }
.edge-pm-new::before, .edge-pm-new::after { background: color-mix(in srgb, var(--edge-danger) 45%, transparent); }
.edge-pm-msg { display: flex; align-items: flex-start; gap: 10px; max-width: 78%; margin-top: 12px !important; }
.edge-pm-msg.is-continued { margin-top: 3px !important; }
.edge-pm-msg.is-self { flex-direction: row-reverse; align-self: flex-end; }
.edge-pm-msg__avatar { display: block; flex: none; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--edge-surface-active); }
.edge-pm-msg__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edge-pm-msg__avatar.is-system { display: grid; place-items: center; color: var(--edge-text-muted); font-size: 14px; }
.edge-pm-msg.is-continued .edge-pm-msg__avatar { visibility: hidden; height: 0; }
.edge-pm-msg__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.edge-pm-msg.is-self .edge-pm-msg__body { align-items: flex-end; }
.edge-pm-msg__meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; padding: 0 4px; font-size: 12px; line-height: 16px; }
.edge-pm-msg__meta strong { color: var(--edge-text-secondary); font-weight: 600; }
.edge-pm-msg__meta time { color: var(--edge-text-muted); }
.edge-pm-msg.is-continued .edge-pm-msg__meta { display: none; }
.edge-pm-msg__row { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.edge-pm-msg.is-self .edge-pm-msg__row { flex-direction: row-reverse; }
.edge-pm-msg__bubble { min-width: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--edge-surface-active); color: var(--edge-text); font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.edge-pm-msg.is-continued .edge-pm-msg__bubble { border-top-left-radius: 14px; }
.edge-pm-msg.is-self .edge-pm-msg__bubble { border-radius: 14px 4px 14px 14px; background: color-mix(in srgb, var(--edge-primary) 22%, var(--edge-surface)); }
.edge-pm-msg.is-self.is-continued .edge-pm-msg__bubble { border-top-right-radius: 14px; }
.edge-modern .edge-pm-msg__bubble a { color: var(--edge-link); }
.edge-pm-msg__bubble img { max-width: min(100%, 360px); height: auto; border-radius: 6px; vertical-align: middle; }
.edge-modern .edge-pm-msg__bubble :is(.quote, blockquote) { margin: 4px 0; padding: 4px 10px; border: 0; border-left: 3px solid var(--edge-border); background: transparent; color: var(--edge-text-secondary); }
.edge-modern .edge-pm-msg__bubble .blockcode { margin: 4px 0; padding: 6px 10px; overflow-x: auto; border: 0; border-radius: 4px; background: var(--edge-code-bg, var(--edge-bg)); font: 13px/1.6 var(--font-family-roboto-mono, monospace); white-space: pre-wrap; }
.edge-modern .edge-pm-msg__forward { flex: none; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--edge-text-muted) !important; font-size: 12px; opacity: 0; transition: opacity .12s ease; }
.edge-pm-msg:hover .edge-pm-msg__forward, .edge-pm-msg__forward:focus-visible { opacity: 1; }
.edge-modern .edge-pm-msg__forward:hover { background: var(--edge-surface-active); color: var(--edge-primary) !important; }
.edge-pm-msg.is-fresh .edge-pm-msg__bubble { animation: edge-chat-pop .22s ease-out; }
@keyframes edge-chat-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.edge-chat__stage { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.edge-chat__stage > .edge-chat__scroller { flex: 1 1 auto; }
.edge-chat__latest { position: absolute; right: 18px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid var(--edge-border); border-radius: 16px; background: var(--edge-surface); color: var(--edge-text); font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.22); cursor: pointer; animation: edge-chat-pop .18s ease-out; }
.edge-chat__latest:hover { background: var(--edge-surface-hover); }
.edge-chat__latest[hidden] { display: none; }
.edge-chat__composer { flex: none; margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--edge-border-light); }
.edge-chat__box { border: 1px solid var(--edge-border); border-radius: 10px; background: var(--edge-bg); transition: border-color .12s ease, box-shadow .12s ease; }
.edge-chat__box:focus-within { border-color: var(--edge-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--edge-primary) 22%, transparent); }
.edge-modern .edge-chat__box textarea { display: block; box-sizing: border-box; width: 100%; min-height: 40px; max-height: 160px; margin: 0; padding: 10px 12px 4px; border: 0; background: transparent; color: var(--edge-text); font-family: inherit; font-size: 15px; line-height: 22px; font-family: inherit; box-shadow: none; outline: none; resize: none; }
.edge-chat__box-bar { display: flex; align-items: center; gap: 8px; padding: 2px 6px 6px; }
.edge-chat__tools { display: flex; gap: 1px; }
.edge-chat__tools button { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--edge-text-muted); font-size: 12.5px; cursor: pointer; }
.edge-chat__tools button:hover, .edge-chat__tools button:focus-visible { outline: none; background: var(--edge-surface-active); color: var(--edge-text); }
.edge-chat__hint { margin-left: auto; color: var(--edge-text-muted); font-size: 12px; }
.edge-chat__send { display: grid; flex: none; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--edge-primary); color: var(--edge-primary-fg); font-size: 14px; cursor: pointer; transition: opacity .12s ease, background-color .12s ease; }
.edge-chat__send:hover { background: var(--edge-primary-hover); }
.edge-chat__send:disabled { opacity: .4; cursor: default; }
.edge-chat__send.is-loading .fa { animation: edge-spin .8s linear infinite; }
.edge-chat__placeholder { display: grid; flex: 1; align-content: center; justify-items: center; gap: 8px; padding: 24px; color: var(--edge-text-muted); text-align: center; }
.edge-chat__placeholder > .fa { font-size: 44px; opacity: .6; }
.edge-modern .edge-chat__placeholder h3 { margin: 6px 0 0; color: var(--edge-text); font-size: 18px; }
.edge-modern .edge-chat__placeholder p { max-width: 320px; margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .edge-notification { grid-template-columns: 22px minmax(0,1fr); padding: 12px 8px; }
  .edge-notification__time { grid-column: 2; margin-top: 4px; }
  .edge-chat { grid-template-columns: minmax(0,1fr); border-radius: 0; border-inline: 0; }
  .edge-chat.has-thread .edge-chat__list, .edge-chat:not(.has-thread) .edge-chat__main { display: none; }
  .edge-chat__list { border-right: 0; }
  .edge-modern .edge-chat__back { display: grid; }
  .edge-chat__convo-delete { display: none; }
  .edge-pm-msg { max-width: 88%; }
  .edge-chat__hint { display: none; }
  .edge-chat__composer { padding: 8px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) { .edge-pm-msg.is-fresh .edge-pm-msg__bubble { animation: none; } }
/* 收藏话题：Discourse 书签列表式（标题+类别+摘要 / 回复 / 活动），顶部按标题搜索。 */
.edge-fav-search { position: relative; display: flex; align-items: center; max-width: 360px; margin: 0 0 12px; }
.edge-fav-search > .fa-search { position: absolute; left: 12px; color: var(--edge-text-muted); font-size: 14px; pointer-events: none; }
.edge-modern .edge-fav-search input[type="search"] { box-sizing: border-box; width: 100%; height: 38px; padding: 0 36px; border: 1px solid var(--edge-border); border-radius: 4px; background: var(--edge-surface); color: var(--edge-text-primary); font-size: 14px; }
.edge-modern .edge-fav-search input[type="search"]:focus { outline: none; border-color: var(--edge-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--edge-primary) 18%, transparent); }
.edge-modern .edge-fav-search__clear { position: absolute; right: 6px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 4px; color: var(--edge-text-muted) !important; }
.edge-fav-table .edge-ucp-table__head, .edge-fav-table .edge-ucp-row { grid-template-columns: 28px minmax(0,1fr) 68px 80px 36px; }
.edge-fav-row__excerpt { flex-basis: 100%; display: -webkit-box; margin: 2px 0 0; overflow: hidden; color: var(--edge-text-secondary); font-size: 14px; line-height: 21px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.edge-modern .edge-fav-row__activity { color: var(--edge-text-secondary) !important; font-size: 14px; text-align: center; text-decoration: none !important; font-variant-numeric: tabular-nums; }
.edge-modern .edge-fav-row__activity:hover { color: var(--edge-link) !important; }
.edge-fav-table .edge-ucp-row { align-items: start; }
.edge-fav-table .edge-ucp-row > :not(.edge-ucp-row__main) { margin-top: 1px; }
.edge-ucp-empty { justify-items: start; padding: 8px 0 24px; border: 0; color: var(--edge-text-primary); text-align: left; }
.edge-ucp-empty h3 { font-size: 18px !important; font-weight: 700 !important; }
.edge-ucp-empty p { max-width: none; font-size: 16px; line-height: 22px; }
.edge-ucp-empty p .fa { margin: 0 4px; font-size: inherit; }
.edge-ucp-empty > .fa:first-child { display: none; }
@media (max-width: 720px) { .edge-fav-table .edge-ucp-row { grid-template-columns: 28px minmax(0,1fr) 34px; } .edge-fav-row__activity { display: none; } .edge-fav-search { max-width: none; } }
