* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif; background: #f5f7fb; color: #1f2430; font-size: 13px; line-height: 1.5; }
a { color: #4f63ff; text-decoration: none; }
.topbar { background: #6763ff; color: #fff; height: 48px; }
.topbar-inner { max-width: 1240px; height: 48px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 14px; }
.logo-mark { width: 18px; height: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.logo-mark img { width: 18px; height: 18px; display: block; border-radius: 4px; }
.logo-text { font-size: 14px; line-height: 1; letter-spacing: .2px; }
.nav { display: flex; gap: 34px; margin-left: 26px; flex: 1; }
.nav a { color: rgba(255, 255, 255, 0.84); font-size: 13px; font-weight: 500; padding: 0 8px; }
.nav a.active { color: #fff; font-weight: 700; }
.user-area { display: flex; gap: 8px; align-items: center; color: #fff; position: relative; }
.btn-link { background: transparent; border: 0; color: inherit; cursor: pointer; }
.icon-btn { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.18); }
.notify-btn { position: relative; }
.notify-btn.is-active { background: rgba(255, 255, 255, 0.2); }
.notify-badge {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  background: #ff4d6d;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}
.user-dropdown-wrap { position: relative; }
.avatar-trigger { border: 0; background: transparent; color: #fff; display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 2px 4px; border-radius: 18px; }
.avatar-trigger:hover { background: rgba(255, 255, 255, 0.16); }
.avatar-img { width: 24px; height: 24px; border-radius: 50%; background: #e0a96d; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,.85); }
.avatar-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-caret { font-size: 10px; opacity: 0.9; }
.user-dropdown-panel { position: absolute; right: 0; top: 34px; width: 300px; background: #fff; color: #141b2d; border-radius: 8px; box-shadow: 0 12px 24px rgba(18, 24, 38, 0.16); border: 1px solid #eef0f5; padding: 14px; z-index: 30; }
.panel-user { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #f0f2f8; }
.panel-avatar { width: 52px; height: 52px; border-radius: 50%; background: #e0a96d; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; }
.panel-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.panel-user-main { flex: 1; min-width: 0; }
.panel-name { font-size: 18px; font-weight: 700; line-height: 1.1; }
.panel-dept { color: #a1a6b2; font-size: 11px; margin-top: 2px; }
.panel-edit { color: #6a63ff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 0; border-bottom: 1px solid #f0f2f8; }
.panel-stats strong { display: block; font-size: 18px; line-height: 1.1; color: #121826; }
.panel-stats span { color: #8f95a3; font-size: 11px; }
.panel-menu { display: grid; gap: 3px; padding-top: 8px; }
.panel-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 8px; color: #1f2430; font-size: 12px; }
.menu-ico { width: 18px; display: inline-flex; justify-content: center; color: #0f1320; font-size: 14px; line-height: 1; }
.panel-menu a:hover { background: #f5f7ff; color: #4f63ff; }
.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid #f0f2f8;
  padding-top: 10px;
}
.panel-admin-link,
.panel-logout .btn-link {
  color: #6a63ff;
  font-size: 12px;
  line-height: 1;
}
.panel-admin-link:hover,
.panel-admin-link.is-active,
.panel-logout .btn-link:hover {
  color: #4f63ff;
}
.panel-logout { margin: 0; }
.page { max-width: 1240px; margin: 12px auto; padding: 0 16px; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 14px; }
.card { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 1px 2px rgba(22, 32, 72, 0.04); margin-bottom: 12px; }
.board-strip { padding: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-head h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.section-head a { color: #a4a9b7; font-size: 12px; }
.board-list { display: flex; gap: 12px; flex-wrap: wrap; }
.board-item { width: 110px; min-height: 92px; border: 1px solid #edf1fb; border-radius: 8px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.board-icon { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; line-height: 1; background: #7f8cff; margin-bottom: 2px; }
.board-item strong { color: #1d2230; font-size: 14px; font-weight: 400; }
.board-item span { color: #7b8398; font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 16px; }
.tabs { display: flex; gap: 8px; }
.tabs a { background: #fff; border: 1px solid #e4e9ff; color: #5f62ff; padding: 4px 10px; border-radius: 6px; margin-right: 0; font-size: 12px; line-height: 1; }
.tabs a.active { background: #5f62ff; color: #fff; border-color: #5f62ff; }
.toolbar form { display: flex; gap: 8px; align-items: center; }
.toolbar input { width: 280px; border: 1px solid #e5eaf6; border-radius: 18px; height: 32px; padding: 0 12px; font-size: 13px; }
.toolbar button { border: 1px solid #d9dff3; background: #fff; border-radius: 18px; height: 32px; padding: 0 12px; cursor: pointer; font-size: 12px; color: #667089; }
.post-card { padding: 14px 14px 10px; }
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8c93a4;
  font-size: 12px;
}
.post-meta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.post-meta-user {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
}
.post-meta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2ff;
  color: #4f63ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 28px;
}
.post-meta-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta-author { color: #2a3247; font-weight: 600; }
.post-meta-time { color: #8c93a4; }
.post-card h2 { margin: 8px 0 6px; font-size: 14px; line-height: 1.35; }
.post-card h2 a { color: #151f34; }
.post-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.post-title-row > a {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: 100%;
}
.post-state-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.post-state-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1px;
  border: 1px solid transparent;
}
.post-state-badge.is-global-pin {
  color: #5668ff;
  background: #eef1ff;
  border-color: #d8deff;
}
.post-state-badge.is-board-pin {
  color: #f08b2f;
  background: #fff5ea;
  border-color: #ffe0bf;
}
.post-state-badge.is-featured {
  color: #0f9d64;
  background: #e9fbf3;
  border-color: #c8f2df;
}
.post-card .post-list-cover-link,
.board-post-card .post-list-cover-link,
.me-community-post-card .post-list-cover-link {
  display: block;
  width: 168px;
  height: 104px;
  margin: 8px 0 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e9edfa;
  background: #f5f7ff;
  box-shadow: 0 4px 12px rgba(44, 61, 130, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card .post-list-cover-link:hover,
.board-post-card .post-list-cover-link:hover,
.me-community-post-card .post-list-cover-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(44, 61, 130, 0.14);
}
.post-card .post-list-cover-image,
.board-post-card .post-list-cover-image,
.me-community-post-card .post-list-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-list-cover-link.is-video {
  position: relative;
}
.post-list-cover-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111826;
}
.post-list-attachment-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.post-list-attachment-item {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e6ebfa;
  border-radius: 10px;
  background: #fbfcff;
}
.post-list-attachment-ext {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1f8c5f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
}
.post-list-attachment-main { min-width: 0; flex: 1; }
.post-list-attachment-name {
  color: #1a2238;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
}
.post-list-video-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  background: rgba(17, 24, 38, 0.65);
}
.post-card p { margin: 0; font-size: 12px; color: #21293b; line-height: 1.7; }
.tag { background: #eef1ff; color: #5963d9; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.action-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #8a91a2;
  border-radius: 6px;
  height: 24px;
  padding: 0 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  vertical-align: middle;
}
.action-ico {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 14px;
  flex: 0 0 14px;
}
.action-btn:hover { background: #f4f6ff; color: #4f63ff; }
.action-btn.active { background: #4f63ff; color: #fff; }
.vote-sync-card { border-radius: 12px; }
.vote-sync-lead {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vote-sync-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  gap: 4px;
  border-radius: 4px;
  background: #fff2e8;
  color: #e07621;
  font-size: 14px;
  line-height: 1;
}
.vote-sync-pill-icon {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background:
    linear-gradient(#e07621, #e07621) 2px 7px / 2px 3px no-repeat,
    linear-gradient(#e07621, #e07621) 5px 4px / 2px 6px no-repeat,
    linear-gradient(#e07621, #e07621) 8px 2px / 2px 8px no-repeat,
    #ffe3cf;
  flex: 0 0 12px;
}
.vote-sync-lead-text {
  color: #1f2430;
  font-size: 14px;
  line-height: 1.35;
}
.vote-sync-summary {
  margin-top: 6px;
  padding: 0;
}
.vote-sync-summary p {
  margin: 0;
  color: #6f7b95;
  font-size: 14px;
  line-height: 1.6;
}
.vote-sync-entry-card {
  margin-top: 10px;
  border: 1px solid #e8edf7;
  border-radius: 8px;
  min-height: 54px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
}
.vote-sync-entry-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #1f2430;
  text-decoration: none;
}
.vote-sync-entry-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background:
    linear-gradient(#9ba7c3, #9ba7c3) 2px 9px / 3px 4px no-repeat,
    linear-gradient(#9ba7c3, #9ba7c3) 6px 6px / 3px 7px no-repeat,
    linear-gradient(#9ba7c3, #9ba7c3) 10px 3px / 3px 10px no-repeat,
    #eef2fb;
  flex: 0 0 16px;
}
.vote-sync-entry-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2430;
  font-size: 16px;
  line-height: 1.4;
}
.vote-entry-btn {
  height: 30px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 12px;
}
.list-reply-box { margin-top: 10px; border-top: 1px solid #eef2fb; padding-top: 10px; }
.list-comment-preview {
  margin-top: 10px;
  padding: 10px 12px 8px;
  border: 1px solid #eef2fb;
  border-radius: 8px;
  background: #fafcff;
}
.list-comment-preview p {
  margin: 0 0 8px;
  color: #2a3247;
  font-size: 13px;
  line-height: 1.6;
}
.list-comment-preview p strong { color: #202738; }
.list-comment-preview p:last-of-type { margin-bottom: 6px; }
.list-comment-empty { color: #8b93a6; }
.list-comment-item { margin-bottom: 8px; }
.list-comment-item:last-of-type { margin-bottom: 6px; }
.list-comment-item {
  border-radius: 6px;
  padding: 2px 4px;
  cursor: pointer;
}
.list-comment-item:hover { background: #f4f7ff; }
.list-comment-content { color: #2a3247; font-size: 13px; line-height: 1.6; word-break: break-word; }
.list-comment-content strong { color: #202738; }
.list-comment-reply-word { color: #7f879a; }
.list-comment-content a { color: #4f63ff; }
.list-comment-image {
  max-width: 220px;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid #e6ebfa;
  display: block;
  margin: 4px 0;
}
.list-reply-form { background: #fbfcff; border: 1px solid #edf1fb; border-radius: 10px; padding: 8px 10px; position: relative; }
.list-reply-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef1ff;
  color: #4f63ff;
  border-radius: 12px;
  font-size: 12px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.list-reply-clear-btn {
  border: 0;
  background: transparent;
  color: #6f78a8;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.list-reply-input-row { display: flex; align-items: flex-start; gap: 8px; }
.list-reply-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0a96d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 28px;
  margin-top: 3px;
}
.list-reply-input-row textarea {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 62px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.6;
  color: #232b3f;
  outline: none;
  padding: 6px 0;
  font-family: inherit;
}
.list-reply-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.list-reply-tools { color: #8d95a8; display: inline-flex; gap: 8px; font-size: 13px; }
.emoji-wrap { position: relative; display: inline-flex; }
.list-tool-btn {
  border: 1px solid #e4e9f8;
  background: #fff;
  color: #6f7890;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}
.list-tool-btn:hover { border-color: #cfd7ff; color: #4f63ff; background: #f7f9ff; }
.list-ai-assist-btn {
  border-color: #dbdefd;
  color: #5e67e6;
  background: #f3f5ff;
}
.list-ai-assist-btn:hover {
  border-color: #c7cffb;
  color: #4f5bd5;
  background: #ecefff;
}
.list-reply-toolbar .btn-primary { padding: 5px 14px; font-size: 12px; border-radius: 14px; }
.list-image-preview { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.list-image-item {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e4e9f8;
  position: relative;
  background: #fff;
}
.list-image-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-image-remove {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  padding: 0;
}
.list-attachment-preview { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.list-attachment-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  background: #f8faff;
  border: 1px solid #e4e9f8;
  border-radius: 8px;
  padding: 4px 8px;
}
.list-attachment-item a {
  color: #4f63ff;
  text-decoration: none;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.list-attachment-remove {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  padding: 0;
}
.emoji-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 2px);
  width: min(490px, calc(100vw - 40px));
  max-width: none;
  background: #fff;
  border: 1px solid #e5eaf8;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(20, 35, 90, 0.14);
  padding: 10px;
  z-index: 40;
}
.emoji-panel-title { margin: 0 0 8px; font-size: 12px; color: #5f6780; white-space: nowrap; }
.emoji-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.emoji-item {
  border: 1px solid #e4e9f8;
  background: #fff;
  border-radius: 8px;
  padding: 3px 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.emoji-item:hover { background: #f6f8ff; border-color: #cfd7ff; }
.attach-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}
.attach-modal[hidden] { display: none !important; }
.attach-dialog {
  width: 430px;
  max-width: calc(100vw - 20px);
  background: #fff;
  border: 1px solid #e6e9f6;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(25, 35, 78, 0.2);
}
.attach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #eff2fb;
}
.attach-header h4 { margin: 0; font-size: 18px; color: #1d2335; font-weight: 500; }
.attach-close-btn {
  border: 0;
  background: transparent;
  color: #8b93a6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.attach-body { padding: 14px 16px 26px; display: grid; gap: 8px; }
.attach-option-btn {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
  color: #101525;
  cursor: pointer;
}
.attach-option-btn:hover { color: #4f63ff; }
.attach-footer { border-top: 1px solid #eff2fb; padding: 10px 16px; display: flex; justify-content: flex-end; }
.attach-footer .btn-outline { font-size: 14px; padding: 6px 18px; border-color: #2d3448; color: #2d3448; }
.view-users-modal {
  background: rgb(0 0 0 / 38%);
  backdrop-filter: none;
}
.view-users-dialog {
  width: min(520px, calc(100vw - 24px));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.view-users-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.view-users-header .attach-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  font-size: 26px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.view-users-header .attach-close-btn:hover {
  background: #eef2ff;
  color: #335cff;
  transform: rotate(90deg);
}
.view-users-body {
  padding: 0;
  gap: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 26%);
}
.view-users-tabs {
  display: flex;
  gap: 20px;
  padding: 4px 20px 12px;
  border-bottom: 1px solid #edf2f7;
}
.view-users-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 0;
  padding: 10px 2px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.view-users-tab:hover {
  color: #334155;
}
.view-users-tab.is-active {
  color: #2f5ef5;
  box-shadow: inset 0 -2px 0 #2f5ef5;
}
.view-users-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 16px 12px;
  background: transparent;
}
.view-users-list::-webkit-scrollbar { width: 8px; }
.view-users-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.view-users-list::-webkit-scrollbar-track { background: transparent; }
.view-users-empty {
  padding: 52px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}
.view-user-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: none;
}
.view-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 12px;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
}
.view-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view-user-content {
  flex: 1;
  min-width: 0;
}
.view-user-name {
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.view-user-meta {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}
.say-post-mask {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.say-post-mask[hidden] { display: none !important; }
.say-post-dialog {
  width: min(920px, calc(100vw - 24px));
  min-height: 560px;
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid #edf1fb;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 28, 55, 0.18);
  overflow: hidden;
}
.say-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #edf1fb;
}
.say-post-head h3 { margin: 0; font-size: 16px; line-height: 1; }
.say-post-close-btn {
  border: 0;
  background: transparent;
  font-size: 32px;
  color: #78819a;
  line-height: 1;
  cursor: pointer;
}
.say-post-body {
  flex: 1;
  overflow: auto;
  padding: 10px 16px;
  display: grid;
  gap: 10px;
}
.say-post-row { display: grid; gap: 8px; }
.say-post-row > input[type="text"],
.say-post-row > select,
.say-post-row > textarea,
.say-post-row > input[type="datetime-local"],
.say-post-time-field > input[type="datetime-local"] {
  width: 100%;
  border: 1px solid #dce3f6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1f2430;
  background: #fff;
}
#say-post-display-publish-at {
  width: 240px;
  max-width: 100%;
}
#say-post-publish-at {
  width: 240px;
  max-width: 100%;
}
.say-post-time-field {
  display: grid;
  gap: 6px;
}
.say-post-content-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}
.say-post-content-top #say-post-content {
  min-height: 120px;
  resize: vertical;
  border: 1px solid #dce3f6;
}
.say-post-ai-btn {
  border: 1px solid #e2d7ff;
  background: #f8f4ff;
  color: #5e4ee6;
  border-radius: 6px;
  height: 30px;
  min-width: 74px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 28px;
  cursor: pointer;
}
.say-post-media-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.say-post-media-btn {
  border: 1px solid #dce3f6;
  background: #fff;
  color: #2b3348;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.say-post-upload-preview {
  display: grid;
  gap: 8px;
}
.say-post-upload-preview > div {
  border: 1px dashed #dbe3fb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: #49526a;
}
.say-post-upload-preview img,
.say-post-upload-preview video {
  width: 180px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #e6ebf8;
  display: block;
}
.say-post-label {
  font-size: 13px;
  color: #4a546c;
}
.say-post-label .required { color: #ff4d4f; }
.say-post-board-picker { position: relative; }
.say-post-board-trigger {
  width: 100%;
  height: 40px;
  border: 1px solid #dce3f6;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 0 12px;
  font-size: 13px;
  color: #2c344a;
  cursor: pointer;
}
.say-post-board-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow: auto;
  border: 1px solid #dfe6fb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 31, 58, 0.14);
  z-index: 20;
}
.say-post-board-list { padding: 8px; display: grid; gap: 4px; }
.say-post-board-item {
  border: 0;
  background: #f7f9ff;
  border-radius: 8px;
  color: #2b3550;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}
.say-post-board-item:hover { background: #edf2ff; color: #4e61ff; }
.say-post-advanced summary {
  cursor: pointer;
  color: #616b82;
  font-size: 13px;
}
.say-post-publish-mode {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: #3f4860;
}
.say-post-foot {
  border-top: 1px solid #edf1fb;
  padding: 8px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.say-post-foot .btn-outline,
.say-post-foot .btn-primary {
  height: 32px;
  min-width: 72px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 30px;
}
#say-post-open-btn {
  cursor: pointer;
}
.detail-ai-style-row#say-post-ai-style-row {
  margin: 8px 18px 0;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .view-users-dialog {
    width: min(100vw - 16px, 520px);
    border-radius: 18px;
  }
  .view-users-header {
    padding: 16px 16px 12px;
  }
  .view-users-tabs {
    padding: 2px 16px 12px;
    gap: 16px;
  }
  .view-users-tab {
    padding: 9px 2px 10px;
    font-size: 13px;
  }
  .view-users-list {
    max-height: 62vh;
    padding: 0 12px 12px;
  }
  .view-user-item {
    padding: 12px 0;
  }
  .say-post-mask { padding: 0; }
  .say-post-dialog {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  .say-post-content-top {
    grid-template-columns: 1fr;
  }
}
.list-reply-login-tip { margin: 8px 0 4px; font-size: 12px; color: #7f889f; }
.list-reply-login-tip a { color: #5f62ff; }
.list-reply-result { margin: 6px 0 0; font-size: 12px; color: #5f62ff; }
.list-reply-result a { color: #4f63ff; word-break: break-all; }
.reply-inline-image { max-width: 220px; max-height: 160px; border-radius: 8px; display: inline-block; vertical-align: middle; margin-left: 4px; border: 1px solid #e6ebfa; }
.list-reply-more { display: inline-block; margin-top: 8px; color: #8f96aa; font-size: 12px; }
.list-reply-more:hover { color: #4f63ff; }
.comment-toggle-btn.is-open { background: #eef1ff; color: #4f63ff; }
.feed-layout .board-strip {
  border: 1px solid #e9eeff;
  box-shadow: 0 6px 18px rgba(77, 95, 204, 0.06);
}
.feed-layout > div { min-width: 0; }
.feed-board-scroll { max-width: 100%; }
.feed-layout .toolbar {
  background: #fff;
  border: 1px solid #edf1fb;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 10px 0 14px;
}
.feed-layout .toolbar form { gap: 6px; }
.feed-layout .toolbar input {
  background: #f8faff;
  border-color: #e7ebf8;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.feed-layout .toolbar input:focus {
  border-color: #cfd8ff;
  box-shadow: 0 0 0 3px rgba(95, 98, 255, 0.08);
}
.feed-layout .toolbar button {
  border-color: #d7def8;
  color: #5f62ff;
  background: #f8f9ff;
}
.feed-layout .post-card {
  border: 1px solid #ecf0fb;
  box-shadow: 0 6px 18px rgba(30, 47, 120, 0.04);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.feed-layout .post-card:hover {
  border-color: #d8e0ff;
  box-shadow: 0 10px 24px rgba(30, 47, 120, 0.07);
}
.feed-layout .post-meta-author { color: #2a3247; font-weight: 600; }
.feed-layout .post-card h2 a:hover { color: #4f63ff; }
.feed-layout .actions { padding-top: 2px; }
.feed-layout .list-reply-form {
  background: linear-gradient(180deg, #fcfdff 0%, #f8faff 100%);
  border-color: #e8edfb;
}
.feed-layout aside .card { border: 1px solid #edf1fb; }
.feed-layout aside .card h3 { margin: 0 0 10px; color: #1f2430; }
.feed-layout aside ol { margin: 0; padding-left: 18px; color: #525b70; }
.feed-layout aside li { margin: 7px 0; }
.detail-layout { align-items: start; }
.detail-card { padding: 16px 18px; }
.detail-head h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.35; color: #101525; }
.detail-author { font-weight: 600; color: #343b4e; }
.detail-head .post-meta {
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  font-size: 13px;
}
.detail-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2ff;
  color: #4f63ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 24px;
}
.detail-author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topic-tag { background: #f2f4ff; color: #5963d9; border-radius: 12px; padding: 2px 8px; font-size: 12px; }
.post-content {
  margin-top: 14px;
  box-sizing: border-box;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", Arial, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #25314c;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.post-content > * { box-sizing: border-box; max-width: 100%; }
.post-content > :first-child { margin-top: 0 !important; }
.post-content > :last-child { margin-bottom: 0 !important; }
.post-content p { margin: 0 0 12px; min-height: 1.85em; }
.post-content p:empty { min-height: 1.85em; }
.post-content p:last-child { margin-bottom: 0; }
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 8px 0 12px;
  color: #1b2d4a;
  line-height: 1.35;
}
.post-content h1 {
  font-size: 30px;
  line-height: 1.3;
  text-align: center;
}
.post-content h2 {
  font-size: 24px;
  text-align: center;
}
.post-content h3 { font-size: 20px; line-height: 1.4; }
.post-content h4 { font-size: 18px; }
.post-content h5 { font-size: 16px; }
.post-content h6 { font-size: 14px; }
.post-content ul,
.post-content ol {
  margin: 0 0 12px 22px;
  padding: 0;
}
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-left: 4px solid #4f8fff;
  background: #f7faff;
  color: #33405d;
}
.post-content hr {
  border: 0;
  border-top: 1px solid #dce5ff;
  margin: 14px 0;
}
.post-content a {
  color: #4f63ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
}
.post-content img {
  margin: 4px 0;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.post-content video {
  max-width: 100%;
  display: block;
  margin: 8px 0 14px;
  background: #0f172a;
  border-radius: 8px;
  vertical-align: middle;
  cursor: pointer;
  transition: box-shadow 0.18s ease, opacity 0.18s ease;
}
.post-content video:not([height]) {
  height: auto;
}
.post-content img:hover,
.post-content video:hover,
.detail-video-player:hover {
  opacity: 0.96;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.post-content figure {
  margin: 10px 0 14px;
  max-width: 100%;
}
.post-content figure img,
.post-content figure video {
  margin: 0;
}
.post-content figcaption {
  margin-top: 6px;
  color: #7c8598;
  font-size: 12px;
  text-align: center;
}
.post-content table {
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  table-layout: auto;
}
.post-content th,
.post-content td {
  border: 1px solid #dce5ff;
  padding: 8px 10px;
  vertical-align: top;
}
.post-content pre {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #101828;
  color: #f8fafc;
  overflow: auto;
  line-height: 1.6;
}
.post-content code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}
.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.detail-video-wrap {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e6ebfa;
  background: #0f172a;
}
.detail-video-player {
  display: block;
  width: 100%;
  max-height: 460px;
  background: #0f172a;
  cursor: pointer;
  transition: box-shadow 0.18s ease, opacity 0.18s ease;
}
.detail-attachment-list {
  margin-top: 12px;
  border: 1px solid #e6ebfa;
  border-radius: 10px;
  background: #fbfcff;
  overflow: hidden;
}
.detail-attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #edf1fb;
}
.detail-attachment-item:first-child { border-top: 0; }
.detail-attachment-ext {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f16464;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}
.detail-attachment-main { min-width: 0; flex: 1; }
.detail-attachment-name {
  color: #1a2238;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-all;
}
.detail-attachment-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}
.detail-attachment-action {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dce4ff;
  background: #f7f9ff;
  color: #5f62ff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.detail-attachment-action:hover {
  border-color: #bccbff;
  background: #eef2ff;
}
.detail-attachment-action.is-view::before {
  content: "👁";
  font-size: 12px;
  margin-right: 4px;
  line-height: 1;
}
.detail-attachment-action.is-download {
  border-color: #cfd7ff;
  background: #5f62ff;
  color: #fff;
}
.detail-attachment-action.is-download:hover {
  border-color: #5158f6;
  background: #5158f6;
}
.detail-attachment-action.is-download::before {
  content: "↓";
  margin-right: 4px;
  line-height: 1;
}
.detail-viewed {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #e6ebfa;
  border-radius: 16px;
  background: #fafcff;
  color: #6f7890;
  font-size: 12px;
}
.detail-viewed-avatars {
  display: inline-flex;
  align-items: center;
}
.detail-viewed-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #fff;
  margin-left: -6px;
  background: #e7ecff;
  color: #5060df;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-viewed-avatar:first-child { margin-left: 0; }
.detail-viewed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-viewed-text { white-space: nowrap; }
.detail-actions { margin-top: 14px; border-top: 1px solid #eff2fb; padding-top: 10px; }
.post-admin-menu { position: relative; margin-left: auto; display: inline-flex; align-items: center; }
.post-admin-toggle-btn { letter-spacing: 1px; font-weight: 700; }
.post-admin-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  border: 1px solid #e7ecf9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 34, 66, 0.16);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 35;
}
.post-admin-menu-panel[hidden] { display: none !important; }
.post-admin-action-btn {
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  color: #2e3850;
  font-size: 13px;
  line-height: 1;
  padding: 10px 10px;
  cursor: pointer;
}
.post-admin-action-btn:hover { background: #f5f8ff; color: #5262de; }
.post-admin-action-btn.is-danger { color: #c44747; }
.post-admin-action-btn.is-danger:hover { background: #fff5f5; color: #bf2f2f; }
.detail-side-card { position: sticky; top: 64px; padding: 18px 16px; text-align: center; }
.detail-side-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin: 0 auto 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: #6972ff;
}
.detail-side-card h3 { margin: 0 0 6px; font-size: 18px; color: #111729; }
.detail-side-desc { margin: 0; color: #7f879b; font-size: 12px; line-height: 1.7; text-align: left; }
.detail-side-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 0; }
.detail-side-stats strong { display: block; color: #171c2d; font-size: 20px; line-height: 1.1; margin-top: 6px; }
.detail-side-stats span { color: #8d94a6; font-size: 12px; }
.detail-side-actions { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.detail-side-actions .btn-outline { padding: 7px 0; }
.detail-comment-card { padding: 16px 20px 16px; border: 1px solid #e8edf9; border-radius: 8px; }
.detail-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.detail-comment-head-main { display: inline-flex; align-items: center; gap: 12px; }
.detail-comment-head-main a {
  color: #9aa2b5;
  font-size: 14px;
  font-weight: 500;
}
.detail-comment-head-main a.is-active { color: #161b2b; font-size: 14px; font-weight: 700; line-height: 1; }
.detail-comment-sort { display: inline-flex; gap: 2px; }
.detail-comment-sort a {
  border: 1px solid transparent;
  background: transparent;
  color: #6d7588;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  padding: 5px 9px;
  cursor: pointer;
}
.detail-comment-sort a.is-active { color: #2e374d; border-color: #e3e8f6; background: #fff; }
.detail-comment-editor {
  border: 1px solid #edf1fb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
}
.detail-comment-editor.list-reply-form { border-color: #edf1fb; padding: 10px 12px; }
.detail-comment-editor-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #778097;
  font-size: 12px;
  margin-bottom: 8px;
}
.detail-comment-editor-user strong { display: block; color: #1a2337; font-size: 13px; line-height: 1.1; }
.detail-comment-editor-user span { font-size: 12px; color: #8a92a5; }
.detail-comment-avatar.is-editor { width: 26px; height: 26px; font-size: 11px; }
.detail-comment-switch-btn {
  border: 1px solid #e7ecf8;
  background: #fff;
  color: #667089;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  display: none;
}
.detail-ai-assist-btn {
  margin-left: auto;
  border: 0;
  background: #f1ecff;
  color: #6a5fff;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  cursor: pointer;
}
.detail-comment-editor textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #e3e9f8;
  border-radius: 8px;
  background: #fff;
  color: #2a3247;
  font-size: 13px;
  padding: 10px 12px;
  box-sizing: border-box;
}
.detail-comment-editor textarea::placeholder { color: #a0a8bc; }
.detail-reply-input-row { margin-top: 0; }
.detail-comment-editor-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-editor-tools { display: inline-flex; gap: 6px; }
.detail-comment-editor .detail-editor-tools .list-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e3e9f8;
  background: #fafcff;
  color: #76809a;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.detail-comment-editor .detail-editor-tools .list-tool-btn:hover {
  color: #5d68e0;
  border-color: #d9e0f7;
  background: #f5f8ff;
}
.detail-editor-publish { padding: 6px 14px; border-radius: 14px; font-size: 12px; }
.detail-comment-list { display: grid; gap: 2px; }
.detail-inline-reply-box {
  margin: 6px 0 10px 40px;
}
.detail-inline-reply-form {
  border: 1px solid #edf1fb;
  border-radius: 10px;
  background: #fbfcff;
  padding: 8px 10px;
}
.detail-like-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf1fb;
}
.detail-like-item:first-child { border-top: 0; }
.detail-like-main { display: grid; gap: 3px; }
.detail-like-main strong { font-size: 13px; color: #182033; line-height: 1; }
.detail-like-main span { font-size: 12px; color: #8e96aa; line-height: 1; }
.detail-comment-empty {
  border: 1px dashed #e3e8f7;
  border-radius: 10px;
  color: #8f98ad;
  text-align: center;
  font-size: 13px;
  padding: 14px 12px;
}
.detail-comment-item {
  display: flex;
  align-items: flex-start !important;
  gap: 10px;
  padding: 14px 10px 12px;
  border-top: 1px solid #edf1fb;
  flex-wrap: nowrap;
  border-radius: 8px;
  background: #fff;
}
.detail-comment-item:first-child { border-top: 0; }
.detail-comment-item + .detail-comment-item { margin-top: 6px; }
.detail-comment-item.is-child {
  margin: 8px 0 0 38px !important;
  background: #f8faff;
  border: 1px solid #eaf0ff;
  border-top: 1px solid #eaf0ff;
  position: relative;
}
.detail-comment-item.is-child::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: #dbe4ff;
}
.detail-comment-item[data-depth="2"] {
  margin-left: 58px !important;
  background: #f4f7ff;
  border-color: #dfe8ff;
}
.detail-comment-item[data-depth="2"]::before { background: #cfdcff; }
.detail-comment-item[data-depth="3"],
.detail-comment-item[data-depth="4"],
.detail-comment-item[data-depth="5"] {
  margin-left: 74px !important;
  background: #f1f5ff;
  border-color: #d7e2ff;
}
.detail-comment-item[data-depth="3"]::before,
.detail-comment-item[data-depth="4"]::before,
.detail-comment-item[data-depth="5"]::before { background: #c5d4ff; }
.detail-comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f2ff;
  color: #4a57d8;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 30px;
  align-self: flex-start !important;
  margin-top: 0 !important;
}
.detail-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-comment-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.detail-comment-top {
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 8px;
  color: #6d768d;
  font-size: 12px;
  line-height: 1;
  margin-bottom: 5px;
  white-space: nowrap;
  flex-wrap: nowrap;
  min-width: 0;
}
.detail-comment-top strong {
  color: #182033;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.detail-comment-reply-tag {
  color: #6674d8;
  background: #eef1ff;
  border-radius: 10px;
  padding: 2px 8px;
}
.detail-comment-floor { margin-left: auto; color: #9ea5b9; }
.detail-comment-content { font-size: 13px; color: #262f45; line-height: 1.65; word-break: break-word; }
.detail-comment-content a { color: #4f63ff; word-break: break-all; }
.detail-comment-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: #9da5b8;
  font-size: 12px;
  white-space: nowrap;
  flex-wrap: nowrap;
  min-width: 0;
}
.detail-comment-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
.comment-admin-menu { position: relative; display: inline-flex; align-items: center; }
.comment-admin-toggle-btn { letter-spacing: 1px; font-weight: 700; }
.comment-admin-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 106px;
  border: 1px solid #e7ecf9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 34, 66, 0.12);
  padding: 4px;
  display: grid;
  z-index: 30;
}
.comment-admin-menu-panel[hidden] { display: none !important; }
.comment-admin-action-btn {
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 6px;
  color: #3a445b;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}
.comment-admin-action-btn:hover { background: #f5f8ff; color: #5262de; }
.detail-comment-bottom > span { white-space: nowrap; flex: 0 0 auto; }
.detail-comment-bottom .detail-reply-btn,
.detail-comment-bottom .detail-lite-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}
.detail-lite-btn { color: #8a92a7; }
.detail-lite-btn:hover { color: #5863da; }
.comment-inline-image { max-width: 280px; max-height: 200px; border-radius: 8px; margin: 6px 0; border: 1px solid #e7ecfa; display: block; }
.reply-btn { margin-top: 6px; border: 0; background: transparent; color: #5863da; cursor: pointer; font-size: 12px; padding: 0; }
.reply-btn:hover { color: #3847d0; }
.profile-card { padding: 12px; }
.profile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.profile-avatar { width: 46px; height: 46px; border-radius: 50%; background: #e0a96d; color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.profile-head h3 { margin: 0; font-size: 15px; line-height: 1.2; }
.profile-head p { margin: 1px 0 0; color: #9ca2af; font-size: 12px; line-height: 1.2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; padding: 10px 0 12px; border-top: 1px solid #f0f2f8; border-bottom: 1px solid #f0f2f8; }
.quick-grid a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #5b5d63; line-height: 1.15; text-align: center; padding: 3px 2px; border-radius: 8px; }
.quick-grid a:hover { background: #f7f9ff; }
.quick-ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: inherit; }
.quick-ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.profile-actions .btn-primary svg,
.profile-actions .btn-outline svg { width: 16px; height: 16px; margin-right: 6px; }
.quick-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.quick-count { font-size: 12px; color: #6f7892; white-space: nowrap; }
.profile-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-primary { border: 0; background: #5f62ff; color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline { border: 1px solid #d8dcec; color: #4f5567; background: #fff; border-radius: 6px; padding: 8px 16px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.form { display: grid; gap: 10px; }
.board-tree-picker { position: relative; }
.board-tree-trigger {
  width: 100%;
  height: 40px;
  border: 1px solid #d8dceb;
  border-radius: 8px;
  background: #fff;
  color: #2d3549;
  text-align: left;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}
.board-tree-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe5f7;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(20, 35, 90, 0.12);
  z-index: 40;
}
.board-tree-list { padding: 6px; display: grid; gap: 2px; }
.board-tree-item { border-radius: 8px; }
.board-tree-parent-row { display: flex; align-items: center; gap: 4px; }
.board-tree-parent,
.board-tree-child {
  width: 100%;
  border: 0;
  background: transparent;
  color: #273148;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  border-radius: 8px;
}
.board-tree-parent {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.board-tree-parent-select { flex: 1; justify-content: flex-start; }
.board-tree-expand-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa2b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 28px;
}
.board-tree-expand-btn:hover { background: #f6f8ff; color: #4f63ff; }
.board-tree-caret { color: #9aa2b5; transition: transform .16s ease; }
.board-tree-item.is-open .board-tree-caret { transform: rotate(90deg); }
.board-tree-parent:hover { background: #f6f8ff; color: #4f63ff; }
.board-tree-children { margin: 2px 0 6px; padding-left: 16px; display: grid; gap: 2px; }
.board-tree-child { padding: 7px 10px; color: #5b6480; }
.board-tree-child:hover { background: #eef2ff; color: #4f63ff; }
.board-tree-parent:disabled,
.board-tree-child:disabled {
  cursor: not-allowed;
  color: #a6aec2;
}
.post-move-board-select-btn.is-selected {
  background: #eef2ff;
  color: #4558eb;
  font-weight: 600;
}
.post-move-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1850;
  background: rgba(11, 18, 37, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.post-move-modal-mask[hidden] { display: none !important; }
.post-move-modal {
  width: min(760px, 100%);
  height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.post-move-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #edf2fb;
}
.post-move-modal-head h3 { margin: 0; font-size: 14px; line-height: 1.2; color: #131a2e; font-weight: 700; }
.post-move-modal-close {
  border: 0;
  background: transparent;
  color: #8f96ab;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}
.post-move-modal-close:hover { background: #f5f7ff; color: #5e69df; }
.post-move-modal-body {
  padding: 10px 14px;
  flex: 1;
  overflow: visible;
}
.post-move-modal-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.post-move-modal-label {
  font-size: 14px;
  color: #171f34;
  line-height: 40px;
}
.post-move-modal-label .required { color: #e84b4b; margin-right: 2px; }
.post-move-board-picker {
  position: relative;
  width: min(430px, 100%);
}
.post-move-board-trigger {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #adb5c8 50%), linear-gradient(135deg, #adb5c8 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.post-move-board-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  max-height: 560px;
  z-index: 1900;
}
.post-move-board-status {
  padding: 10px 12px;
  font-size: 13px;
  color: #6f7892;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.post-move-retry-btn {
  border: 1px solid #d9dff3;
  background: #fff;
  color: #5663d8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.post-move-retry-btn:hover { background: #f3f6ff; }
.post-move-modal-foot {
  margin-top: auto;
  padding: 8px 14px 10px;
  border-top: 1px solid #edf2fb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.rich-editor-wrap {
  border: 1px solid #dfe5f7;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  width: min(100%, 860px);
}
.post-editor-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  width: min(100%, 860px);
}
.post-editor-title-row > label {
  margin: 0;
}
.post-aiwriter-entry-btn {
  margin-left: auto;
  border: 0;
  background: #f1ecff;
  color: #6a5fff;
  border-radius: 12px;
  font-size: 12px;
  padding: 5px 12px;
  line-height: 1;
  cursor: pointer;
}
.rich-editor-toolbar { border-bottom: 1px solid #edf1fb; }
.rich-editor-toolbar .w-e-toolbar {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.rich-editor-toolbar .w-e-toolbar::-webkit-scrollbar {
  height: 6px;
}
.rich-editor-toolbar .w-e-toolbar::-webkit-scrollbar-thumb {
  background: #dbe1f2;
  border-radius: 999px;
}
.rich-editor-toolbar .w-e-toolbar::-webkit-scrollbar-track {
  background: transparent;
}
.rich-editor-toolbar .w-e-bar-item[data-custom-menu="paragraph-spacing"] button {
  white-space: nowrap;
}
.rich-editor-toolbar .w-e-bar-item[data-custom-menu="paragraph-spacing"] .title {
  margin-left: 0;
}
.rich-editor-toolbar .w-e-bar-item[data-custom-menu="paragraph-spacing"] .w-e-select-list {
  left: 0;
  min-width: 88px;
  max-height: 320px;
  z-index: 60;
}
.rich-editor-toolbar .w-e-bar-item[data-custom-menu="paragraph-spacing"] .w-e-select-list ul li {
  padding-left: 10px;
}
.post-editor-quick-tools {
  border-bottom: 1px solid #edf1fb;
  background: #fafcff;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.post-editor-time-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-editor-time-format {
  border: 1px solid #dfe5f7;
  border-radius: 6px;
  background: #fff;
  color: #3c455d;
  font-size: 12px;
  height: 28px;
  padding: 0 8px;
}
.post-editor-quick-tools .editor-tool-btn {
  height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}
.post-editor-quick-tools .editor-tool-btn.is-active {
  background: #f2f4ff;
  color: #4f63ff;
  border-color: #cdd6ff;
}
.rich-editor-container { min-height: 420px; }
.rich-editor-wrap .w-e-text-container { min-height: 420px !important; }
.rich-editor-wrap .w-e-text-placeholder { top: 12px !important; }
.rich-editor-wrap .tox.tox-tinymce {
  border: 1px solid #dfe5f7;
  border-radius: 10px;
  box-shadow: none !important;
}
.rich-editor-wrap .tox.tox-tinymce:focus-within {
  border-color: #dfe5f7 !important;
  box-shadow: none !important;
}
.rich-editor-wrap .tox .tox-edit-area::before {
  border: 0 !important;
}
.post-extra-panel {
  border: 1px solid #edf1fb;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 14px;
}
.post-extra-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
}
#post-display-publish-at {
  width: 240px;
  max-width: 100%;
}
.post-extra-label {
  margin: 0;
  color: #1f2430;
  font-size: 16px;
  font-weight: 500;
}
.post-extra-upload-btn {
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border-color: #e4e9f8;
  color: #2b3550;
}
.post-attachment-list {
  grid-column: 2 / 3;
  display: grid;
  gap: 8px;
}
.post-attachment-list[hidden] { display: none !important; }
.post-attachment-item {
  border: 1px solid #e6ebfa;
  border-radius: 8px;
  background: #fafcff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}
.post-attachment-item a {
  color: #4f63ff;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-attachment-remove-btn {
  border: 0;
  background: transparent;
  color: #8b93a6;
  cursor: pointer;
  font-size: 12px;
}
.post-cover-row { align-items: start; }
.post-cover-box {
  position: relative;
  width: 192px;
  height: 108px;
}
.post-cover-uploader {
  width: 100%;
  height: 100%;
  border: 1px dashed #d8dff2;
  border-radius: 8px;
  background: #fff;
  color: #8590a8;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 8px;
}
.post-cover-uploader:hover {
  border-color: #bfcaff;
  color: #5f62ff;
  background: #fafbff;
}
.post-cover-uploader[hidden] { display: none !important; }
.post-cover-uploader-icon { font-size: 20px; line-height: 1; }
.post-cover-uploader-text { font-size: 16px; font-weight: 500; line-height: 1; }
.post-cover-uploader-tip { font-size: 12px; color: #a0a8bc; line-height: 1; }
.post-cover-preview-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid #e5ebfa;
  object-fit: cover;
  display: block;
}
.post-cover-preview-img[hidden] { display: none !important; }
.post-cover-hover-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.post-cover-hover-actions[hidden] { display: none !important; }
.post-cover-box.has-image:hover .post-cover-hover-actions {
  opacity: 1;
  pointer-events: auto;
}
.post-cover-hover-btn {
  border: 1px solid #e4e9f8;
  background: #fff;
  color: #2b3550;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.post-cover-hover-btn.is-danger {
  color: #d93025;
  border-color: #f7b4b0;
  background: #fff3f2;
}
.post-cover-hover-btn.is-danger:hover {
  color: #fff;
  border-color: #d93025;
  background: #d93025;
}
.cover-crop-mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 25, 41, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 130;
}
.cover-crop-mask[hidden] { display: none !important; }
.cover-crop-dialog {
  width: 540px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8ecf8;
  box-shadow: 0 12px 30px rgba(18, 25, 41, 0.2);
}
.cover-crop-head {
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1fb;
}
.cover-crop-head h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  color: #1d2335;
}
.cover-crop-close-btn {
  border: 0;
  background: transparent;
  color: #8f97ab;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.cover-crop-body { padding: 18px 24px 10px; }
#cover-crop-canvas {
  width: 100%;
  height: auto;
  background: #6a6a6a;
  display: block;
  touch-action: none;
  cursor: grab;
}
#cover-crop-canvas.is-dragging { cursor: grabbing; }
.cover-crop-zoom-row {
  padding: 8px 24px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cover-crop-zoom-btn {
  border: 0;
  background: transparent;
  color: #2f374b;
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  cursor: pointer;
}
#cover-crop-zoom-range {
  width: auto !important;
  flex: 1;
  margin: 0;
}
.cover-crop-foot {
  border-top: 1px solid #edf1fb;
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cover-crop-confirm-btn { min-width: 66px; }
.post-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 2px 0 6px;
  border-bottom: 1px solid #eef2fb;
}
.post-create-head h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: #1f2940;
  padding-left: 10px;
  border-left: 3px solid #6a6dff;
}
.post-create-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-create-quick-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 18px;
  border-color: #e4e9f8;
  color: #3d4861;
  background: #fff;
}
.post-publish-spacer { height: 72px; }
.post-publish-bar {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 24px));
  height: 52px;
  border: 1px solid #e7ebf7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 90;
}
.post-publish-tip {
  color: #b1b8c9;
  font-size: 12px;
  white-space: nowrap;
}
.post-publish-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-publish-action-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border-color: #e1e6f5;
  color: #4b556f;
  background: #fff;
}
.post-publish-submit-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
}
.post-inline-preview-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 68px;
  width: min(560px, calc(100vw - 24px));
  border: 1px solid #e7ebf7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.post-inline-preview-panel[hidden] { display: none !important; }
.post-inline-preview-head {
  height: 42px;
  border-bottom: 1px solid #edf1fb;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}
.post-inline-preview-title-wrap {
  min-width: 0;
  display: grid;
  gap: 0;
}
.post-inline-preview-title {
  color: #1f2430;
  font-size: 14px;
  line-height: 1;
}
.post-inline-preview-tip {
  color: #8a93a8;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-inline-preview-close {
  border: 0;
  background: transparent;
  color: #8f97ab;
  width: 24px;
  height: 24px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.post-inline-preview-close:hover {
  background: #f6f8ff;
  color: #4f63ff;
}
.post-inline-preview-frame {
  width: 100%;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
}
.post-box-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.post-box-mask[hidden] { display: none !important; }
.post-box-dialog {
  width: 560px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 140px);
  background: #fff;
  border: 1px solid #e7ebf7;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(18, 25, 41, 0.16);
  display: flex;
  flex-direction: column;
}
.post-box-head {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1fb;
}
.post-box-head h3 {
  margin: 0;
  font-size: 18px;
  color: #1d2335;
}
.post-box-close-btn {
  border: 0;
  background: transparent;
  color: #8f97ab;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.post-box-body {
  padding: 12px 14px;
  max-height: min(520px, calc(100vh - 240px));
  overflow: auto;
  display: grid;
  gap: 8px;
}
.post-box-item {
  border: 1px solid #e8ecf8;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.post-box-item-main { min-width: 0; display: grid; gap: 4px; }
.post-box-item-main strong {
  color: #1f2430;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-box-item-main span { color: #8d95a8; font-size: 12px; }
.post-box-item-actions { display: inline-flex; gap: 6px; }
.post-box-item-actions .btn-outline { padding: 4px 10px; font-size: 12px; }
.post-box-empty {
  border: 1px dashed #dfe5f7;
  border-radius: 8px;
  color: #97a0b6;
  text-align: center;
  padding: 20px 10px;
  font-size: 13px;
}
.schedule-publish-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 115;
}
.schedule-publish-mask[hidden] { display: none !important; }
.schedule-publish-dialog {
  width: 620px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #e7ebf7;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 25, 41, 0.16);
}
.schedule-publish-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #edf1fb;
}
.schedule-publish-head h3 { margin: 0; font-size: 20px; color: #1d2335; line-height: 1; }
.schedule-publish-close-btn {
  border: 0;
  background: transparent;
  color: #8f97ab;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.schedule-publish-body { min-height: 170px; padding: 24px 20px 12px; }
.schedule-publish-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.schedule-publish-row label { width: 84px; font-size: 14px; color: #1f2430; }
.schedule-publish-row input {
  width: 200px !important;
  height: 38px;
  border: 1px solid #dfe5f7;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
}
.schedule-publish-warning {
  margin: 16px 0 0 94px;
  color: #ff3b3b;
  font-size: 13px;
}
.schedule-publish-foot {
  border-top: 1px solid #edf1fb;
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.post-radio-group { display: inline-flex; align-items: center; gap: 24px; color: #2d3549; }
.post-radio-group label { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; cursor: pointer; }
.post-radio-group input[type="radio"] {
  width: auto !important;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
}
.post-radio-group label {
  white-space: nowrap;
  line-height: 1.2;
}
.post-extra-tip-icon {
  color: #9aa3b8;
  font-size: 13px;
  margin-left: 2px;
  vertical-align: middle;
  cursor: default;
}
.post-scope-targets {
  grid-column: 2 / 3;
  max-width: 460px;
  border: 1px solid #d8dceb;
  border-radius: 8px;
  padding: 8px 10px;
  color: #2d3549;
  font-size: 13px;
}
.post-scope-picker {
  grid-column: 2 / 3;
  max-width: 460px;
  position: relative;
}
.post-scope-targets-display {
  width: 100%;
  background: #fff;
  cursor: pointer;
}
.post-scope-targets-display:focus {
  outline: none;
  border-color: #d8dceb;
  box-shadow: none;
}
.post-scope-targets-display:active {
  outline: none;
  border-color: #d8dceb;
  box-shadow: none;
}
.post-scope-targets-display::placeholder { color: #a0a8bc; }
.post-sync-chat-hint {
  grid-column: 2 / 3;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #98a0b4;
}
.post-scope-picker-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 300px;
  background: #fff;
  border: 1px solid #e7ebf7;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(28, 39, 78, 0.12);
  overflow: hidden;
  z-index: 140;
}
#push-scope-picker-menu {
  top: auto;
  bottom: calc(100% + 4px);
}
.post-scope-picker-option {
  width: 100%;
  border: 0;
  border-top: 1px solid #eef2fb;
  background: #fff;
  text-align: left;
  color: #48506a;
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
}
.post-scope-picker-option:first-child { border-top: 0; }
.post-scope-picker-option:hover { background: #f7f9ff; color: #5864ff; }
.post-scope-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
}
#admin-scope-person-modal-mask { z-index: 360; }
#admin-scope-role-modal-mask,
#admin-bind-role-mask { z-index: 361; }
.post-scope-modal-mask[hidden] { display: none !important; }
.post-scope-modal {
  width: 920px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #e8edf8;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(20, 35, 90, 0.22);
  overflow: hidden;
}
.post-scope-modal-head {
  height: 62px;
  border-bottom: 1px solid #edf1fb;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.post-scope-modal-head h3 { margin: 0; font-size: 20px; line-height: 1; color: #131a2e; letter-spacing: .2px; }
.post-scope-modal-close {
  border: 0;
  background: transparent;
  color: #8d95a9;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.post-scope-modal-body {
  min-height: 470px;
  display: grid;
  grid-template-columns: 340px 1fr;
}
.post-scope-person-left {
  border-right: 1px solid #edf1fb;
  padding: 16px 14px;
  display: grid;
  grid-template-rows: 38px auto 1fr;
  gap: 10px;
  background: #fcfdff;
}
.post-scope-person-left input[type="text"] {
  width: 100% !important;
  height: 40px;
  border: 1px solid #d9e1f5;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
}
.post-scope-person-left input[type="text"]:focus {
  outline: none;
  border-color: #9eacff;
  box-shadow: 0 0 0 3px rgba(95, 98, 255, 0.12);
}
.post-scope-person-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  max-height: 76px;
  overflow: auto;
  align-content: flex-start;
}
.post-scope-person-selected-actions {
  min-height: 24px;
  display: flex;
  justify-content: flex-end;
}
.post-scope-clear-btn {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d9e2ff;
  background: #f6f8ff;
  color: #4f63ff;
  font-size: 12px;
  cursor: pointer;
}
.post-scope-clear-btn:hover {
  border-color: #b8c7ff;
  background: #eef2ff;
}
.post-scope-picked-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dbe3ff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: #4050c9;
  background: #f3f6ff;
}
.post-scope-picked-chip button {
  border: 0;
  background: transparent;
  color: #7580b8;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-size: 14px;
}
.post-scope-person-result {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}
.post-scope-search-title {
  margin: 2px 2px 0;
  color: #8f97ab;
  font-size: 12px;
  line-height: 1.2;
}
.post-scope-search-user-row {
  border: 1px solid #e8eeff;
  border-radius: 10px;
  padding: 8px 9px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.post-scope-search-user-row:hover { border-color: #d7e1ff; background: #fcfdff; }
.post-scope-search-user-row.is-selected {
  border-color: #97abff;
  background: #f3f6ff;
  box-shadow: inset 0 0 0 1px rgba(79, 99, 255, 0.1);
}
.post-scope-search-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2ff;
  color: #4f63ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 40px;
  margin-top: 1px;
}
.post-scope-search-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-scope-search-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.post-scope-search-main strong { color: #1a2238; font-size: 14px; line-height: 1.2; font-weight: 700; }
.post-scope-search-main em { color: #69738f; font-size: 12px; line-height: 1.2; font-style: normal; }
.post-scope-search-main b { color: #8891a8; font-size: 11px; line-height: 1.2; font-weight: 400; }
.post-scope-search-main b i { color: #3f70ff; font-style: normal; font-weight: 700; }
.post-scope-search-main small {
  color: #9aa3b8;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-scope-person-row,
.post-scope-tree-row,
.post-scope-role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f2430;
}
.post-scope-person-row {
  border: 1px solid #eaf0ff;
  border-radius: 10px;
  padding: 8px 9px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(30, 52, 128, 0.04);
}
.post-scope-person-row:hover {
  border-color: #d9e2ff;
  background: #fdfefe;
}
.post-scope-person-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #edf2ff 0%, #e6ecff 100%);
  color: #4f5fe0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 34px;
}
.post-scope-person-main {
  display: grid;
  gap: 2px;
}
.post-scope-person-main strong { font-size: 14px; color: #131a2e; line-height: 1.2; }
.post-scope-person-main em { font-style: normal; color: #9098ad; font-size: 12px; line-height: 1.2; }
.post-scope-org-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-scope-org-back {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: #626c85;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.post-scope-org-head strong { font-size: 19px; line-height: 1.1; color: #121a30; font-weight: 700; }
.post-scope-org-breadcrumb {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}
.post-scope-breadcrumb-item {
  border: 0;
  background: transparent;
  color: #8e97ad;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.post-scope-breadcrumb-item:disabled {
  color: #1f2430;
  font-weight: 600;
  cursor: default;
}
.post-scope-breadcrumb-sep { color: #b1b8c9; font-size: 12px; }
.post-scope-org-list {
  margin-top: 10px;
  max-height: 352px;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}
.post-scope-org-row,
.post-scope-org-user-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.post-scope-org-row label,
.post-scope-org-user-row { flex: 1; }
.post-scope-org-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.post-scope-org-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #cfd7ea;
  background: #fff;
  margin: 0;
  position: relative;
  flex: 0 0 18px;
  cursor: pointer;
}
.post-scope-org-row input[type="checkbox"]:checked {
  border-color: #4f63ff;
  background: #4f63ff;
}
.post-scope-org-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  left: 4px;
  top: 4px;
}
.post-scope-org-row {
  border: 1px solid #edf1fb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.post-scope-org-row.is-all {
  border-style: dashed;
  background: #f9fbff;
  justify-content: flex-start;
}
.post-scope-mode-row {
  border: 0;
  background: transparent;
  color: #2d3549;
  font-size: 14px;
  line-height: 1.35;
  padding: 4px 2px;
  width: 100%;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.post-scope-mode-row:hover { color: #4f63ff; }
.post-scope-mode-dot {
  width: 11px;
  height: 11px;
  border: 1px solid #d3daea;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 11px;
}
.post-scope-org-enter {
  border: 1px solid #e1e7fa;
  background: #f8faff;
  color: #5f6a8a;
  border-radius: 8px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.post-scope-org-enter:hover { border-color: #cad5ff; color: #4f63ff; background: #f2f6ff; }
.post-scope-org-user-row {
  border: 1px solid #ebf0ff;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  width: 100%;
  text-align: left;
  cursor: pointer;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.post-scope-org-user-row:hover { border-color: #d7e1ff; background: #fcfdff; }
.post-scope-org-user-row.is-selected {
  border-color: #97abff;
  background: #f3f6ff;
  box-shadow: inset 0 0 0 1px rgba(79, 99, 255, 0.1);
}
.post-scope-select-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #cfd7ea;
  background: #fff;
  flex: 0 0 18px;
  position: relative;
}
.post-scope-org-user-row.is-selected .post-scope-select-dot {
  border-color: #4f63ff;
  background: #4f63ff;
}
.post-scope-org-user-row.is-selected .post-scope-select-dot::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  left: 4px;
  top: 4px;
}
.post-scope-org-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2ff;
  color: #4f63ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 34px;
  margin-top: 1px;
}
.post-scope-org-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-scope-org-user-main {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: start;
}
.post-scope-org-user-main strong {
  color: #1a2238;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}
.post-scope-org-user-main em {
  color: #97a0b5;
  font-size: 12px;
  line-height: 1.2;
  font-style: normal;
}
.post-scope-person-right {
  padding: 16px 18px 14px;
  overflow: hidden;
  background: #fff;
}
.post-scope-modal-foot {
  border-top: 1px solid #edf1fb;
  padding: 12px 16px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  background: #fff;
}
.post-scope-role-modal { width: 720px; }
.post-scope-role-body { min-height: 260px; grid-template-columns: 320px 1fr; }
.post-scope-role-left {
  border-right: 1px solid #edf1fb;
  padding: 16px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.post-scope-role-left #scope-role-list,
.post-scope-role-left #admin-scope-role-list,
.post-scope-role-left #admin-bind-role-list { display: grid; gap: 8px; }
.post-scope-role-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f2430;
  line-height: 1.3;
  min-height: 30px;
  cursor: pointer;
}
.post-scope-role-row input[type="checkbox"] { margin: 0; cursor: pointer; }
.post-scope-role-right {
  padding: 16px 16px 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: #fff;
}
.post-scope-role-right h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #121a30;
  font-weight: 600;
}
.post-scope-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  min-height: 84px;
}
.post-scope-user-chip {
  background: #f3f5f9;
  border-radius: 8px;
  padding: 6px 10px;
  color: #2d3549;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #edf1fb;
}
.post-scope-chip-remove {
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b9bec8;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.post-scope-chip-remove:hover {
  background: #949dad;
}
.post-scope-role-foot {
  margin-top: 8px;
  border-top: 0;
  padding: 0;
  justify-content: flex-end;
  gap: 10px;
}
.post-scope-role-foot .btn-outline,
.post-scope-role-foot .btn-primary {
  height: 36px;
  min-width: 66px;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 14px;
}
.post-scope-empty { margin: 0; color: #98a0b4; font-size: 13px; }
.post-scope-targets[hidden] { display: none !important; }
.offline-editor { border: 1px solid #dfe5f7; border-radius: 10px; background: #fff; overflow: hidden; }
.offline-editor-toolbar {
  border-bottom: 1px solid #edf1fb;
  background: #fafcff;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.editor-tool-btn {
  border: 1px solid #dfe5f7;
  background: #fff;
  color: #3c455d;
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
}
.editor-tool-btn:hover { background: #f3f6ff; color: #4f63ff; border-color: #ced7ff; }
.editor-sep { width: 1px; height: 22px; background: #e9edf9; margin: 0 2px; }
.offline-editor-surface {
  min-height: 420px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #1f2430;
  outline: none;
}
.offline-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: #a2a9bc;
}
.offline-editor-surface table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.offline-editor-surface th,
.offline-editor-surface td { border: 1px solid #dfe5f7; padding: 6px; }
.offline-editor-surface img,
.offline-editor-surface video { max-width: 100%; border-radius: 6px; }
.form input, .form textarea, .form select { width: 100%; border: 1px solid #d8dceb; border-radius: 8px; padding: 10px; }
.form-inline { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.form-inline input { flex: 1; border: 1px solid #d8dceb; border-radius: 8px; padding: 8px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
select {
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):hover,
textarea:hover,
select:hover {
  border-color: #d6ddee !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
  border-color: #cfd8ee !important;
  box-shadow: 0 0 0 2px rgba(95, 98, 255, 0.06) !important;
}
.comment-item { border-left: 2px solid #e8ebff; margin: 10px 0; padding-left: 10px; }
.comment-header { display: flex; gap: 10px; color: #667; font-size: 13px; margin-bottom: 6px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid #eef1f7; padding: 10px 8px; text-align: left; }
.error { color: #d32f2f; }
.tips { color: #667; font-size: 13px; }
.ui-layer-root { position: fixed; inset: 0; pointer-events: none; z-index: 2147483647 !important; }
.ui-toast-root {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
  z-index: 2147483647 !important;
}
.ui-toast {
  display: inline-flex;
  align-items: center;
  min-width: 160px;
  max-width: 420px;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(21, 32, 74, 0.2);
  background: #4f63ff;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}
.ui-toast.is-error { background: #d04b4b; }
.ui-toast.is-success {
  background: #fff;
  color: #2d3549;
  border: 1px solid #e3ebd7;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}
.ui-toast.is-success::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #52c41a;
  color: #fff;
  margin-right: 8px;
  font-weight: 700;
  font-size: 12px;
}
.ui-toast.is-leaving { opacity: 0; transform: translateY(-5px); }
.ui-dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 40, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 260;
}
.ui-dialog-mask[hidden] { display: none !important; }
.ui-dialog {
  width: 360px;
  max-width: calc(100vw - 24px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 35, 90, 0.22);
  padding: 18px 16px 14px;
}
.ui-dialog-title {
  margin: 0;
  color: #1b2336;
  font-size: 18px;
  line-height: 1.2;
}
.ui-dialog-message {
  margin: 10px 0 0;
  color: #64708a;
  font-size: 13px;
  line-height: 1.6;
}
.ui-dialog-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ui-dialog-btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}
.ui-dialog-btn.is-cancel {
  background: #f2f5ff;
  color: #5c6784;
}
.ui-dialog-btn.is-confirm {
  background: #5f62ff;
  color: #fff;
}
.ui-dialog-btn.is-danger {
  background: #d64f4f;
  color: #fff;
}
.ai-writer-mask {
  position: fixed;
  inset: 0;
  background: rgba(13, 23, 43, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 280;
}
.ai-writer-mask[hidden] { display: none !important; }
.ai-writer-dialog {
  width: min(940px, calc(100vw - 48px));
  height: min(680px, calc(100vh - 56px));
  background: #f8faff;
  border: 1px solid #dce4ff;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(13, 35, 105, 0.26);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ai-writer-input-dialog {
  width: min(560px, calc(100vw - 28px));
  height: auto;
  max-height: min(220px, calc(100vh - 20px));
  background: #fff;
  border-radius: 12px;
}
.ai-writer-input-dialog .ai-writer-head {
  height: 42px;
  padding: 0 10px;
  border-bottom: 0;
  background: #fff;
}
.ai-writer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #7a5bff 0%, #4b8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 15px;
}
.ai-writer-brand-title::before {
  content: "✦";
  font-size: 12px;
  line-height: 1;
}
.ai-writer-topic-panel {
  flex: 0 0 auto;
  padding: 0 10px 8px;
  display: flex;
}
.ai-writer-topic-panel textarea {
  width: 100%;
  height: 74px;
  min-height: 74px;
  max-height: 74px;
  border: 0;
  outline: none;
  resize: none;
  color: #2a3247;
  font-size: 13px;
  line-height: 1.5;
}
.ai-writer-topic-panel textarea::placeholder {
  color: #c9cfdd;
  font-size: 13px;
}
.ai-writer-input-foot {
  border-top: 1px solid #e8edff;
  padding: 6px 10px;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
.ai-writer-input-foot .btn-outline,
.ai-writer-input-foot .btn-primary {
  min-width: 56px;
  height: 28px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
  padding: 0 10px;
}
.ai-writer-result-dialog {
  width: min(860px, calc(100vw - 24px));
  height: auto;
  max-height: min(620px, calc(100vh - 20px));
  border-radius: 12px;
}
.ai-writer-result-dialog .ai-writer-head {
  height: 48px;
  padding: 0 12px;
}
.ai-writer-result-dialog .ai-writer-head h3 {
  font-size: 14px;
}
.ai-writer-result-dialog .ai-writer-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.ai-writer-result-dialog .ai-writer-body {
  margin: 0 8px 6px;
  padding: 6px;
  flex: 1 1 auto;
  min-height: 140px;
  max-height: calc(100vh - 190px);
}
.ai-writer-result-dialog .ai-writer-title {
  margin: 0 auto 8px;
  font-size: 24px;
  line-height: 1.3;
}
.ai-writer-result-dialog .ai-writer-content {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.6;
}
.ai-writer-result-dialog .ai-writer-content h1 { font-size: 24px; }
.ai-writer-result-dialog .ai-writer-content h2 { font-size: 22px; }
.ai-writer-result-dialog .ai-writer-content h3 { font-size: 18px; }
.ai-writer-result-dialog .ai-writer-content h1,
.ai-writer-result-dialog .ai-writer-content h2,
.ai-writer-result-dialog .ai-writer-content h3,
.ai-writer-result-dialog .ai-writer-content h4,
.ai-writer-result-dialog .ai-writer-content h5,
.ai-writer-result-dialog .ai-writer-content h6 {
  margin-bottom: 8px;
}
.ai-writer-result-dialog .ai-writer-content p {
  margin: 0 0 8px;
}
.ai-writer-result-dialog .ai-writer-foot {
  padding: 8px 10px;
  gap: 6px;
}
.ai-writer-result-dialog .ai-writer-foot .btn-outline,
.ai-writer-result-dialog .ai-writer-foot .btn-primary {
  min-width: 76px;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
}
.detail-ai-writer-dialog {
  width: min(560px, calc(100vw - 20px));
  height: auto;
  max-height: min(360px, calc(100vh - 20px));
  border-radius: 12px;
}
.detail-ai-writer-dialog .ai-writer-body {
  flex: 0 1 auto;
  margin: 0 6px 6px;
  padding: 4px;
  min-height: 92px;
  max-height: 150px;
}
.detail-ai-writer-dialog .ai-writer-content {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.detail-ai-writer-dialog .ai-writer-title {
  display: none;
}
.detail-ai-writer-dialog .ai-writer-head {
  height: 44px;
  padding: 0 12px;
}
.detail-ai-writer-dialog .ai-writer-head h3 {
  font-size: 14px;
}
.detail-ai-writer-dialog .ai-writer-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.detail-ai-writer-dialog .detail-ai-style-row {
  padding: 6px 12px;
  gap: 6px;
}
.detail-ai-writer-dialog .detail-ai-style-tag {
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}
.detail-ai-writer-dialog .ai-writer-status {
  display: block;
  padding: 0 12px 6px;
  color: #8b93a8;
  font-size: 12px;
  line-height: 1.3;
}
.detail-ai-writer-dialog .ai-writer-foot {
  padding: 6px 10px;
  gap: 6px;
}
.detail-ai-writer-dialog .ai-writer-foot .btn-outline,
.detail-ai-writer-dialog .ai-writer-foot .btn-primary {
  min-width: 72px;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
}
.ai-writer-head {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #e7edff;
  background: linear-gradient(90deg, #ffffff 0%, #f5f8ff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-writer-head h3 {
  margin: 0;
  display: inline-block;
  color: #2f3548;
  font-size: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.ai-writer-head h3::before {
  content: none;
}
.ai-writer-close-btn {
  border: 0;
  background: #f3f6ff;
  color: #7f8aac;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ai-writer-close-btn:hover {
  background: #e9efff;
}
.ai-writer-topic-row {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #edf1fb;
  background: #fff;
}
.ai-writer-topic-row input {
  flex: 1;
  height: 40px;
  border: 1px solid #d5defd;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.ai-writer-topic-row input:focus {
  border-color: #8ea1ff;
  box-shadow: 0 0 0 3px rgba(93, 112, 255, 0.14);
}
.ai-writer-topic-row #ai-writer-generate-btn,
.ai-writer-topic-row button[data-role="generate"] {
  min-width: 92px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(90deg, #6d5cff 0%, #5778ff 100%);
  box-shadow: 0 8px 16px rgba(90, 102, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.ai-writer-topic-row #ai-writer-generate-btn:hover,
.ai-writer-topic-row button[data-role="generate"]:hover {
  filter: brightness(1.05);
}
.detail-ai-style-row {
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #edf1fb;
  background: #fff;
}
.detail-ai-style-tag {
  height: 30px;
  padding: 0 14px;
  border: 1px solid #d9def1;
  border-radius: 8px;
  background: #fff;
  color: #4e5878;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.detail-ai-style-tag:hover {
  border-color: #bec9f3;
  background: #f7f9ff;
}
.detail-ai-style-tag.is-active {
  border-color: #c8ccff;
  background: #eef0ff;
  color: #5462e0;
}
.ai-writer-status {
  display: none;
}
.ai-writer-body {
  margin: 0 10px 10px;
  padding: 8px;
  flex: 1;
  min-height: 280px;
  max-height: 460px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: auto;
  box-shadow: none;
}
.ai-writer-title {
  margin: 2px auto 10px;
  color: #1e2a44;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  max-width: 760px;
}
.ai-writer-content {
  border: 1px solid #dfe7ff;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
  color: #25314c;
  font-size: 18px;
  line-height: 1.78;
  max-width: none;
  width: 100%;
  margin: 0;
}
.ai-writer-content h1,
.ai-writer-content h2,
.ai-writer-content h3,
.ai-writer-content h4,
.ai-writer-content h5,
.ai-writer-content h6 {
  margin: 0 0 12px;
  color: #1b2d4a;
  line-height: 1.35;
}
.ai-writer-content h1 { font-size: 30px; }
.ai-writer-content h2 { font-size: 26px; }
.ai-writer-content h3 { font-size: 22px; }
.ai-writer-content h1,
.ai-writer-content h2 {
  text-align: center;
}
.ai-writer-content ul,
.ai-writer-content ol {
  margin: 0 0 12px 22px;
  padding: 0;
}
.ai-writer-content li { margin-bottom: 8px; }
.ai-writer-content blockquote {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-left: 4px solid #4f8fff;
  background: #fbfdff;
  color: #33405d;
  border-radius: 0 8px 8px 0;
}
.ai-writer-content hr {
  border: 0;
  border-top: 1px solid #dce5ff;
  margin: 14px 0;
}
.ai-writer-content p { margin: 0 0 12px; }
.ai-writer-foot {
  border-top: 1px solid #e8edff;
  padding: 10px 16px;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-writer-foot .btn-outline,
.ai-writer-foot .btn-primary {
  min-width: 92px;
  border-radius: 10px;
  height: 38px;
  font-size: 13px;
}
.ai-writer-foot .btn-outline {
  border: 1px solid #dde3f8;
  background: #fff;
  color: #5d6785;
}
.ai-writer-foot .btn-outline:hover {
  background: #f7f9ff;
}
.ai-writer-foot #ai-writer-confirm-btn,
.ai-writer-foot button[data-role="confirm"] {
  background: linear-gradient(90deg, #6d5cff 0%, #5778ff 100%);
  box-shadow: 0 8px 16px rgba(90, 102, 255, 0.24);
}
.tox .tox-tbtn[title="AI帮写"] {
  border-radius: 8px !important;
  border: 1px solid #dcdffd !important;
  color: #6b58f8 !important;
}
.tox .tox-tbtn[title="AI帮写"]:hover {
  background: #f6f3ff !important;
  border-color: #cfc5ff !important;
}
.admin-console-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.admin-console-layout > .card {
  margin-bottom: 0;
}
.admin-left-menu {
  padding: 6px;
  position: relative;
  top: 0;
  align-self: stretch;
  min-height: 100%;
}
.admin-mobile-nav-toggle {
  display: none;
  border: 1px solid #d8def3;
  border-radius: 8px;
  background: #fff;
  color: #4f63ff;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.admin-mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(13, 21, 44, 0.34);
  z-index: 62;
}
body.is-admin-nav-lock { overflow: hidden; }
.admin-left-group { display: grid; gap: 4px; }
.admin-left-nav { gap: 2px; }
.admin-left-node { display: grid; gap: 0; }
.admin-left-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3e4660;
  text-decoration: none;
  border-radius: 6px;
  padding: 7px 8px;
  border: 1px solid transparent;
}
.admin-left-item span { color: #8f97ad; width: 14px; text-align: center; font-size: 14px; }
.admin-left-ico {
  width: 14px;
  height: 14px;
  border: 1px solid #9da6bc;
  border-radius: 3px;
  position: relative;
  flex: 0 0 14px;
}
.admin-left-ico::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9da6bc;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.admin-left-item em { font-style: normal; font-size: 13px; }
.admin-left-caret {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1px solid #9ba3b8;
  border-bottom: 1px solid #9ba3b8;
  transform: rotate(45deg);
}
.admin-left-item:hover { background: #f7f9ff; border-color: #e8edff; color: #5164ff; }
.admin-left-item.is-active { background: #f8f9ff; border-color: #ecefff; color: #5f62ff; }
.admin-left-item.is-active span { color: #7f84ff; }
.admin-left-item:hover .admin-left-ico,
.admin-left-node.is-open > .admin-left-item .admin-left-ico {
  border-color: #7f88ff;
}
.admin-left-item:hover .admin-left-ico::after,
.admin-left-node.is-open > .admin-left-item .admin-left-ico::after {
  background: #7f88ff;
}
.admin-left-sub {
  margin: 2px 0 4px;
  border-left: 2px solid #eef2fd;
  padding: 2px 0 2px 8px;
  display: none;
  gap: 4px;
}
.admin-left-node.is-open > .admin-left-sub { display: grid; }
.admin-left-sub-item {
  display: block;
  text-decoration: none;
  color: #6b7389;
  border-radius: 6px;
  padding: 6px 8px 6px 12px;
}
.admin-left-sub-item.is-active { background: #f4f6ff; color: #5864ff; font-weight: 600; }
.admin-left-node.is-open > .admin-left-item .admin-left-caret { transform: rotate(225deg); margin-top: 3px; }
.admin-left-node.is-open > .admin-left-item { background: #f7f9ff; border-color: #e8edff; color: #5164ff; }
.admin-permission-page { padding: 0; overflow: hidden; min-height: 560px; }
.admin-permission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 7px;
  border-bottom: 1px solid #edf1fb;
}
.admin-permission-head h1 { margin: 0; font-size: 18px; }
.admin-permission-tabs { display: inline-flex; gap: 8px; }
.admin-permission-tabs button {
  border: 1px solid #e3e8f8;
  border-radius: 16px;
  background: #fff;
  padding: 4px 10px;
  color: #5f6985;
}
.admin-permission-tabs button.is-active { color: #4f63ff; border-color: #ccd5ff; background: #f7f9ff; }
.admin-permission-layout { display: grid; grid-template-columns: 152px 1fr; min-height: 500px; }
.admin-role-sidebar { border-right: 1px solid #edf1fb; padding: 8px 8px; display: grid; align-content: start; gap: 5px; background: #fcfdff; }
.admin-role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 7px;
  color: #2d3549;
  text-decoration: none;
  border: 1px solid transparent;
}
.admin-role-item em { font-style: normal; color: #8e97ad; font-size: 12px; }
.admin-role-item.is-active { background: #f6f8ff; border-color: #e5ebff; color: #4f63ff; }
.admin-role-create-btn {
  border: 1px dashed #d6ddf8;
  border-radius: 8px;
  background: #fff;
  color: #4f63ff;
  padding: 7px 9px;
  cursor: pointer;
}
.admin-role-main {
  padding: 8px 12px 12px;
  display: grid;
  gap: 6px;
  align-content: start;
  grid-auto-rows: min-content;
}
.admin-role-main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.admin-role-main-head h2 { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 700; }
.admin-role-main-head p { margin: 2px 0 0; color: #7e879d; font-size: 12px; }
.admin-role-main-actions { display: inline-flex; gap: 8px; }
.admin-role-filter { margin: 0; }
.admin-role-filter input { max-width: 280px; height: 30px; padding: 0 10px; }
.admin-role-tool-row { display: inline-flex; gap: 8px; align-items: center; margin-top: 2px; }
.admin-role-tool-row .btn-primary,
.admin-role-tool-row .btn-outline {
  height: 30px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
}
.admin-role-user-table { border: 1px solid #edf1fb; border-radius: 10px; overflow: hidden; }
.admin-role-user-table thead th { background: #fff; border-bottom: 1px solid #eff3fd; }
.admin-role-user-table th, .admin-role-user-table td { vertical-align: middle; font-size: 12px; padding: 7px 8px; }
.admin-role-user-table { margin-top: 2px; }
.admin-role-user-table td { border-top: 1px solid #f1f4fc; }
.admin-role-user-table tbody tr:hover td { background: #fafcff; }
.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.admin-table-scroll .table {
  min-width: 680px;
  margin-top: 0;
}
.admin-table-scroll .admin-role-user-table { min-width: 920px; }
.admin-table-scroll .admin-board-table { min-width: 1220px; }
.admin-row-actions { display: inline-flex; gap: 6px; align-items: center; }
.admin-row-actions .btn-outline { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; }
.admin-board-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-board-name-cell.is-child { padding-left: 18px; }
.admin-board-expand-placeholder {
  width: 14px;
  display: inline-block;
  flex: 0 0 14px;
}
.admin-board-expand-btn {
  width: 14px;
  height: 14px;
  border: 0;
  background: transparent;
  color: #7781a1;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 13px;
  transition: transform .16s ease, color .16s ease;
}
.admin-board-expand-btn:hover { color: #4f63ff; }
.admin-board-expand-btn.is-open {
  transform: rotate(90deg);
  color: #4f63ff;
}
.admin-board-child-row td { background: #fbfcff; }
.admin-board-child-row:hover td { background: #f6f9ff; }
.admin-board-child-name {
  position: relative;
}
.admin-board-child-name::before {
  content: "└";
  margin-right: 6px;
  color: #95a0bb;
}
.admin-user-page .admin-role-main { gap: 8px; }
.admin-user-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.admin-user-head-actions .btn-primary { height: 30px; padding: 0 14px; border-radius: 6px; }
.admin-board-page .admin-role-main { gap: 8px; }
.admin-posts-pager {
  margin-top: 4px;
  border: 1px solid #e9eefb;
  border-radius: 10px;
  background: #fbfcff;
}
.admin-user-page .board-posts-pager-info {
  color: #66708d;
  font-size: 13px;
  font-weight: 500;
}
.admin-user-page .board-posts-pager-links { gap: 6px; }
.admin-user-page .board-posts-pager-links .btn-outline {
  min-width: 34px;
  height: 32px;
  padding: 0 12px;
  line-height: 30px;
  border-radius: 8px;
  border-color: #d8e0f6;
  background: #fff;
  color: #45506d;
}
.admin-user-page .board-posts-pager-links .btn-outline:hover {
  border-color: #aebdff;
  color: #4f63ff;
  background: #f6f8ff;
}
.admin-user-page .board-posts-pager-links .btn-outline.is-active {
  background: #5c6dff;
  border-color: #5c6dff;
  color: #fff;
  box-shadow: 0 4px 10px rgba(92, 109, 255, 0.25);
}
.admin-user-page .board-posts-pager-jump { white-space: nowrap; }
.admin-user-page .board-posts-pager-jump input[type="number"] {
  width: 64px;
  height: 32px;
  border-radius: 8px;
}
.admin-vote-page .admin-role-main { gap: 10px; }
.admin-vote-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.admin-vote-toolbar label { color: #56607a; font-size: 13px; }
.admin-vote-toolbar input,
.admin-vote-toolbar select {
  height: 32px;
  border: 1px solid #d9deec;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}
.admin-vote-batch-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-vote-batch-inline select { min-width: 126px; }
.admin-vote-advanced-panel {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.admin-vote-table { min-width: 1320px; }
.admin-vote-title-cell {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-vote-col-advanced.is-hidden { display: none; }
.admin-vote-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-vote-actions .btn-link {
  border: 0;
  background: transparent;
  color: #5f63ff;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.admin-vote-actions .btn-link:hover { color: #414ad6; }
.admin-vote-menu { position: relative; }
.admin-vote-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 140px;
  background: #fff;
  border: 1px solid #e8ecf8;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(26, 44, 95, 0.16);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 40;
}
.admin-vote-menu-item {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  border-radius: 8px;
  padding: 6px 8px;
  color: #2d3550;
  cursor: pointer;
}
.admin-vote-menu-item:hover {
  background: #f4f7ff;
  color: #5164ff;
}
@media (max-width: 980px) {
  .admin-posts-pager {
    gap: 8px;
    align-items: flex-start;
  }
  .admin-user-page .board-posts-pager-jump {
    width: 100%;
    justify-content: flex-end;
  }
}
.admin-board-table td strong { color: #1d2539; font-size: 13px; }
.admin-board-desc {
  margin-top: 3px;
  color: #8d95ab;
  font-size: 12px;
  line-height: 1.5;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-board-dialog {
  width: min(720px, calc(100vw - 120px));
  max-width: calc(100vw - 120px);
}
.admin-board-wizard-dialog {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8edf8;
  box-shadow: 0 18px 36px rgba(18, 26, 48, 0.18);
  height: 620px;
  max-height: calc(100vh - 110px);
}
.admin-board-wizard-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  height: 100%;
  max-height: none;
  min-height: 0;
}
.admin-board-wizard-side {
  border-right: 1px solid #edf1fb;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8ff 100%);
  padding: 10px 10px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.admin-board-wizard-step {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4e5872;
  text-align: left;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.admin-board-wizard-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d9e1f5;
  background: #fff;
  color: #7f8aa6;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}
.admin-board-wizard-step-text { min-width: 0; display: grid; gap: 0; }
.admin-board-wizard-step-text strong {
  color: #26314a;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
}
.admin-board-wizard-step-text em {
  font-style: normal;
  color: #99a2b8;
  font-size: 9px;
  line-height: 1.1;
}
.admin-board-wizard-step:hover {
  border-color: #e0e7ff;
  background: #f9fbff;
}
.admin-board-wizard-step.is-active {
  border-color: #d6dfff;
  background: #f3f6ff;
}
.admin-board-wizard-step.is-active .admin-board-wizard-step-dot {
  border-color: #7d64fb;
  background: #7d64fb;
  color: #fff;
}
.admin-board-wizard-step.is-active .admin-board-wizard-step-text strong { color: #4f63ff; }
.admin-board-wizard-main {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.admin-board-wizard-head {
  height: 44px;
  border-bottom: 1px solid #edf1fb;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-board-wizard-head .ui-dialog-title {
  margin: 0;
  color: #1d2438;
  font-size: 15px;
  line-height: 1;
}
.admin-board-wizard-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f5f7ff;
  color: #8b94ac;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.admin-board-wizard-close:hover {
  background: #eef2ff;
  color: #5f62ff;
}
.admin-board-wizard-body {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 8px 12px 6px;
  scrollbar-gutter: stable;
}
.admin-board-parent-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  border: 1px solid #dce4ff;
  border-radius: 10px;
  background: #f7f9ff;
  color: #4b5673;
  padding: 6px 10px;
}
.admin-board-parent-meta strong {
  color: #1f273d;
  font-size: 14px;
}
.admin-board-step { display: none; }
.admin-board-step.is-active { display: block; }
.admin-board-form-grid { gap: 6px; }
.admin-board-form-grid > label {
  font-size: 11px;
  color: #1f273d;
  font-weight: 600;
}
.admin-board-theme-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 8px;
  align-items: center;
}
.admin-board-theme-row #admin-board-theme-color {
  width: 88px;
  height: 34px;
  padding: 2px;
  border: 1px solid #d8deef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.admin-board-theme-tip {
  margin: -1px 0 1px;
  color: #8f98af;
  font-size: 11px;
}
.admin-board-inline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.admin-board-inline-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.admin-board-admin-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-board-admin-picked {
  min-height: 38px;
  flex: 1;
  border: 1px dashed #d7def2;
  border-radius: 10px;
  padding: 5px 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.admin-board-admin-empty { color: #96a0b8; font-size: 12px; }
.admin-board-admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 14px;
  padding: 5px 10px;
  background: #eef2ff;
  color: #3d4e93;
  font-size: 12px;
  line-height: 1;
}
.admin-board-admin-chip-remove {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(61, 78, 147, 0.16);
  color: #32427f;
  cursor: pointer;
  padding: 0;
  line-height: 16px;
}
.admin-board-admin-add-btn {
  width: 40px;
  height: 40px;
  border: 1px dashed #cfd8f0;
  border-radius: 50%;
  background: #fff;
  color: #8993ac;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.admin-board-admin-add-btn:hover {
  border-color: #9db0ff;
  color: #5f62ff;
}
.admin-board-admin-popover {
  border: 1px solid #e3e9fb;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(32, 44, 88, 0.08);
}
.admin-board-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.admin-board-icon-item {
  border: 1px solid #e6ebfa;
  border-radius: 10px;
  background: #fff;
  color: #2d3549;
  padding: 8px 6px;
  display: grid;
  gap: 4px;
  justify-items: center;
  cursor: pointer;
}
.admin-board-icon-item span { font-size: 20px; line-height: 1; }
.admin-board-icon-item em {
  font-style: normal;
  font-size: 11px;
  color: #8e97ad;
  line-height: 1;
}
.admin-board-icon-item:hover {
  border-color: #d4ddff;
  background: #f9fbff;
}
.admin-board-icon-item.is-active {
  border-color: #7d64fb;
  background: #f5f2ff;
  box-shadow: inset 0 0 0 1px rgba(125, 100, 251, 0.12);
}
.admin-board-admin-picker { max-height: 220px; }
.admin-board-admin-popover-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.admin-board-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d3549;
}
.admin-board-switch-row input { width: auto; margin: 0; }
.admin-board-wizard-actions {
  flex: 0 0 auto;
  border-top: 1px solid #edf1fb;
  background: #fff;
  padding: 8px 12px;
}
.admin-role-dialog,
.admin-bind-user-dialog,
.admin-board-scope-dialog { width: 720px; max-width: calc(100vw - 28px); }
.admin-role-form { display: grid; gap: 10px; }
.admin-role-form input,
.admin-role-form textarea {
  border: 1px solid #d8deef;
  border-radius: 8px;
  padding: 8px 10px;
}
@media (max-width: 960px) {
  .admin-board-dialog { width: min(720px, calc(100vw - 20px)); max-width: calc(100vw - 20px); }
  .admin-board-wizard-dialog {
    height: 560px;
    max-height: calc(100vh - 24px);
  }
  .admin-board-wizard-layout { grid-template-columns: 1fr; min-height: 0; }
  .admin-board-wizard-side {
    border-right: 0;
    border-bottom: 1px solid #edf1fb;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    padding: 10px;
  }
  .admin-board-wizard-body {
    padding: 8px;
    max-height: none;
  }
  .admin-board-inline-row { grid-template-columns: 1fr; gap: 8px; }
}
.admin-permission-tree {
  border: 1px solid #edf1fb;
  border-radius: 8px;
  padding: 10px;
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.admin-permission-row { display: inline-flex; align-items: center; gap: 8px; color: #2d3549; }
.admin-permission-row.is-child { padding-left: 22px; color: #525b73; }
.admin-bind-user-list,
.admin-board-scope-list {
  border: 1px solid #edf1fb;
  border-radius: 8px;
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
}
.admin-bind-user-row {
  border: 1px solid #eef2fd;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-bind-user-row em { margin-left: auto; color: #8a93aa; font-style: normal; }
.qr-popup {
  position: fixed;
  width: 238px;
  z-index: 320;
}
.qr-inner {
  width: 100%;
  background: #fff;
  border: 1px solid #e8ecfb;
  border-radius: 16px;
  padding: 14px 12px 12px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(20, 33, 78, 0.18);
  position: relative;
}
.qr-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #e8ecfb;
  border-bottom: 1px solid #e8ecfb;
  transform: translateX(-50%) rotate(45deg);
}
.qr-popup[data-direction="top"] .qr-arrow {
  bottom: -8px;
}
.qr-popup[data-direction="bottom"] .qr-arrow {
  top: -8px;
  transform: translateX(-50%) rotate(225deg);
}
.qr-close-btn {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #9aa3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.qr-title {
  margin: 4px 0 10px;
  color: #263149;
  font-size: 14px;
  line-height: 1.35;
}
.qr-image {
  width: 176px;
  height: 176px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}
.qr-copy-btn {
  margin-top: 10px;
  width: 118px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e2e8fb;
  background: #fff;
  color: #5460d8;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.qr-copy-btn:hover {
  border-color: #d1dbff;
  background: #f7f9ff;
}
.board-page { display: grid; gap: 18px; }
.board-section {
  background: linear-gradient(180deg, #f9fbff 0%, #f5f7fb 100%);
  border: 1px solid #edf1fb;
  border-radius: 14px;
  padding: 14px;
}
.board-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.board-section-title { margin: 0; font-size: 20px; line-height: 1.15; color: #0f1320; }
.board-section-head p { margin: 0; color: #9aa2b5; font-size: 12px; }
.follow-board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.follow-board-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  border: 1px solid #eaf0ff;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 94px;
  transition: all .18s ease;
}
.follow-board-card:hover { transform: translateY(-2px); border-color: #ced7ff; box-shadow: 0 10px 24px rgba(79, 99, 255, 0.12); }
.follow-board-main { min-width: 0; flex: 1; }
.follow-board-main h3 { margin: 0 0 6px; color: #101525; font-size: 14px; }
.follow-board-main p { margin: 0; color: #7d8497; font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.follow-board-main p span { background: #f3f5ff; color: #6f7690; border-radius: 10px; padding: 1px 7px; }
.board-card-arrow { color: #b6bdd0; font-size: 18px; line-height: 1; }
.board-cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.board-detail-card { background: #fff; border-radius: 12px; border: 1px solid #eaf0ff; min-height: 220px; transition: all .18s ease; }
.board-detail-card:hover { transform: translateY(-2px); border-color: #cfd7ff; box-shadow: 0 12px 24px rgba(79, 99, 255, 0.10); }
.board-detail-link { display: flex; flex-direction: column; color: inherit; padding: 16px 16px 14px; height: 100%; }
.board-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.board-detail-head h3 { margin: 0 0 5px; color: #101525; font-size: 15px; line-height: 1.2; }
.board-detail-head p { margin: 0; color: #70788f; font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.board-detail-head p span { background: #f3f5ff; border-radius: 10px; padding: 1px 7px; }
.board-desc { margin: 0; font-size: 13px; color: #2d3549; line-height: 1.6; min-height: 66px; }
.board-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #e8edfb; padding-top: 8px; }
.board-date { margin: 0; color: #9ca2b2; font-size: 12px; }
.board-enter { color: #5f62ff; font-size: 12px; font-weight: 600; }
.board-color-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; line-height: 1; background: #6f7eff; flex: 0 0 44px; }
.board-detail-layout {
  display: grid;
  gap: 14px;
  align-items: start;
  position: relative;
  isolation: isolate;
  margin-top: -12px;
}
.board-detail-layout::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 340px;
  background: linear-gradient(180deg, #f1e7c6 0%, #f7f1df 42%, #fcf9f0 74%, #f5f7fb 100%);
  z-index: -1;
}
.board-detail-main { align-items: start; margin-top: 0; }
.board-head-bg {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: transparent;
  padding: 16px 0 0;
}
.board-head-inner {
  width: 100%;
  max-width: 1240px;
  box-sizing: border-box;
  padding: 0 16px;
  margin: 0 auto;
}
.board-themed-layout {
  --board-theme: #7D64FB;
  --board-theme-soft: #f2efff;
  --board-theme-softer: #f8f7ff;
  --board-theme-border: #dcd6ff;
  --board-theme-text: #5645c9;
}
@supports (color: color-mix(in srgb, #000 10%, #fff)) {
  .board-themed-layout {
    --board-theme-soft: color-mix(in srgb, var(--board-theme) 14%, #ffffff);
    --board-theme-softer: color-mix(in srgb, var(--board-theme) 6%, #ffffff);
    --board-theme-border: color-mix(in srgb, var(--board-theme) 30%, #ffffff);
    --board-theme-text: color-mix(in srgb, var(--board-theme) 78%, #1f2430);
  }
}
.board-themed-layout .board-hero-card {
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
  margin-bottom: 0;
}
.board-themed-layout .board-hero-top { display: flex; align-items: flex-start; gap: 14px; }
.board-themed-layout .board-hero-top > .board-color-icon {
  width: 128px;
  flex: 0 0 128px;
  align-self: flex-start;
  height: 128px;
  min-height: 128px;
  border-radius: 10px;
}
.board-themed-layout .board-hero-top > .board-color-icon.is-custom-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.board-themed-layout .board-hero-main {
  min-width: 0;
  flex: 1;
  padding-top: 8px;
}
.board-themed-layout .board-hero-title-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.board-themed-layout .board-hero-main h1 {
  margin: 0;
  color: #1c2336;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-themed-layout .board-hero-desc {
  margin: 6px 0 0;
  color: #5f6780;
  font-size: 12px;
  line-height: 1.45;
  max-width: 760px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-themed-layout .board-hero-admin {
  margin: 6px 0 0;
  color: #8b93a8;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-themed-layout .board-hero-actions { display: inline-flex; gap: 8px; flex-shrink: 0; margin-left: 2px; }
.board-themed-layout .board-hero-actions .btn-outline {
  border-color: #d8dcec;
  border-color: color-mix(in srgb, var(--board-theme) 28%, #d8dcec);
  color: var(--board-theme-text);
  background: #fff;
  font-weight: 600;
}
.board-themed-layout .board-hero-actions .board-analyze-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
  justify-content: center;
}
.board-themed-layout .board-hero-actions .btn-outline:hover {
  border-color: var(--board-theme);
  color: var(--board-theme);
}
@supports (color: color-mix(in srgb, #000 10%, #fff)) {
  .board-detail-layout::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--board-theme) 34%, #ffffff) 0%, color-mix(in srgb, var(--board-theme) 20%, #ffffff) 44%, color-mix(in srgb, var(--board-theme) 9%, #ffffff) 76%, #f5f7fb 100%);
  }
}
.board-sub-tabs-wrap {
  padding: 10px 12px;
  border: 1px solid #e8ecf8;
  border: 1px solid color-mix(in srgb, var(--board-theme) 14%, #e8ecf8);
  box-shadow: 0 5px 14px rgba(26, 37, 72, 0.04);
}
.board-themed-layout .board-sub-tabs {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.board-themed-layout .board-sub-tabs a {
  border: 1px solid #e7eaf7;
  border: 1px solid color-mix(in srgb, var(--board-theme) 22%, #e7eaf7);
  background: #fff;
  color: #5d6680;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  line-height: 1;
}
.board-themed-layout .board-sub-tabs a.active {
  background: var(--board-theme);
  border-color: var(--board-theme);
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 99, 255, 0.16);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--board-theme) 32%, transparent);
}
.board-themed-layout .board-list-toolbar {
  padding: 0 0 6px;
  border: 0;
  box-shadow: none;
  background: transparent;
  margin-bottom: 0;
}
.board-themed-layout .board-list-toolbar .tabs { margin: 0; }
.board-themed-layout .board-list-toolbar .tabs a {
  border-color: #dfe5fb;
  border-color: color-mix(in srgb, var(--board-theme) 20%, #dfe5fb);
  color: var(--board-theme-text);
  background: #fff;
}
.board-themed-layout .board-list-toolbar .tabs a.active {
  background: var(--board-theme);
  border-color: var(--board-theme);
  color: #fff;
}
.board-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.board-post-grid .board-post-card {
  margin: 0;
}
.board-themed-layout .board-post-card { border: 1px solid #ecf0fb; box-shadow: 0 6px 18px rgba(31, 43, 96, 0.06); }
.board-posts-pager {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
}
.board-posts-pager-info {
  color: #6f7690;
  font-size: 13px;
}
.board-posts-pager-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.board-posts-pager-links .btn-outline {
  min-width: 36px;
  text-align: center;
}
.board-posts-pager-links .btn-outline.is-active {
  background: var(--board-theme);
  border-color: var(--board-theme);
  color: #fff;
}
.board-posts-pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f7690;
  font-size: 13px;
}
.board-posts-pager-jump input[type="number"] {
  width: 70px;
  height: 32px;
  border: 1px solid #d7def3;
  border-radius: 8px;
  padding: 0 8px;
}
.empty-state {
  text-align: center;
  color: #7d8497;
  padding: 20px 12px;
}
.board-themed-layout .board-side-profile {
  border: 1px solid #e8ecf8;
  border: 1px solid color-mix(in srgb, var(--board-theme) 16%, #e8ecf8);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(32, 43, 80, 0.06);
}
.board-side-user { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.board-side-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0a96d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.board-side-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.board-side-user h3 { margin: 0; color: #1f2430; font-size: 16px; line-height: 1.1; }
.board-side-user p { margin: 2px 0 0; color: #9aa1b2; font-size: 12px; }
.board-side-user-actions { margin-top: 15px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #edf1fb; }
.board-themed-layout .board-side-user-actions .btn-primary {
  background: var(--board-theme);
  border-color: var(--board-theme);
  box-shadow: 0 8px 16px rgba(79, 99, 255, 0.18);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--board-theme) 28%, transparent);
}
.board-themed-layout .board-side-user-actions .btn-outline {
  border-color: #d8dcec;
  border-color: color-mix(in srgb, var(--board-theme) 24%, #d8dcec);
  color: var(--board-theme-text);
}
.board-side-user-actions .btn-primary,
.board-side-user-actions .btn-outline { padding: 7px 0; }
.board-side-data { margin-top: 14px; }
.board-side-data h4 { margin: 0 0 8px; color: #1f2430; font-size: 14px; }
.board-side-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.board-themed-layout .board-side-stats div {
  background: #ffffff;
  background: color-mix(in srgb, var(--board-theme) 7%, #ffffff);
  border: 1px solid #edf1fb;
  border: 1px solid color-mix(in srgb, var(--board-theme) 20%, #edf1fb);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.board-side-stats span { display: block; color: #9098ab; font-size: 12px; }
.board-side-stats strong { display: block; color: #1c2233; font-size: 18px; line-height: 1.2; margin-top: 2px; }
.board-data-card h3 { margin: 0 0 10px; font-size: 14px; color: #1f2430; }
.board-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #edf1fb;
  color: #6f768a;
}
.board-data-row:last-child { border-bottom: 0; }
.board-data-row strong { color: #1c2233; font-size: 15px; }
.me-community-wrap {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.me-community-head {
  padding: 16px 18px;
  border: 1px solid #edf2ff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(39, 64, 140, 0.06);
}
.me-community-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.me-community-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2ff 0%, #e7ecff 100%);
  color: #4f63ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  flex: 0 0 56px;
}
.me-community-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-community-user-main { min-width: 0; flex: 1; }
.me-community-user-main h2 { margin: 0; font-size: 18px; line-height: 1.2; color: #161d2e; }
.me-community-user-stats { margin-top: 8px; display: inline-flex; gap: 16px; color: #66708a; font-size: 12px; }
.me-community-user-stats strong { color: #121a2f; font-size: 14px; margin-left: 4px; }
.me-community-profile-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border-color: #e1e8ff;
  color: #5f6a87;
  background: #fff;
}
.me-community-tabs-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #edf2ff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(39, 64, 140, 0.05);
}
.me-community-module-tabs {
  border-bottom: 1px solid #eef3ff;
  display: flex;
  gap: 0;
  padding: 0 16px;
}
.me-community-module-tabs a {
  position: relative;
  color: #78829a;
  font-size: 13px;
  padding: 13px 12px 11px;
}
.me-community-module-tabs a.is-active { color: #4f63ff; font-weight: 700; }
.me-community-module-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #5b63ff;
}
.me-community-sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 10px;
}
.me-community-sub-tabs a {
  border: 1px solid #e9efff;
  background: #fff;
  color: #63708a;
  font-size: 12px;
  line-height: 1;
  border-radius: 8px;
  padding: 7px 10px;
  transition: all .15s ease;
}
.me-community-sub-tabs a strong { margin-left: 2px; color: #4f63ff; font-weight: 600; }
.me-community-sub-tabs a.is-active {
  border-color: #d9e1ff;
  color: #4f63ff;
  background: #f5f7ff;
  box-shadow: inset 0 0 0 1px rgba(79, 99, 255, 0.06);
}
.me-community-content {
  padding: 14px 16px;
  min-height: 300px;
  border: 1px solid #edf2ff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(39, 64, 140, 0.05);
}
.me-community-empty {
  margin: 0;
  border: 1px dashed #dfe5f7;
  border-radius: 12px;
  text-align: center;
  color: #95a0b8;
  font-size: 13px;
  padding: 28px 12px;
}
.me-community-post-list { display: grid; gap: 12px; }
.me-community-post-card {
  border: 1px solid #ebf0ff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(29, 44, 102, 0.04);
  padding: 12px 12px 10px;
  margin-bottom: 0;
}
.me-community-follow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.me-community-follow-card {
  border: 1px solid #e9efff;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 8px;
  row-gap: 10px;
  color: inherit;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.me-community-follow-card:hover {
  transform: translateY(-1px);
  border-color: #d4defd;
  box-shadow: 0 10px 20px rgba(68, 92, 170, 0.10);
}
.me-community-follow-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #6972ff 0%, #5764ff 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.me-community-follow-main h3 { margin: 0; font-size: 16px; color: #151b2c; line-height: 1.25; }
.me-community-follow-main p {
  margin: 2px 0 0;
  color: #8f98ad;
  font-size: 12px;
  line-height: 1.4;
  height: 34px;
  overflow: hidden;
}
.me-community-follow-stats {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a0b5;
  font-size: 12px;
}
.me-community-follow-stats strong { color: #5f62ff; font-size: 16px; margin-left: 2px; }
.me-community-follow-stats em {
  margin-left: auto;
  border: 1px solid #e6ecff;
  border-radius: 8px;
  color: #8f98ad;
  font-style: normal;
  font-size: 12px;
  padding: 4px 10px;
  background: #f8faff;
}
.me-community-comment-list { display: grid; gap: 10px; }
.me-community-comment-item {
  border: 1px solid #ebf0ff;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.me-community-comment-head { display: flex; align-items: center; gap: 10px; }
.me-community-comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9eeff;
  color: #4f63ff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.me-community-comment-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-community-comment-meta strong { display: block; color: #1f2637; font-size: 13px; line-height: 1.2; }
.me-community-comment-meta span { color: #9aa2b6; font-size: 12px; line-height: 1; }
.me-community-comment-badge {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #e3e9ff;
  background: #f8f9ff;
  color: #5662d6;
  font-size: 11px;
  font-style: normal;
  padding: 3px 9px;
  line-height: 1;
}
.me-community-comment-content { margin: 8px 0 7px; color: #20293d; font-size: 13px; line-height: 1.7; }
.me-community-inline-image {
  max-width: 220px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid #e5ebff;
  display: block;
  margin: 6px 0;
}
.me-community-comment-content a { color: #4f63ff; word-break: break-all; }
.me-community-comment-ref { background: #fafcff; border-left: 2px solid #dfe6ff; padding: 8px 10px; color: #8992a8; font-size: 12px; border-radius: 4px; }
.me-community-comment-ref a { color: #4f63ff; margin-left: 4px; }
.me-community-pagination {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.me-community-pagination a {
  min-width: 30px;
  height: 30px;
  border: 1px solid #e4e9f8;
  border-radius: 6px;
  color: #5f6985;
  background: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: all .15s ease;
}
.me-community-pagination a.is-active {
  border-color: #5f62ff;
  background: #5f62ff;
  color: #fff;
}
.me-community-pagination a.is-disabled {
  color: #b2b9cb;
  pointer-events: none;
  background: #f8faff;
}
.msg-center-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
}
.msg-center-side {
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.msg-center-side h3 {
  margin: 0 0 2px;
  font-size: 13px;
  color: #7f879a;
  font-weight: 600;
}
.msg-center-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e9efff;
  border-radius: 10px;
  padding: 9px 10px;
  color: #2e364a;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  transition: all .16s ease;
}
.msg-center-side-item:hover {
  border-color: #dfe7ff;
  box-shadow: 0 8px 18px rgba(79, 99, 255, 0.08);
}
.msg-center-side-item.is-active {
  border-color: #d5defe;
  background: linear-gradient(180deg, #f6f8ff 0%, #f0f4ff 100%);
  color: #4f63ff;
  box-shadow: 0 8px 18px rgba(79, 99, 255, 0.1);
}
.msg-center-side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #66d6c4 0%, #4bcdb8 100%);
  box-shadow: 0 0 0 4px rgba(87, 214, 196, 0.14);
}
.msg-center-side-item:nth-child(2) .msg-center-side-dot {
  background: linear-gradient(180deg, #73a7ff 0%, #4f83ff 100%);
  box-shadow: 0 0 0 4px rgba(79, 131, 255, 0.14);
}
.msg-center-side-text { display: grid; gap: 1px; min-width: 0; }
.msg-center-side-text strong { font-size: 13px; line-height: 1.2; color: inherit; }
.msg-center-side-text small { font-size: 11px; color: #9aa3b8; line-height: 1.2; }
.msg-center-side-item em {
  margin-left: auto;
  color: #5f62ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.msg-center-main {
  padding: 0;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid #eaf0ff;
  box-shadow: 0 10px 24px rgba(50, 70, 130, 0.06);
}
.msg-center-head {
  border-bottom: 1px solid #edf1fb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
}
.msg-center-tabs { display: inline-flex; gap: 10px; align-items: center; }
.msg-center-tabs a {
  color: #78819a;
  font-size: 13px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.msg-center-tabs a.is-active {
  color: #4f63ff;
  border-bottom-color: #4f63ff;
}
.msg-center-head-right { display: inline-flex; align-items: center; gap: 10px; color: #8c95ab; font-size: 12px; }
.msg-mark-all-btn { height: 30px; padding: 0 12px; border-color: #dbe3ff; color: #5660d7; }
.msg-center-list { display: grid; gap: 0; }
.msg-item {
  border-bottom: 1px solid #eff3fd;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 13px;
  background: #fff;
  transition: background .14s ease;
}
.msg-item:hover { background: #fbfcff; }
.msg-item.is-unread {
  background: linear-gradient(90deg, rgba(241, 245, 255, 0.55) 0%, #ffffff 32%);
}
.msg-item-main { min-width: 0; flex: 1; }
.msg-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.msg-item-title-row strong { font-size: 14px; color: #1d263a; }
.msg-item-title-row span { font-size: 12px; color: #9aa2b7; white-space: nowrap; }
.msg-item-content { margin: 6px 0 0; font-size: 13px; color: #55607a; line-height: 1.6; }
.msg-item-content em { font-style: normal; color: #2b3550; margin-right: 4px; font-weight: 600; }
.msg-item-link { display: inline-block; margin-top: 6px; font-size: 12px; color: #4f63ff; }
.msg-item-actions { display: inline-flex; align-items: center; }
.msg-item-actions .btn-outline { height: 28px; padding: 0 10px; border-color: #d8e1ff; color: #5964dc; }
.msg-item-read-flag { color: #9aa2b7; font-size: 12px; }
.msg-center-empty {
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #9aa3b8;
  background: radial-gradient(circle at 50% 44%, rgba(103, 116, 255, 0.06), transparent 36%);
}
.msg-center-empty-ill {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f2f4ff 0%, #e8edff 100%);
  color: #6a74ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px #e1e8ff, 0 10px 18px rgba(108, 122, 255, 0.12);
}
.msg-center-empty-ill span { transform: translateY(-1px); }

/* Board icon system (local SVG assets) */
.board-icon,
.board-color-icon,
.me-community-follow-icon,
.admin-board-icon-preview {
  background-color: transparent !important;
  background-image: url('/assets/images/board-icons/news.svg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
}

.board-icon[data-icon-key="news"],
.board-color-icon[data-icon-key="news"],
.me-community-follow-icon[data-icon-key="news"],
.admin-board-icon-preview[data-icon-key="news"] { background-image: url('/assets/images/board-icons/news.svg') !important; }

.board-icon[data-icon-key="life"],
.board-color-icon[data-icon-key="life"],
.me-community-follow-icon[data-icon-key="life"],
.admin-board-icon-preview[data-icon-key="life"] { background-image: url('/assets/images/board-icons/life.svg') !important; }

.board-icon[data-icon-key="promo"],
.board-color-icon[data-icon-key="promo"],
.me-community-follow-icon[data-icon-key="promo"],
.admin-board-icon-preview[data-icon-key="promo"] { background-image: url('/assets/images/board-icons/promo.svg') !important; }

.board-icon[data-icon-key="product"],
.board-color-icon[data-icon-key="product"],
.me-community-follow-icon[data-icon-key="product"],
.admin-board-icon-preview[data-icon-key="product"] { background-image: url('/assets/images/board-icons/product.svg') !important; }

.board-icon[data-icon-key="mail"],
.board-color-icon[data-icon-key="mail"],
.me-community-follow-icon[data-icon-key="mail"],
.admin-board-icon-preview[data-icon-key="mail"] { background-image: url('/assets/images/board-icons/mail.svg') !important; }

.board-icon[data-icon-key="idea"],
.board-color-icon[data-icon-key="idea"],
.me-community-follow-icon[data-icon-key="idea"],
.admin-board-icon-preview[data-icon-key="idea"] { background-image: url('/assets/images/board-icons/idea.svg') !important; }

.board-icon[data-icon-key="trophy"],
.board-color-icon[data-icon-key="trophy"],
.me-community-follow-icon[data-icon-key="trophy"],
.admin-board-icon-preview[data-icon-key="trophy"] { background-image: url('/assets/images/board-icons/trophy.svg') !important; }

.board-icon[data-icon-key="file"],
.board-color-icon[data-icon-key="file"],
.me-community-follow-icon[data-icon-key="file"],
.admin-board-icon-preview[data-icon-key="file"] { background-image: url('/assets/images/board-icons/file.svg') !important; }

.board-icon[data-icon-key="megaphone"],
.board-color-icon[data-icon-key="megaphone"],
.me-community-follow-icon[data-icon-key="megaphone"],
.admin-board-icon-preview[data-icon-key="megaphone"] { background-image: url('/assets/images/board-icons/megaphone.svg') !important; }

.board-icon[data-icon-key="notice"],
.board-color-icon[data-icon-key="notice"],
.me-community-follow-icon[data-icon-key="notice"],
.admin-board-icon-preview[data-icon-key="notice"] { background-image: url('/assets/images/board-icons/notice.svg') !important; }

.board-icon[data-icon-key="task"],
.board-color-icon[data-icon-key="task"],
.me-community-follow-icon[data-icon-key="task"],
.admin-board-icon-preview[data-icon-key="task"] { background-image: url('/assets/images/board-icons/task.svg') !important; }

.board-icon[data-icon-key="qa"],
.board-color-icon[data-icon-key="qa"],
.me-community-follow-icon[data-icon-key="qa"],
.admin-board-icon-preview[data-icon-key="qa"] { background-image: url('/assets/images/board-icons/qa.svg') !important; }

.admin-board-icon-item {
  grid-template-rows: auto auto;
}
.admin-board-icon-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.admin-board-icon-upload-row .tips,
.admin-board-upload-hint {
  color: #d54b4b;
  font-size: 11px;
  line-height: 1.35;
}
.admin-board-upload-hint { margin: -4px 0 2px; }
.admin-board-upload-row .btn-outline,
.admin-board-icon-upload-row .btn-outline {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
}
.admin-board-uploaded-icon-item {
  border-style: dashed;
  background: #fafbff;
}
.admin-board-uploaded-icon-item em { color: #4f63ff; font-weight: 600; }

.admin-board-icon-preview {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(70, 90, 170, 0.18);
}
.admin-board-icon-preview.is-custom-icon {
  background: #f3f6ff;
  border: 1px solid #dbe4ff;
}
.admin-board-icon-preview.is-custom-icon.is-broken::before {
  content: "图";
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #5a6dff;
}
.board-icon.is-custom-icon,
.board-color-icon.is-custom-icon,
.me-community-follow-icon.is-custom-icon,
.admin-board-icon-preview.is-custom-icon {
  background-image: none !important;
}
.board-icon.is-custom-icon img,
.board-color-icon.is-custom-icon img,
.me-community-follow-icon.is-custom-icon img,
.admin-board-icon-preview.is-custom-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

/* Theme primary background override */
.topbar,
.btn-primary,
.tabs a.active,
.action-btn.active,
.detail-attachment-action.is-download,
.board-sub-tabs a.active,
.me-community-pagination a.is-active,
.post-scope-pick-btn.active,
.post-scope-target-pill button,
.post-scope-user-card.is-selected,
.post-scope-role-item.is-selected,
.post-scope-org-chip.is-selected,
.post-cover-hover-btn.is-danger {
  background: #7d64fb !important;
  border-color: #7d64fb !important;
}

.topbar .nav a.active,
.topbar .logo,
.topbar .logo-text {
  color: #fff;
}
.topbar .logo-mark {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
  overflow: hidden;
}
.topbar .logo-mark img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

.comment-toggle-btn.is-open,
.admin-left-item.is-active,
.admin-left-sub-item.is-active,
.admin-permission-tabs button.is-active,
.admin-role-item.is-active {
  color: #7d64fb !important;
}

.post-box-item-actions .btn-outline,
.msg-mark-all-btn,
.msg-item-actions .btn-outline,
.board-enter,
.list-reply-login-tip a,
.list-reply-result,
.list-reply-result a,
.msg-item-link {
  color: #7d64fb !important;
}

.admin-topic-cover {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e6e9f2;
  background: #f7f8fc;
}
.admin-topic-cover-empty { color: #9aa4ba; }
.admin-topic-dialog { width: 560px; }
.admin-topic-form-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 14px;
}
.admin-topic-cover-uploader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-topic-cover-preview {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e6e9f2;
  background: #f7f8fc;
}

.topic-detail-layout .board-side-profile ol {
  margin: 8px 0 0;
  padding-left: 18px;
}
.topic-page-shell {
  display: block;
}
.topic-head-bg {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -12px;
  background: #fff;
  padding: 0 0 8px;
}
.topic-head-inner {
  width: 100%;
  max-width: 1240px;
  box-sizing: border-box;
  padding: 0 16px;
  margin: 0 auto;
}
.topic-head-full {
  margin-bottom: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.topic-content-grid {
  align-items: start;
  margin-top: 8px;
}
.topic-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}
.topic-head-main {
  min-width: 0;
  flex: 1;
  max-width: 620px;
  padding: 8px 0;
}
.topic-detail-layout .board-side-profile li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.topic-detail-layout .board-side-profile li a {
  color: #3b4a6b;
}
.topic-hero-card .board-hero-top {
  align-items: center;
  gap: 14px;
  min-height: 0;
}
.topic-hero-cover {
  width: 152px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e8ecf6;
  box-shadow: 0 4px 10px rgba(60, 85, 180, .1);
  flex: 0 0 152px;
}
.topic-hero-cover-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(135deg, #6f7eff 0%, #8d6dff 100%);
}
.topic-hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: #7a8398;
  font-size: 11px;
  line-height: 1.4;
  min-width: 280px;
}
.topic-hero-card .board-hero-main h1 {
  margin-bottom: 4px;
  font-size: 22px;
  letter-spacing: .2px;
  line-height: 1.2;
}
.topic-hero-card .board-hero-main p {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #606b82;
}
.topic-hero-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa4ba;
  font-size: 11px;
}
.topic-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 0;
  margin-left: auto;
  justify-content: center;
  flex: 0 0 220px;
}
.topic-hero-actions .btn-primary,
.topic-hero-actions .btn-outline {
  width: 100%;
  min-width: 0;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.topic-invite-btn[disabled] {
  opacity: 1;
  cursor: not-allowed;
  color: #7d64fb;
  border-color: #d8d3ff;
  background: #fff;
}
.post-topic-row {
  margin: 2px 0 8px;
}
.post-topic-link {
  color: #5b6dff;
  font-size: 13px;
  font-weight: 600;
}
.topic-detail-layout .board-side-profile li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topic-rank-no {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7a6bff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .topic-head-bg { margin-top: -10px; padding: 0 0 10px; }
  .topic-head-inner { padding: 0 12px; }
  .topic-head-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .topic-head-main { max-width: none; }
  .topic-hero-cover {
    width: 132px;
    height: 74px;
    flex-basis: 132px;
  }
  .topic-hero-card .board-hero-main h1 { font-size: 22px; }
  .topic-hero-card .board-hero-main p { font-size: 13px; }
  .topic-hero-actions {
    flex-basis: 150px;
    gap: 8px;
  }
  .topic-hero-actions .btn-primary,
  .topic-hero-actions .btn-outline { height: 34px; }
}

@media (max-width: 1024px) {
  .post-move-modal { width: min(94vw, 680px); height: 500px; max-height: 94vh; }
  .post-move-modal-head h3 { font-size: 18px; }
  .post-move-modal-row { grid-template-columns: 1fr; gap: 8px; }
  .post-move-modal-label { font-size: 16px; line-height: 1.2; }
  .topbar { height: auto; }
  .topbar-inner { height: auto; flex-wrap: wrap; row-gap: 10px; padding: 10px 12px; }
  .page { padding: 0 12px; }
  .nav { gap: 14px; margin-left: 0; order: 3; width: 100%; }
  .grid-two { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .toolbar input { width: 100%; }
  .form-inline { flex-wrap: wrap; align-items: stretch; gap: 8px; }
  .form-inline input { min-width: 0; width: 100%; }
  .form-inline button { width: 100%; }
  .user-dropdown-panel { width: 290px; right: -6px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .follow-board-grid,
  .board-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-section-title { font-size: 18px; }
  .board-section-head { align-items: center; }
  .board-section-head p { font-size: 11px; }
  .board-hero-main h1 { font-size: 20px; }
  .board-hero-top { align-items: flex-start; }
  .board-hero-title-row { align-items: flex-start; }
  .board-post-grid { grid-template-columns: 1fr; }
  .board-head-bg { padding: 12px 0 0; }
  .board-head-inner { padding: 0 12px; }
  .board-detail-layout::before { height: 320px; }
  .emoji-panel { width: 360px; }
  .emoji-grid { grid-template-columns: repeat(8, 1fr); }
  .board-side-user-actions { grid-template-columns: 1fr; }
  .board-side-stats { grid-template-columns: 1fr 1fr; }
  .board-data-card { margin-top: 0; }
  .detail-side-card { position: static; }
  .detail-head h1 { font-size: 22px; }
  .detail-comment-editor textarea { min-height: 70px; }
  .me-community-wrap { width: 100%; }
  .me-community-follow-grid { grid-template-columns: 1fr 1fr; }
  .msg-center-layout { grid-template-columns: 1fr; }
  .msg-center-side { grid-template-columns: 1fr 1fr; }
  .msg-center-main { min-height: 0; }
  .admin-console-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    position: relative;
  }
  .admin-mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .admin-permission-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .admin-user-head-actions { margin-left: auto; }
  .admin-left-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    height: 100vh;
    z-index: 63;
    border-radius: 0;
    overflow: auto;
    box-shadow: 0 14px 28px rgba(17, 26, 52, 0.2);
    transform: translateX(-112%);
    transition: transform .2s ease;
    padding: 10px;
  }
  .admin-console-layout.is-admin-nav-open > .admin-left-menu { transform: translateX(0); }
  .admin-mobile-nav-backdrop { display: block; }
  .admin-console-layout.is-admin-nav-open .admin-mobile-nav-backdrop { display: block; }
  .admin-console-layout:not(.is-admin-nav-open) .admin-mobile-nav-backdrop { display: none; }
  .admin-permission-page {
    min-height: 0;
    overflow: visible;
  }
  .admin-permission-layout { grid-template-columns: 1fr; min-height: 0; }
  .admin-role-sidebar {
    border-right: 0;
    border-bottom: 1px solid #edf1fb;
    grid-auto-flow: column;
    grid-auto-columns: minmax(136px, max-content);
    overflow-x: auto;
    padding: 8px;
  }
  .admin-role-main {
    padding: 8px 10px 10px;
    gap: 8px;
  }
  .admin-role-main-head { gap: 10px; flex-wrap: wrap; }
  .admin-role-main-actions { margin-left: auto; flex-wrap: wrap; }
  .admin-role-tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .admin-role-tool-row .btn-primary,
  .admin-role-tool-row .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .admin-row-actions { flex-wrap: wrap; }
  .admin-board-theme-row { grid-template-columns: 88px 1fr; }
  .admin-board-admin-selector { align-items: stretch; }
  .admin-board-admin-add-btn {
    width: 40px;
    height: auto;
    border-radius: 10px;
  }
  .admin-board-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-board-dialog,
  .admin-role-dialog,
  .admin-bind-user-dialog,
  .admin-board-scope-dialog {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
  }
  .admin-board-wizard-body { max-height: min(62vh, 520px); }
}
@media (max-width: 768px) {
  .topbar-inner {
    display: flex;
    flex-wrap: nowrap;
    height: 48px;
    padding: 0 10px;
    row-gap: 0;
    align-items: center;
  }
  .logo {
    min-width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 8px;
  }
  .user-area {
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 4px;
    flex: 0 0 auto;
  }
  .nav {
    width: auto;
    order: 0;
    flex: 1;
    min-width: 0;
    margin-left: 0;
    gap: 14px;
    justify-content: center;
  }
  .page { margin: 10px auto; padding: 0 10px; }
  .card { padding: 10px; border-radius: 10px; }
  .logo-mark,
  .logo-mark img {
    width: 22px !important;
    height: 22px !important;
  }
  .logo-text { font-size: 13px; }
  .nav a { font-size: 14px; }
  .nav a { padding: 0 8px; }
  .nav a {
    min-width: 0;
    white-space: normal;
    word-break: break-all;
    line-height: 1.1;
  }
  .user-dropdown-panel { width: min(310px, calc(100vw - 12px)); right: -4px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow-board-grid,
  .board-cards-grid,
  .me-community-follow-grid { grid-template-columns: 1fr; }
  .board-detail-head { align-items: flex-start; }
  .board-desc { min-height: 0; }
  .board-hero-main h1 { font-size: 18px; }
  .board-hero-top > .board-color-icon {
    width: 104px;
    flex-basis: 104px;
    height: 104px;
    min-height: 104px;
  }
  .board-hero-title-row { flex-wrap: wrap; gap: 8px; }
  .board-hero-actions { flex-wrap: wrap; }
  .board-detail-layout::before { height: 280px; }
  .detail-head h1 { font-size: 20px; }
  .detail-head .post-meta {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 2px;
    font-size: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .detail-head .post-meta::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  .detail-head .post-meta > span {
    flex: 0 0 auto;
  }
  .detail-head .post-meta .tag {
    white-space: nowrap;
    word-break: keep-all;
  }
  .detail-card .post-content img {
    max-width: 100% !important;
    max-inline-size: 100%;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none !important;
    clear: both;
    box-sizing: border-box;
  }
  .detail-card .post-content figure,
  .detail-card .post-content p {
    max-width: 100%;
    box-sizing: border-box;
  }
  .detail-card .post-content img:hover {
    box-shadow: none;
  }
  .detail-comment-editor textarea { min-height: 64px; }
  .msg-center-side { grid-template-columns: 1fr; }
  .emoji-panel { width: min(360px, calc(100vw - 22px)); }
  .emoji-grid { grid-template-columns: repeat(7, 1fr); }
  .admin-board-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar-inner { padding: 0 8px; }
  .nav { gap: 12px; }
  .logo-text { font-size: 12px; }
  .nav a { font-size: 13px; }
  .nav a { padding: 0 6px; }
  .user-area { gap: 2px; }
  .post-content {
    font-size: 15px;
    line-height: 1.8;
  }
  .post-content h1 { font-size: 24px; }
  .post-content h2 { font-size: 20px; }
  .post-content h3 { font-size: 18px; }
  .feed-board-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .feed-board-list {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    padding-bottom: 2px;
  }
  .feed-board-list .board-item {
    flex: 0 0 110px;
  }
}

.votes-list-page {
  display: grid;
  gap: 0;
  background: #fff;
  margin-top: -12px;
}
.votes-list-hero {
  min-height: 102px;
  padding: 14px 26px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(180deg, #f7fbff 0%, #fbfdff 100%);
  position: relative;
  overflow: hidden;
}
.votes-list-hero::before {
  content: "";
  position: absolute;
  left: -38px;
  top: -54px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(117, 173, 255, .12);
  pointer-events: none;
}
.votes-list-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1;
  color: #3b465a;
  z-index: 1;
}
.votes-list-search {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}
.votes-list-search-box {
  width: min(620px, 56vw);
  height: 42px;
  background: #fff;
  border: 1px solid #e8edf7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.votes-list-search-box input[type="text"] {
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0 14px;
  font-size: 14px;
  color: #2d3548;
}
.votes-list-search-box input[type="text"]:focus {
  outline: none;
}
.votes-list-search-btn {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #8d98ad;
  font-size: 17px;
  cursor: pointer;
}
.votes-create-btn {
  height: 42px;
  min-width: 122px;
  border-radius: 6px;
  background: #5f66ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 0 18px;
}
.votes-create-btn:hover {
  color: #fff;
  background: #5159ff;
}
.votes-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 26px 8px;
  border-bottom: 1px solid #edf0f6;
}
.votes-tab-link {
  color: #9aa3b6;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  padding: 0;
}
.votes-tab-link.is-active {
  color: #111827;
  font-weight: 700;
}
.votes-list {
  padding: 0 26px;
}
.vote-item {
  display: grid;
  grid-template-columns: 186px 1fr;
  gap: 16px;
  padding: 12px 8px;
  border-bottom: 1px solid #f0f3f8;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: background-color .18s ease;
}
.vote-item:hover {
  background: #f6f8fc;
}
.vote-item:last-child {
  border-bottom: 0;
}
.vote-item-cover {
  width: 186px;
  height: 106px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eef2f8;
  background: #f7faff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vote-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vote-item-cover-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(145, 191, 255, .28) 0, rgba(145, 191, 255, .28) 8px, transparent 9px),
    radial-gradient(circle at 84% 78%, rgba(145, 191, 255, .2) 0, rgba(145, 191, 255, .2) 7px, transparent 8px),
    #f6f9ff;
}
.vote-item-cover-empty i {
  display: block;
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: #7da4ff;
}
.vote-item-cover-empty i:last-child {
  width: 62px;
  height: 4px;
  background: #c7d8ff;
}
.vote-item-main {
  min-width: 0;
}
.vote-item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.vote-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.vote-item-badge {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 24px;
  font-weight: 700;
  border: 1px solid #ff7a59;
  color: #ff6535;
  background: #fff;
}
.vote-item-badge.is-ended {
  border-color: #d6dce8;
  color: #9aa3b4;
}
.vote-item-badge.is-active {
  border-color: #ff7a59;
  color: #ff6535;
}
.vote-item-desc {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vote-item-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: #9aa3b4;
}
.vote-item-meta span + span::before {
  content: "|";
  color: #ccd3e0;
  margin: 0 10px;
}
.votes-empty {
  margin: 24px 0;
  color: #9aa3b8;
  font-size: 14px;
}
@media (max-width: 980px) {
  .votes-list-hero {
    padding: 14px 12px;
    flex-wrap: wrap;
  }
  .votes-list-title {
    font-size: 26px;
  }
  .votes-list-search {
    width: 100%;
  }
  .votes-list-search-box {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .votes-tabs,
  .votes-list {
    padding-left: 12px;
    padding-right: 12px;
  }
  .vote-item {
    grid-template-columns: 110px 1fr;
    gap: 10px;
  }
  .vote-item-cover {
    width: 110px;
    height: 70px;
  }
  .vote-item-title {
    font-size: 15px;
  }
  .vote-item-badge {
    font-size: 12px;
    height: 22px;
  }
  .vote-item-desc {
    font-size: 12px;
  }
  .vote-item-meta {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .votes-list-page {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.vote-create-page { display: grid; gap: 14px; }
.vote-create-head { display: flex; align-items: center; justify-content: space-between; }
.vote-create-head h1 { margin: 0; font-size: 28px; }
.vote-cover-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vote-cover-preview { width: 120px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid #e6ebf5; }
.vote-question-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.vote-question-head h3 { margin: 0; }
.vote-question-head h3 {
  font-size: 14px;
  font-weight: 600;
}
.vote-question-card { border: 1px solid #e8ecf7; border-radius: 10px; padding: 12px; margin-top: 10px; display: grid; gap: 10px; background: #fbfcff; }
.vote-question-card-head { display: flex; align-items: center; justify-content: space-between; }
.vote-question-actions { display: flex; align-items: center; gap: 8px; }
.vote-option-list { display: grid; gap: 8px; }
.vote-option-row { display: flex; align-items: center; gap: 8px; }
.vote-question-type-row { gap: 16px; }
.vote-max-select-input { width: 120px; }
.vote-more-settings { margin-top: 12px; border-top: 1px solid #edf1fa; padding-top: 12px; display: grid; gap: 10px; }
.vote-more-settings h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.vote-setting-row {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 10px;
  align-items: start;
}
.vote-setting-label {
  margin: 0;
  padding-top: 10px;
  text-align: right;
  color: #1f2430;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.vote-setting-label.is-required::before {
  content: "*";
  color: #ff6a4d;
  margin-right: 2px;
}
.vote-setting-control {
  display: grid;
  gap: 8px;
}
.vote-setting-row.is-radio {
  align-items: center;
}
.vote-setting-row.is-radio .vote-setting-label {
  padding-top: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.vote-more-settings .post-radio-group {
  gap: 18px;
  align-items: center;
  min-height: 30px;
  flex-wrap: wrap;
}
.vote-more-settings .post-radio-group label {
  font-size: 13px;
  line-height: 1;
  align-items: center;
}
.vote-publish-mode-control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.vote-publish-mode-control .post-radio-group {
  flex-wrap: nowrap;
}
.vote-more-settings .vote-setting-control input[name="ends_at"] {
  width: 280px;
  max-width: 100%;
}
#vote-publish-at-wrap {
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 280px;
}
#vote-publish-at-wrap #vote-publish-at {
  width: 100%;
  max-width: 300px;
}
.vote-more-settings #sync-chat-row {
  grid-template-columns: 18px minmax(280px, 460px);
  gap: 8px;
}
.vote-more-settings #sync-chat-row .post-extra-label {
  padding-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vote-more-settings #sync-chat-row #sync-chat-display {
  width: 100%;
  max-width: 460px;
}
.vote-setting-switch {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.vote-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.vote-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.vote-switch-slider {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: #d6dbe8;
  transition: background-color .18s ease;
}
.vote-switch-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(19, 26, 46, .2);
  transition: transform .18s ease;
}
.vote-switch-state {
  min-width: 14px;
  font-size: 12px;
  line-height: 1;
  color: #8f98ad;
}
.vote-switch-state::before { content: "关"; }
.vote-switch input[type="checkbox"]:checked + .vote-switch-slider {
  background: #5864ff;
}
.vote-switch input[type="checkbox"]:checked + .vote-switch-slider::after {
  transform: translateX(18px);
}
.vote-switch input[type="checkbox"]:checked ~ .vote-switch-state {
  color: #5864ff;
}
.vote-switch input[type="checkbox"]:checked ~ .vote-switch-state::before {
  content: "开";
}
.vote-create-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 8px; }

.vote-detail-page { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; padding: 18px 22px 22px; }
.vote-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vote-detail-head-main { min-width: 0; display: grid; gap: 8px; }
.vote-detail-head h1 { margin: 0; font-size: 30px; line-height: 1.35; color: #0f172a; word-break: break-word; }
.vote-detail-meta { margin: 0; color: #8e97ab; font-size: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.vote-detail-meta .vote-meta-item + .vote-meta-item::before { content: "|"; color: #ccd3e0; margin: 0 8px 0 0; }
.vote-detail-head-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.vote-manage-dropdown { position: relative; }
.vote-manage-toggle {
  min-width: 40px;
  width: 40px;
  padding: 0;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
  font-weight: 700;
}
.vote-manage-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 148px;
  border-radius: 10px;
  border: 1px solid #e7ebf7;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .14);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 100;
}
.vote-manage-menu[hidden] { display: none !important; }
.vote-manage-item {
  border: 0;
  background: transparent;
  text-align: left;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: #1f2430;
  font-size: 13px;
  cursor: pointer;
}
.vote-manage-item:hover { background: #f5f8ff; color: #4f63ff; }
.vote-detail-desc {
  margin: 0;
  line-height: 1.7;
  color: #4f586d;
  background: #f7faff;
  border: 1px solid #edf1fa;
  border-radius: 8px;
  padding: 10px 12px;
}
.vote-detail-question {
  border-top: 1px solid #edf1fa;
  padding-top: 14px;
  margin-top: 2px;
}
.vote-detail-question h3 { margin: 0 0 10px; font-size: 18px; color: #1f2430; }
.vote-detail-question h3 small { font-size: 12px; color: #8f98ad; margin-left: 6px; }
.vote-detail-options { display: grid; gap: 8px; }
.vote-detail-options.is-text-layout {
  gap: 10px;
}
.vote-detail-options.is-text-layout label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}
.vote-detail-options.is-text-layout .vote-answer-input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.vote-detail-options.is-media-layout {
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 18px;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.vote-detail-media-option {
  position: relative;
  display: grid !important;
  gap: 0 !important;
  border: 1px solid #ecf0f8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  max-width: 180px;
  width: 180px;
}
.vote-detail-media-option > input[type="checkbox"],
.vote-detail-media-option > input[type="radio"] {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  z-index: 2;
}
.vote-detail-media-box {
  display: block;
  height: 102px;
  background: #f3f6fb;
}
.vote-preview-trigger {
  cursor: zoom-in;
}
.vote-preview-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.vote-detail-media-box img,
.vote-detail-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vote-detail-media-title {
  display: block;
  padding: 10px 10px 12px;
  background: #fafbff;
  color: #1e2434;
  font-size: 16px;
  line-height: 1.35;
}
@media (max-width: 860px) {
  .vote-detail-options.is-media-layout {
    grid-template-columns: 1fr;
  }
  .vote-detail-media-option {
    width: 100%;
    max-width: none;
  }
}
.vote-detail-state {
  background: #f7f9ff;
  border: 1px solid #e9edff;
  color: #4f67ff;
  border-radius: 8px;
  padding: 10px 12px;
}
#vote-submit-form > .btn-primary {
  display: block;
  width: min(660px, 100%);
  margin: 28px auto 0;
  min-height: 36px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}
.vote-result-block {
  border-top: 1px solid #edf1fa;
  padding-top: 12px;
  margin-top: 2px;
}
.vote-result-question {
  margin-bottom: 14px;
}
.vote-result-question h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
  font-weight: 400;
}
.vote-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #edf0f5;
  background: #fff;
  margin-bottom: 12px;
  height: 74px;
  overflow: hidden;
  position: relative;
}
.vote-result-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--vote-percent, 0%);
  background: #f1f3f8;
  pointer-events: none;
}
.vote-result-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1;
}
.vote-result-thumb {
  width: 92px;
  height: 74px;
  min-width: 92px;
  flex: 0 0 92px;
  border-right: 1px solid #edf0f5;
  background: #f8fafc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.vote-result-thumb img,
.vote-result-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vote-result-thumb.is-empty {
  background:
    radial-gradient(circle at 18% 20%, rgba(125, 164, 255, .18) 0, rgba(125, 164, 255, .18) 6px, transparent 7px),
    #f7f9fe;
}
.vote-result-play-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #5a67ff;
  font-style: normal;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.vote-result-option-text-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}
.vote-result-option-text {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.vote-result-attach {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
}
.vote-media-preview-mask,
.post-media-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 2800;
  background: rgba(10, 16, 30, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.vote-media-preview-mask[hidden],
.post-media-preview-mask[hidden] { display: none !important; }
.vote-media-preview-dialog,
.post-media-preview-dialog {
  position: relative;
  width: min(92vw, 980px);
  max-height: 88vh;
  border-radius: 12px;
  background: #0f172a;
  overflow: hidden;
}
.vote-media-preview-close,
.post-media-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.post-media-preview-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.post-media-preview-toolbtn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.post-media-preview-toolbtn:active { transform: translateY(1px); }
.vote-media-preview-body,
.post-media-preview-body {
  width: 100%;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-media-preview-stage {
  width: 100%;
  height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.post-media-preview-image {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  transform-origin: center center;
  cursor: grab;
  will-change: transform;
}
.post-media-preview-image.is-dragging { cursor: grabbing; }
.vote-media-preview-body img,
.vote-media-preview-body video,
.post-media-preview-body img,
.post-media-preview-body video {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
}
body.is-media-preview-open {
  overflow: hidden;
  touch-action: none;
}
.vote-result-stats {
  width: 168px;
  min-width: 168px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 18px;
  color: #111827;
  position: relative;
  z-index: 1;
}
.vote-result-stats strong {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}
.vote-result-stats span {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}
.vote-result-row:last-child {
  margin-bottom: 0;
}
.vote-comment-block { border-top: 1px solid #edf1fa; padding-top: 14px; margin-top: 6px; }
.vote-comment-block h2 { margin: 0 0 8px; font-size: 18px; }
.vote-comment-block textarea {
  min-height: 88px;
  border: 1px solid #e4e9f6;
  border-radius: 8px;
  background: #fff;
}
.vote-comment-item { border-top: 1px solid #edf1fa; padding-top: 8px; margin-top: 8px; }
.vote-comment-meta { display: flex; align-items: center; justify-content: space-between; color: #8f97ab; font-size: 12px; margin-bottom: 6px; }

.vote-toast {
  position: fixed;
  left: 50%;
  top: 88px;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  z-index: 2500;
  min-width: 180px;
  max-width: 88vw;
  text-align: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}
.vote-toast.is-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.vote-toast.is-success { background: rgba(29,35,53,.92); color: #fff; }
.vote-toast.is-error { background: #fef2f2; color: #d93025; border: 1px solid #fed7d7; }

/* vote create page: align with screenshot style */
.vote-create-shell {
  background: #f6f8fc;
  min-height: calc(100vh - 78px);
  margin: -12px -12px 0;
  padding-top: 58px;
}
body.is-vote-create .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 520;
}
body.is-vote-create .page {
  margin-top: 60px;
}
.vote-create-topbar {
  height: 58px;
  background: #fff;
  border-bottom: 1px solid #edf0f6;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 max(16px, calc((100vw - 1240px) / 2 + 16px));
  box-sizing: border-box;
}

.vote-create-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.vote-create-topbar-left h1 {
  margin: 0;
  color: #d7dbe4;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.vote-exit-edit-link {
  color: #cfd3dd;
  font-size: 14px;
  line-height: 1;
}
.vote-exit-edit-link::before {
  content: "◀";
  margin-right: 6px;
  font-size: 12px;
  vertical-align: 1px;
}
.vote-create-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vote-lite-btn {
  height: 34px;
  min-width: 72px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
}
.vote-create-page {
  width: min(980px, calc(100vw - 72px));
  margin: 18px auto;
  border-radius: 0;
  padding: 20px 30px 26px;
}
body.vote-inline-preview-open .vote-create-page {
  margin-right: min(592px, calc(100vw - 24px));
}
.vote-inline-preview-panel {
  position: fixed;
  top: 108px;
  right: 12px;
  bottom: 24px;
  width: min(560px, calc(100vw - 24px));
  border: 1px solid #e7ebf7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
  z-index: 360;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vote-inline-preview-panel[hidden] { display: none !important; }
.vote-inline-preview-head {
  height: 42px;
  border-bottom: 1px solid #edf1fb;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}
.vote-inline-preview-title-wrap {
  min-width: 0;
}
.vote-inline-preview-title {
  color: #1f2430;
  font-size: 14px;
  line-height: 1;
}
.vote-inline-preview-close {
  border: 0;
  background: transparent;
  color: #8f97ab;
  width: 24px;
  height: 24px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.vote-inline-preview-close:hover {
  background: #f6f8ff;
  color: #4f63ff;
}
.vote-inline-preview-frame {
  width: 100%;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
}
.vote-basic-block h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #0f172a;
}
.vote-basic-divider {
  height: 1px;
  background: #eceff6;
  margin: 16px 0 14px;
}
.vote-form-row {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}
.vote-form-label {
  margin: 0;
  padding-top: 11px;
  text-align: right;
  color: #1f2430;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.vote-form-label.is-required::before {
  content: "*";
  color: #ff6a4d;
  margin-right: 2px;
}
.vote-form-control input[type="text"] {
  height: 42px;
  border-color: #d5dbe8;
  border-radius: 2px;
  font-size: 14px;
}
.vote-desc-wrap {
  position: relative;
}
.vote-desc-wrap textarea {
  min-height: 76px;
  padding-right: 62px;
  border-color: #d5dbe8;
  border-radius: 2px;
  font-size: 14px;
}
.vote-desc-counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #c2c7d3;
  font-size: 12px;
  line-height: 1;
}
.vote-desc-counter em {
  font-style: normal;
  color: #b8becd;
}
.vote-create-page .post-cover-box {
  width: 146px;
  height: 76px;
}
.vote-create-page .post-cover-uploader-text {
  font-size: 14px;
  font-weight: 500;
}
.vote-create-page .post-cover-uploader-tip {
  font-size: 12px;
  color: #a6afc2;
}
.vote-create-page .post-cover-uploader {
  padding: 6px;
}
.vote-create-page .post-cover-uploader-icon {
  font-size: 16px;
}
.vote-create-page .post-cover-hover-actions {
  gap: 6px;
}
.vote-create-page .post-cover-hover-btn {
  padding: 4px 8px;
  white-space: nowrap;
}
.vote-create-actions {
  display: none;
}

/* vote question advanced editor */
.vote-question-list { display: grid; gap: 12px; }
.vote-question-card.is-view { background: #fff; border: 1px solid #eceffa; border-radius: 8px; padding: 12px 14px; }
.vote-question-card.is-editing { background: #fff; border: 1px solid #e8ecf7; border-radius: 8px; padding: 14px; }
.vote-question-card.is-editing,
.vote-question-card.is-editing * { font-size: 13px; }
.vote-question-card.is-view .vote-question-actions {
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.vote-question-card.is-view:hover .vote-question-actions,
.vote-question-card.is-view:focus-within .vote-question-actions {
  opacity: 1;
  pointer-events: auto;
}
.vote-question-preview-title { margin: 4px 0 10px; color: #1f2430; font-size: 14px; font-weight: 600; }
.vote-question-preview-options { display: grid; gap: 8px; }
.vote-question-preview-option { color: #303a55; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.vote-question-preview-option input[type="radio"],
.vote-question-preview-option input[type="checkbox"] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin: 0;
  pointer-events: none;
}
.vote-option-asset-tag { margin-left: 6px; color: #8f97ab; font-size: 12px; }
.vote-question-type-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vote-question-type-select {
  height: 38px;
  width: 162px !important;
  min-width: 162px;
  flex: 0 0 162px;
  border: 1px solid #d7def1;
  border-radius: 4px;
  padding: 0 38px 0 12px !important;
  background: #fff;
  color: #1f2430;
  font-size: 13px;
  font-weight: 500;
  line-height: normal !important;
  appearance: auto;
  box-sizing: border-box;
  vertical-align: middle;
  text-indent: 0;
  text-overflow: clip;
  white-space: nowrap;
}
.vote-question-type-select option {
  font-size: 13px;
  line-height: 1.4;
}
.vote-range-tip { color: #33415c; font-size: 12px; }
.vote-min-select-input,
.vote-max-select-input {
  width: 64px !important;
  min-width: 64px;
  flex: 0 0 64px;
  width: 64px;
  height: 34px;
  border: 1px solid #d7def1;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
}
.vote-pk-tip { color: #8f97ab; font-size: 11px; }
.vote-option-edit-list { display: grid; gap: 10px; }
.vote-option-edit-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 34px 170px;
  gap: 8px;
  align-items: start;
}
.vote-option-edit-row > label { color: #1f2430; font-weight: 600; }
.vote-option-edit-row .vote-option-text {
  width: 100% !important;
  height: 34px;
  border: 1px solid #d7def1;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
}
.vote-option-remove-x {
  border: 0;
  background: transparent;
  color: #7b8396;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.vote-option-media-stack { display: grid; gap: 8px; justify-items: end; }
.vote-option-media-actions { display: inline-flex; align-items: center; gap: 4px; }
.vote-option-media-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d7def1;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}
.vote-option-media-cards { display: grid; gap: 8px; justify-items: end; }
.vote-media-card {
  position: relative;
  width: 78px;
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid #d8deec;
  background: #f5f7fc;
  overflow: hidden;
}
.vote-media-card.is-image img {
  width: 100%;
  height: 52px;
  object-fit: cover;
  display: block;
}
.vote-media-card.is-video video {
  width: 100%;
  height: 52px;
  object-fit: cover;
  display: block;
  background: #000;
}
.vote-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(95, 98, 255, 0.9);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}
.vote-media-card.is-attach {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
}
.vote-media-card.is-attach a {
  color: #4f63ff;
  font-size: 12px;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.vote-media-remove-btn {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  line-height: 14px;
  cursor: pointer;
  padding: 0;
}
.vote-other-row { display: flex; align-items: center; gap: 8px; }
.vote-other-row label { font-size: 13px; color: #1f2430; }
.vote-other-row .vote-open-other-modal-btn.btn-outline {
  font-size: 11px !important;
  height: 26px !important;
  min-height: 26px;
  padding: 0 10px !important;
  line-height: 26px !important;
  border-radius: 6px;
}
.vote-create-page input[type="checkbox"],
.vote-create-page input[type="radio"],
.vote-detail-page input[type="checkbox"],
.vote-detail-page input[type="radio"] {
  width: auto !important;
  min-width: 14px;
  height: 14px;
  padding: 0;
}
.vote-create-page .post-scope-org-row input[type="checkbox"] { width: 18px !important; min-width: 18px !important; height: 18px !important; }
.vote-create-page .post-scope-role-row input[type="checkbox"] { width: auto !important; min-width: 0 !important; height: auto !important; }
.vote-create-page .vote-other-row input[type="checkbox"] { margin-right: 6px; }
.vote-question-type-edit > span { flex: 0 0 auto; }
.vote-question-type-edit .is-hidden { display: none !important; }
.vote-question-edit-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.vote-question-edit-actions .btn-primary,
.vote-question-edit-actions .btn-outline,
.vote-question-actions .btn-outline,
.vote-add-option-btn,
.vote-open-other-modal-btn {
  font-size: 12px;
}

/* other option modal */
.vote-other-modal[hidden] { display: none !important; }
.vote-other-modal { position: fixed; inset: 0; z-index: 1800; }
.vote-other-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.vote-other-dialog {
  position: relative;
  width: 480px;
  max-width: calc(100vw - 32px);
  margin: 110px auto 0;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e7ebf7;
  padding: 18px 22px;
  z-index: 2;
}
.vote-other-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vote-other-dialog-head h4 { margin: 0; font-size: 18px; line-height: 1.2; color: #1f2430; }

@media (max-width: 560px) {
  .vote-media-preview-mask,
  .post-media-preview-mask {
    padding: 0;
    align-items: stretch;
  }
  .vote-media-preview-dialog,
  .post-media-preview-dialog {
    width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
  .vote-media-preview-close,
  .post-media-preview-close {
    top: max(10px, env(safe-area-inset-top, 0px) + 10px);
    right: max(10px, env(safe-area-inset-right, 0px) + 10px);
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
  .vote-media-preview-body,
  .post-media-preview-body {
    max-height: 100vh;
    min-height: 100vh;
    padding: calc(env(safe-area-inset-top, 0px) + 56px) 10px calc(env(safe-area-inset-bottom, 0px) + 16px);
  }
  .vote-media-preview-body img,
  .vote-media-preview-body video,
  .post-media-preview-body img,
  .post-media-preview-body video {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 72px);
  }
}
.vote-other-close-btn { border: 0; background: transparent; font-size: 24px; line-height: 1; color: #5a6276; cursor: pointer; }
.vote-other-tip { margin: 0 0 12px; color: #98a0b5; font-size: 13px; }
.vote-other-field { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.vote-other-field label { font-size: 13px; color: #1f2430; line-height: 1.3; font-weight: 600; }
.vote-other-field input { height: 34px; border: 1px solid #d7def1; border-radius: 4px; padding: 0 10px; font-size: 13px; }
.vote-other-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* detail page material + other input */
.vote-option-assets { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px 24px; flex-wrap: wrap; }
.vote-option-assets img { width: 92px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #e3e8f6; }
.vote-option-assets video { width: 160px; height: 90px; border-radius: 6px; border: 1px solid #e3e8f6; background: #000; }
.vote-option-attach { color: #4f63ff; font-size: 13px; }
.vote-other-answer-input {
  margin: 4px 0 8px 24px;
  width: min(420px, calc(100% - 24px));
  min-height: 58px;
  border: 1px solid #d8deec;
  border-radius: 6px;
  padding: 8px 10px;
}
.vote-other-detail-block { border-top: 1px solid #edf1fa; padding-top: 12px; margin-top: 8px; }
.vote-other-detail-block h2 { margin: 0 0 8px; font-size: 18px; }
.vote-other-detail-item { border: 1px solid #e8ecf7; background: #fafbff; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.vote-other-detail-item p { margin: 4px 0; color: #3d4864; font-size: 13px; }
