:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a8f99;
  --border: #e5e6eb;
  --danger: #f53f3f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

/* ============ 认证 / 登录页 ============ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #07c160 0%, #0bbf6a 100%);
  padding: 16px;
}

.login-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.login-card { width: 380px; max-width: 100%; }

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.subtitle {
  margin: 8px 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-foot {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  margin-top: 16px;
}
.auth-foot .icp a { text-decoration: none; }
.auth-foot .icp a:hover { text-decoration: underline; }

/* ============ 表单 ============ */
form label,
.form-col label {
  display: block;
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

form input,
.form-col input,
.form-col select,
.form-col textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  color: var(--text);
}

form input:focus,
.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus { border-color: var(--primary); }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  transition: background 0.2s, opacity 0.2s;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.btn.primary:hover { background: var(--primary-dark); }
.btn.primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.ghost:disabled:hover { border-color: var(--border); color: var(--text); }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ============ 提示 ============ */
.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.alert.error {
  background: #ffece8;
  color: var(--danger);
  border: 1px solid #ffccc7;
}

.alert.success {
  background: #e8f8ee;
  border: 1px solid #b7ebc7;
  color: #07c160;
}

/* ============ 后台布局 ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover { background: #f2f3f5; color: var(--text); }

.nav-item.active {
  background: rgba(7, 193, 96, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.nav-ico { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar .brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger svg { width: 24px; height: 24px; fill: var(--text); }

.user-area { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.user-name { font-size: 14px; }

.badge {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

.content { flex: 1; padding: 24px; }

.footer {
  padding: 16px 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.sidebar-overlay { display: none; }

/* ============ 内容容器 ============ */
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
/* 管理类列表 / 设置页：铺满可用宽度，配合 .table-wrap 的横向滚动实现自适应 */
.container.fluid { max-width: none; margin: 0; }
.muted { color: var(--muted); }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.page-head h2 { margin: 0; }
.page-head .actions { display: flex; gap: 10px; }

/* ============ 统计卡片 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 6px; }

.stat-card.accent {
  background: linear-gradient(135deg, #07c160, #0bbf6a);
  color: #fff;
  border: none;
}
.stat-card.accent .stat-label { color: rgba(255, 255, 255, 0.85); }

/* ============ 面板 ============ */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel-head h3 { margin: 0; font-size: 16px; }

/* ============ 最近活动 ============ */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.activity li:last-child { border-bottom: none; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); margin-top: 6px; flex-shrink: 0;
}
.act-title { font-size: 14px; }
.act-time { font-size: 12px; margin-top: 2px; }

/* ============ 个人资料 ============ */
.profile-wrap { margin-top: 4px; }

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--primary), #4f7cff);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(42, 119, 255, 0.18);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  flex-shrink: 0;
}

.profile-meta { display: flex; flex-direction: column; gap: 8px; }
.profile-name { font-size: 20px; font-weight: 600; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.tag-user { background: rgba(255, 255, 255, 0.2); }
.tag-admin { background: rgba(255, 255, 255, 0.32); font-weight: 600; }
.tag-ok { background: rgba(255, 255, 255, 0.2); }
.tag-off { background: rgba(255, 255, 255, 0.12); }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.form-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* 表单提交按钮与上方表单项拉开距离 */
.form-submit { margin-top: 18px; }

input[readonly] {
  background: #f7f8fa;
  color: var(--muted);
  cursor: default;
}

/* 确认弹窗文本 */
.confirm-text { margin: 4px 0 0; line-height: 1.6; color: var(--text); }

/* Toast 轻提示（统一样式见文末「提示 toast」区块） */

/* 测试结果对话框 */
.result-text { line-height: 1.6; }
.result-text.ok .result-status { color: #2ecc71; }
.result-text.err .result-status { color: #e74c3c; }
.result-status { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.result-status.ok { color: #2ecc71; }
.result-status.fail { color: #e74c3c; }
.result-ok { color: #2ecc71; }
.result-fail { color: #e74c3c; }
.result-detail { margin: 0; color: var(--text); }
.result-loading { color: var(--muted); padding: 8px 0; }

/* ============ 空状态 ============ */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-ico { width: 56px; height: 56px; fill: var(--border); }
.empty-state h3 { margin: 12px 0 6px; }
.empty-state p { margin-bottom: 18px; }

/* ============ 状态标签 ============ */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}
.status-badge.draft { background: #f2f3f5; color: var(--muted); }
.status-badge.published { background: rgba(7, 193, 96, 0.12); color: var(--primary); }

/* ============ Markdown 预览 ============ */
.markdown-body { line-height: 1.8; color: var(--text); word-break: break-word; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 1em 0 .5em; line-height: 1.3; }
.markdown-body p { margin: .6em 0; }
.markdown-body pre { background: #f6f8fa; border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow: auto; }
.markdown-body code { font-family: Consolas, Monaco, monospace; font-size: 13px; }
.markdown-body blockquote { margin: .8em 0; padding: .4em 1em; background: #f7f8fa; border-left: 4px solid #ddd; color: #666; }
.markdown-body img { max-width: 100%; }
.markdown-body a { color: var(--primary); }

/* ============ 筛选 / 表格 ============ */
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filters input,
.filters select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.data-table th {
  background: #fafbfc;
  color: var(--muted);
  font-weight: 600;
}

.data-table tr:last-child td { border-bottom: none; }

/* 文章列表内的链接（标题）去掉下划线 */
.data-table tbody a:not(.btn) { text-decoration: none; }
.data-table tbody a:not(.btn):hover { color: var(--primary); }
.di-main { text-decoration: none; }

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.pager #pageInfo, .pager span { color: var(--muted); font-size: 13px; }

/* ============ 弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  background: var(--card);
  border-radius: 14px;
  width: 380px;
  max-width: 92vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.18s ease-out;
}

@keyframes modalPop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-card-head h3 { margin: 0; font-size: 16px; }

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 4px;
}
.modal-close:hover { color: var(--text); }

.modal-card-body { padding: 18px 22px 22px; }
.modal-card-body .alert { margin-top: 0; }

.modal-card label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.modal-card label:first-child { margin-top: 0; }

.modal-card input,
.modal-card select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.modal-card input:focus,
.modal-card select:focus { border-color: var(--primary); outline: none; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
}
.checkbox-row input { width: auto; margin: 0; }

/* ============ 文章编辑 / 详情 ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form-col textarea { resize: vertical; line-height: 1.6; }
.form-actions { margin-top: 16px; display: flex; gap: 10px; }

.preview-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  min-height: 200px;
  max-height: 640px;
  overflow: auto;
  font-size: 15px;
  line-height: 1.8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 20px;
}

.code-block {
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

/* 微信预览容器：自适应窗口宽度（不再限制为手机宽度） */
.wechat-preview { width: 100%; margin: 0 auto; }

/* ============ 状态标签扩展（转换校验） ============ */
.status-badge.ok { background: rgba(7, 193, 96, 0.12); color: var(--primary); }
.status-badge.warn { background: #fff7e8; color: #d48806; }
.status-badge.error { background: #ffece8; color: var(--danger); }
.status-badge.failed { background: #ffece8; color: var(--danger); }

/* ============ 表格操作列 ============ */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .data-table { border: none; border-radius: 0; }
.col-actions { white-space: nowrap; }
.col-actions .btn { margin: 2px 0; }

/* ============ 编辑器 ============ */
.editor-toolbar { margin-bottom: 16px; }
.title-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  background: #fff;
  color: var(--text);
  margin-bottom: 12px;
}
.title-input:focus { border-color: var(--primary); }

.toolbar-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.toolbar-row label select {
  width: auto;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.toolbar-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.cover-field { flex: 1 1 260px; min-width: 220px; }
.cover-input-wrap { display: flex; gap: 8px; align-items: center; }
.cover-input-wrap .text-input { flex: 1; }
.text-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.text-input:focus { border-color: var(--primary); }

.export-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
  padding: 10px 12px;
  background: var(--panel, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 8px;
}
.export-title { font-size: 13px; color: var(--muted, #888); font-weight: 600; }


.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 68vh;
  min-height: 460px;
}
.editor-pane, .preview-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.editor-pane textarea {
  flex: 1;
  width: 100%;
  resize: none;
  border: none;
  outline: none;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
}
.editor-hint { font-size: 12px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); margin-top: 6px; }
.preview-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.preview-iframe {
  flex: 1;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  min-height: 0;
}
.preview-iframe.full { flex: none; height: 70vh; border: none; }

/* ============ 转换工具（重构） ============ */
.convert-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px 4px 32px;
}

/* 顶部标题区 */
.convert-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ch-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.5px;
}
.ch-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* 工具条 */
.convert-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ct-group { display: flex; gap: 16px; flex-wrap: wrap; }
.ct-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.ct-label { font-weight: 600; }
.ct-select {
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.ct-select:focus { border-color: var(--primary); outline: none; }
.ct-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tab 导航 + 校验状态 */
.convert-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 2px 14px;
}
.cn-tabs { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.cn-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.cn-tab.active { background: var(--primary); color: #fff; }
.cn-status { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cn-msgs { color: var(--danger, #f53f3f); }
.cn-error { margin: 0 2px 14px; }

/* 面板切换 */
.convert-panes { position: relative; }
.cn-pane { display: none; }
.cn-pane.active { display: block; animation: cnFade .2s ease; }
@keyframes cnFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 编辑 / 预览 分栏 */
.cv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  height: 78vh;
  min-height: 520px;
}
.cv-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.cv-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,0,0,0.015), transparent);
}
.cv-head-tip { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: auto; }
.cv-dot { width: 8px; height: 8px; border-radius: 50%; }
.cv-dot-md { background: #07c160; }
.cv-dot-html { background: #1677ff; }
.cv-editor {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 16px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: transparent;
}
.cv-editor::placeholder { color: var(--muted); }
.cv-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
  min-height: 0;
}

/* 导出工具栏 */
.export-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.export-title { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }

/* 源码面板 */
.cv-code {
  width: 100%;
  height: 78vh;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  background: var(--card);
  color: var(--text);
}
.cv-code:focus { outline: none; border-color: var(--primary); }
.convert-history {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 80px;
}
.history-list { list-style: none; margin: 0; padding: 0; }
.history-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.history-item:hover { border-color: var(--primary); background: rgba(7, 193, 96, 0.05); }
.hi-snippet { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-time { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============ 提示 toast ============ */
.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%) translateY(-20px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f2329;
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1000;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success,
.toast.ok { background: var(--primary); }
.toast.error,
.toast.err { background: var(--danger); }
.toast.success::before,
.toast.ok::before { content: '✓'; font-weight: 700; }
.toast.error::before,
.toast.err::before { content: '✕'; font-weight: 700; }

/* ============ 仪表盘（重构） ============ */
.dash { max-width: 1600px; margin: 0 auto; padding: 8px 4px 32px; }

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.dash-title { font-size: 28px; font-weight: 700; margin: 0; letter-spacing: -0.5px; }
.dash-welcome { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dash-actions { display: flex; gap: 10px; }

/* 指标卡 */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.dstat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform .15s, box-shadow .15s;
}
.dstat:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.dstat.accent { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #06ad56) 100%); border: none; color: #fff; }
.dstat.accent .dstat-label, .dstat.accent .dstat-sub { color: rgba(255,255,255,0.85); }
.dstat-ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,193,96,0.12);
}
.dstat-ico svg { width: 24px; height: 24px; fill: var(--primary); }
.dstat.accent .dstat-ico { background: rgba(255,255,255,0.2); }
.dstat.accent .dstat-ico svg { fill: #fff; }
.ico-pub { background: rgba(22,119,255,0.12); }
.ico-pub svg { fill: #1677ff; }
.ico-act { background: rgba(245,63,63,0.12); }
.ico-act svg { fill: #f53f3f; }
.ico-glb { background: rgba(124,92,255,0.12); }
.ico-glb svg { fill: #7c5cff; }
.dstat-body { min-width: 0; }
.dstat-label { font-size: 13px; color: var(--muted); }
.dstat-value { font-size: 28px; font-weight: 700; line-height: 1.2; }
.dstat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 卡片通用 */
.dcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dcard-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.dcard-head h3 { margin: 0; font-size: 16px; font-weight: 700; }

/* 图表区 */
.dash-charts {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.chart-card { min-height: 240px; }

/* 柱状趋势 */
.chart-bars {
  position: relative;
  height: 200px;
}
.bar-col {
  position: absolute;
  bottom: 22px;
  height: calc(100% - 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.bar-wrap {
  height: 100%;
  width: 60%;
  max-width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  transition: height .4s ease;
  min-height: 4px;
}
.bar-val { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.bar-label { position: absolute; bottom: 0; font-size: 11px; color: var(--muted); }

/* 环形图 */
.chart-donut { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; }
.donut { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: var(--border); stroke-width: 12; }
.donut-fg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.donut-pct { font-size: 26px; font-weight: 700; color: var(--text); }
.donut-cap { font-size: 12px; color: var(--muted); }
.donut-legend { display: flex; gap: 18px; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--text); }
.donut-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.lg-pub { background: var(--primary); }
.lg-draft { background: var(--border); }

/* 三栏列表 */
.dash-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.list-card { display: flex; flex-direction: column; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-empty { padding: 18px 4px; text-align: center; }
.dash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.dash-item:last-child { border-bottom: none; }
.di-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.di-title { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.di-main:hover .di-title { color: var(--primary); }
.di-sub { font-size: 12px; }
.dash-list.activity .dash-item { justify-content: flex-start; }
.dash-list.activity .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex: none; margin-top: 6px;
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .dash-charts { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .convert-layout { grid-template-columns: 1fr; }
  .convert-history { position: static; }
}
@media (max-width: 768px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-actions { width: 100%; }
  .dash-actions .btn { flex: 1; text-align: center; }
}
@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s;
    height: 100vh;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 40;
  }
  .hamburger { display: inline-flex; }
  .content { padding: 16px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .editor-layout { grid-template-columns: 1fr; height: auto; }
  .editor-pane { height: 50vh; }
  .preview-pane { height: 50vh; }
  .preview-iframe.full { height: 60vh; }
  .toolbar-actions { margin-left: 0; width: 100%; }
  .topbar { flex-wrap: wrap; gap: 8px 12px; }
  .user-area { flex-wrap: wrap; gap: 8px; }
  .data-table th, .data-table td { padding: 10px 10px; font-size: 13px; }
  .col-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
  .col-actions .btn { margin: 0; width: 100%; }
  .filters input, .filters select { flex: 1 1 140px; min-width: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ============ 主题管理 ============ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.theme-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.theme-card-head { display: flex; align-items: center; justify-content: space-between; }
.theme-name { font-weight: 600; font-size: 16px; }
.badge.preset { background: rgba(22,119,255,0.12); color: #1677ff; }
.badge.custom { background: rgba(7,193,96,0.12); color: var(--primary); }
.badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.theme-preview {
  background: #fafbfc;
  border-radius: 8px;
  padding: 12px;
  min-height: 70px;
}
.theme-preview .tp-h1 { display: block; font-size: 18px; font-weight: bold; margin-bottom: 6px; }
.theme-preview .tp-p { display: block; font-size: 13px; color: #555; line-height: 1.6; }
.theme-card-actions { display: flex; gap: 8px; }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.modal-box {
  position: relative;
  background: #fff;
  width: min(720px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.modal-head { border-bottom: 1px solid var(--border); }
.modal-foot { border-top: 1px solid var(--border); gap: 10px; justify-content: flex-end; }
.modal-body { padding: 18px 20px; }
.modal-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.form-row input[type="text"] { width: 100%; max-width: 220px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.form-row input[type="color"] { width: 56px; height: 38px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

.style-editor .panel-head { margin-bottom: 10px; }
.style-element { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.style-element-title { font-weight: 600; margin-bottom: 8px; }
.style-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.style-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.style-field input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}

/* ============ 操作日志 / 历史 ============ */
.table-wrap .data-table td.details-cell { max-width: 420px; word-break: break-word; }

/* ============ 404 ============ */
.notfound { text-align: center; }
.nf-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.notfound p { margin: 6px 0 18px; }

/* ============ 登录页（亮色版 · 背景取自主色，按钮取自背景色） ============ */
.auth-page.auth-login {
  /* 覆盖 .auth-page 的 flex 居中：flex + align-items:center + overflow:hidden
     在内容高于视口的小屏上会把顶部裁掉且无法上滚，造成“错位”。
     改用 block 布局，由 .auth-split 自身的 min-height + grid 居中负责垂直居中，
     overflow 仅限制横向，纵向可正常滚动。 */
  display: block;
  background:
    radial-gradient(1100px 560px at 8% -10%, rgba(5, 150, 105, 0.30), transparent 60%),
    radial-gradient(900px 520px at 112% 115%, rgba(7, 193, 96, 0.18), transparent 55%),
    linear-gradient(135deg, #059669 0%, #07c160 100%);
  padding: 0;
  overflow-x: hidden;
}

.auth-login .auth-split {
  width: 100%;
  max-width: 1080px;
  margin: auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
}

.auth-login .auth-hero { color: #fff; }

.auth-login .auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.auth-login .auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: #07c160;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.auth-login .auth-brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.auth-login .auth-hero h1 {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}
.auth-login .auth-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.8;
  max-width: 440px;
  margin: 0;
}
.auth-login .auth-features {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.auth-login .auth-features li { display: flex; align-items: flex-start; gap: 14px; }
.auth-login .auth-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.auth-login .auth-ico svg { width: 20px; height: 20px; fill: #07c160; }
.auth-login .auth-ft-title { font-weight: 600; font-size: 15px; }
.auth-login .auth-ft-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 2px;
}

.auth-login .auth-form-col { display: flex; justify-content: center; }
.auth-login .auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: none;
  border-radius: 22px;
  padding: 38px 34px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}
.auth-login .auth-welcome { margin: 0; font-size: 24px; font-weight: 700; color: #1f2937; }
.auth-login .auth-sub { margin: 6px 0 24px; color: #6b7280; font-size: 14px; }
.auth-login .auth-card label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  color: #374151;
}
.auth-login .auth-card input {
  width: 100%;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #1f2937;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.auth-login .auth-card input::placeholder { color: #9ca3af; }
.auth-login .auth-card input:focus {
  border-color: var(--primary);
  background: #f0fdf4;
}
.auth-login .auth-submit {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  font-size: 15px;
  background: linear-gradient(135deg, #0a3d29, #13543b);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.auth-login .auth-submit:hover { opacity: 0.88; }
.auth-login .auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-login .auth-card .alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.auth-login .auth-foot {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  margin: 0;
}

/* 窄屏：两栏提前堆叠为单列，避免挤压错位 */
@media (max-width: 920px) {
  .auth-login .auth-split {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px;
    max-width: 460px;
    min-height: auto;
  }
  .auth-login .auth-hero { display: none; }
  .auth-login .auth-card { padding: 30px 24px; }
  .auth-login .auth-foot { position: static; margin-top: 20px; }
}

/* 超小屏：进一步缩小标题，防止长标题溢出 */
@media (max-width: 480px) {
  .auth-login .auth-split { padding: 24px 14px; }
  .auth-login .auth-welcome { font-size: 21px; }
  .auth-login .auth-card { padding: 26px 18px; }
  .auth-login .auth-sub { margin-bottom: 20px; }
}

/* ============ 复选框列 / 批量操作栏 ============ */
.col-check { width: 40px; text-align: center; white-space: nowrap; }
.data-table input[type="checkbox"] { width: auto; }
.bulk-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.bulk-bar .bulk-count { font-weight: 700; }
.bulk-bar .bulk-spacer { flex: 1; }
.bulk-bar .bulk-delete { background: #fff; color: var(--primary); border: none; }
.bulk-bar .bulk-delete:hover { background: #f0f0f0; }
.bulk-bar .bulk-clear { background: rgba(255, 255, 255, 0.18); color: #fff; border: none; }

/* ============ Markdown 格式工具栏 ============ */
.fmt-toolbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  margin: -12px -12px 8px;
  padding: 0;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}
.fmt-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg);
  padding: 4px 8px 0;
  border-radius: 12px 12px 0 0;
}
.fmt-tab {
  border: none;
  background: transparent;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all .15s;
  position: relative;
  bottom: -1px;
}
.fmt-tab:hover { color: var(--text); background: rgba(0,0,0,.04); }
.fmt-tab.active {
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-color: var(--card);
}
.fmt-panes { padding: 6px 8px 4px; }
.fmt-pane { display: none; }
.fmt-pane.active { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.fmt-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.fmt-group + .fmt-group {
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--border);
}
.pos-rel { position: relative; }
.fmt-btn {
  border: none;
  background: transparent;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .12s;
}
.fmt-btn:hover { background: var(--bg); }
.fmt-btn:active { background: #e5e5e5; }
.fmt-btn svg { width: 18px; height: 18px; fill: currentColor; }
/* popover 弹出层（标题子菜单 / 颜色面板） */
.fmt-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  padding: 6px;
  min-width: 150px;
  margin-top: 4px;
}
.fmt-popover.active { display: block; }
.popover-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text);
  white-space: nowrap;
}
.popover-item:hover { background: var(--bg); }
.pop-lvl {
  display: inline-block;
  width: 26px;
  font-weight: 700;
  color: var(--primary);
}
/* 颜色选择器 */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 180px;
  padding: 4px;
  align-items: center;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s, border-color .12s;
}
.color-swatch:hover { transform: scale(1.15); border-color: var(--text); }
.color-custom {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: none;
}
/* 帮助表 */
.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.help-table th, .help-table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.help-table th { font-weight: 600; color: var(--muted); font-size: 12px; }
.help-table code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.fmt-tip { font-size: 13px; color: var(--muted); padding: 10px 0; line-height: 1.8; }
.fmt-status {
  font-size: 12px;
  color: var(--muted);
  margin-right: 16px;
  white-space: nowrap;
}
.fmt-btn[data-cmd="ref"] { font-size: 11px; }
/* 转换工具页面的工具栏（无负 margin，因为 .cv-col 无 padding） */
.cv-col .fmt-toolbar {
  margin: 0 0 4px;
  border-radius: 8px;
}
.cv-fmt-status {
  margin-left: auto;
  font-size: 11px;
}
.fmt-tab-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.fmt-tab-icon {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all .15s;
  font-weight: 500;
}
.fmt-tab-icon:hover { color: var(--text); background: rgba(0,0,0,.04); }

.bulk-bar .bulk-clear:hover { background: rgba(255, 255, 255, 0.3); }
.footer .icp a { color: var(--muted); text-decoration: none; }
.footer .icp a:hover { color: var(--primary); text-decoration: underline; }

