/* 轻盈云管理 · 样式 */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --hover: #f1f3f6;
  --active: #e9edf8;
  --line: #e6e8ec;
  --line-2: #eef0f3;
  --text: #1d2129;
  --text-2: #5c6370;
  --text-3: #8b919c;
  --accent: #3d63dd;
  --accent-2: #2f50c0;
  --accent-soft: #edf1fd;
  --danger: #d93c3c;
  --danger-soft: #fdeeee;
  --ok: #1f9d6b;
  --ok-soft: #e7f6ef;
  --warn-soft: #fff6dd;
  --ins: #dff3e7;
  --ins-text: #146c43;
  --del: #fde4e4;
  --del-text: #b42318;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(20, 24, 36, .04), 0 2px 8px rgba(20, 24, 36, .04);
  --shadow-pop: 0 6px 24px rgba(20, 24, 36, .12), 0 1px 3px rgba(20, 24, 36, .08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --side-w: 220px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 启动 ---------- */
.boot { height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); opacity: .85; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .45; } }

/* ---------- 按钮、输入 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s;
  user-select: none;
}
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: #f3c4c4; }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn .i { width: 16px; height: 16px; }

.input, .select, textarea.input {
  width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; padding: 8px 11px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 99, 221, .14); }
.input.error { border-color: var(--danger); }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field .err { color: var(--danger); font-size: 12px; margin-top: 4px; }
.field .hint { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.row { display: flex; align-items: center; gap: 8px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.radio-row label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.radio-row input { margin: 0; accent-color: var(--accent); }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; background: var(--hover); color: var(--text-2); }
.tag.blue { background: var(--accent-soft); color: var(--accent-2); }
.tag.green { background: var(--ok-soft); color: var(--ok); }
.tag.red { background: var(--danger-soft); color: var(--danger); }

/* ---------- 头像 ---------- */
.avatar {
  --c: var(--accent);
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
  user-select: none;
}
.avatar.two { font-size: 11px; letter-spacing: -.5px; }
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -6px; }
.avatar-stack .more { margin-left: 4px; font-size: 12px; color: var(--text-3); }
.user-chip { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 15% -10%, #e6ecfd 0%, transparent 60%),
    radial-gradient(700px 500px at 110% 110%, #e9f4f1 0%, transparent 60%),
    var(--bg);
}
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; padding: 36px 32px 28px; box-shadow: var(--shadow-pop); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-brand img { width: 40px; height: 40px; }
.login-brand h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: .5px; }
.login-brand p { margin: 0; color: var(--text-3); font-size: 13px; }
.login-card .btn.primary { width: 100%; height: 40px; margin-top: 6px; }
.login-msg { padding: 10px 12px; border-radius: var(--radius-s); background: var(--danger-soft); color: var(--danger); font-size: 13px; margin-bottom: 14px; }
.login-msg.info { background: var(--accent-soft); color: var(--accent-2); }
.login-foot { margin-top: 20px; text-align: center; color: var(--text-3); font-size: 12px; }

/* ---------- 框架 ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
}
.side-brand { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px; font-weight: 650; font-size: 15px; letter-spacing: .3px; color: var(--text); }
.side-brand img { width: 28px; height: 28px; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 10px; }
.side-group { margin: 14px 10px 6px; font-size: 12px; color: var(--text-3); }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; margin-bottom: 2px;
  border-radius: 8px; color: var(--text-2); cursor: pointer;
}
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 550; }
.nav-item.off { color: var(--text-3); cursor: default; }
.nav-item.off:hover { background: transparent; }
.nav-item .soon { margin-left: auto; font-size: 11px; color: var(--text-3); }
.side-user { position: relative; border-top: 1px solid var(--line); padding: 10px; }
.side-user .me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.side-user .me:hover { background: var(--hover); }
.side-user .me .who { line-height: 1.3; min-width: 0; }
.side-user .me .who b { display: block; font-weight: 550; }
.side-user .me .who span { font-size: 12px; color: var(--text-3); }
.main { flex: 1; min-width: 0; margin-left: var(--side-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: rgba(245, 246, 248, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h2 { margin: 0; font-size: 17px; font-weight: 600; }
.topbar .menu-btn { display: none; }
.page { padding: 8px 28px 48px; width: 100%; max-width: 1180px; }
.mask { display: none; }

@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow-pop); }
  .shell.nav-open .mask { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(20, 24, 36, .25); }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .topbar .menu-btn { display: inline-flex; }
  .page { padding: 4px 14px 40px; }
}

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 8px; padding: 14px 18px 10px; }
.card-h h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-h .right { margin-left: auto; }
.card-b { padding: 4px 18px 16px; }
.empty { padding: 28px 12px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty .i { width: 28px; height: 28px; stroke-width: 1.3; display: block; margin: 0 auto 8px; color: #c3c8d0; }

/* ---------- 主页 ---------- */
.hello { display: flex; align-items: flex-end; gap: 16px; margin: 10px 0 22px; }
.hello h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: .3px; }
.hello p { margin: 4px 0 0; color: var(--text-3); }
.hello .date { margin-left: auto; text-align: right; color: var(--text-2); font-size: 13px; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.module {
  position: relative; display: flex; gap: 14px; padding: 18px; min-height: 104px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.module:hover { color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-pop); border-color: #d9deea; }
.module .mi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.module .mi .i { width: 22px; height: 22px; }
.module h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.module p { margin: 0; color: var(--text-3); font-size: 13px; }
.module .stat { position: absolute; right: 16px; top: 16px; font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); padding: 1px 8px; border-radius: 10px; }
.module.off { cursor: default; background: transparent; box-shadow: none; border-style: dashed; }
.module.off:hover { transform: none; box-shadow: none; border-color: var(--line); }
.module.off .mi { background: var(--hover); color: var(--text-3); }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-grid .wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; } }
.list-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text); cursor: pointer; }
.list-item:hover { background: var(--hover); color: var(--text); }
.list-item .meta { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.ficon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; }
.ficon.doc { background: #eaf0fe; color: #3d63dd; }
.ficon.folder { background: #fdf3e2; color: #c98a1b; }
.ficon .i { width: 17px; height: 17px; }
.feed-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .txt { flex: 1; min-width: 0; color: var(--text-2); }
.feed-item .txt b { color: var(--text); font-weight: 550; }
.feed-item .txt a { color: var(--text); font-weight: 500; }
.feed-item .txt a:hover { color: var(--accent); }
.feed-item .time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.online-list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.online-list .who { display: flex; align-items: center; gap: 8px; }
.online-list .who span { font-size: 12px; color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.table .actions { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
@media (max-width: 700px) { .table .hide-m { display: none; } }

/* ---------- 弹窗、菜单、提示 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(20, 24, 36, .32); display: grid; place-items: center; padding: 20px; animation: fade .12s; }
.modal { width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop); animation: rise .16s ease; }
.modal.wide { max-width: 560px; }
.modal-h { display: flex; align-items: center; padding: 18px 22px 6px; }
.modal-h h3 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-h .btn { margin-left: auto; }
.modal-b { padding: 10px 22px 6px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 22px 20px; }
.modal-msg { color: var(--text-2); margin: 4px 0 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

.pop {
  position: fixed; z-index: 120; min-width: 180px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); animation: fade .1s;
  max-height: 70vh; overflow-y: auto;
}
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; white-space: nowrap; }
.pop .mi:hover, .pop .mi.sel { background: var(--hover); }
.pop .mi.danger { color: var(--danger); }
.pop .mi .i { width: 16px; height: 16px; color: var(--text-2); }
.pop .mi.danger .i { color: var(--danger); }
.pop .mi .k { margin-left: auto; color: var(--text-3); font-size: 12px; }
.pop .sep { height: 1px; background: var(--line-2); margin: 5px 4px; }
.pop .ph { padding: 6px 10px 4px; font-size: 12px; color: var(--text-3); }

.toasts { position: fixed; z-index: 200; left: 50%; top: 18px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 9px 16px; border-radius: 8px; background: #1f2430; color: #fff; font-size: 13px; box-shadow: var(--shadow-pop); animation: rise .16s ease; max-width: 90vw; }
.toast.err { background: #b42318; }
.toast.ok { background: #136f4b; }

/* ---------- 设置 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat-tile { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); }
.stat-tile b { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: 12px; color: var(--text-3); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }
.form-narrow { max-width: 420px; }
.section-gap { height: 14px; }

/* ============================================================
 * 协作空间
 * ============================================================ */

.search-box { position: relative; display: block; width: 240px; max-width: 40vw; }
.search-box .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.search-box .input { padding-left: 32px; height: 34px; background: var(--surface); }
@media (max-width: 640px) { .search-box { width: 140px; } }
.crumbs { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 14px; color: var(--text-2); }
.crumbs a { color: var(--text-2); white-space: nowrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs > span { color: var(--text); font-weight: 550; }
.crumbs .i { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.list-head { display: flex; align-items: center; min-height: 36px; margin: 2px 0 12px; }
.fname { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-weight: 500; }
.fname:hover { color: var(--text); }
.fname .muted { font-weight: 400; margin-left: 4px; white-space: nowrap; }
.table.files td:first-child { max-width: 420px; }
.empty.big { padding: 56px 12px; }
.empty.big > div:first-of-type { font-size: 15px; color: var(--text-2); }
.search-hit { display: block; padding: 12px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); }
.search-hit:hover { background: var(--hover); color: var(--text); }
.search-hit .snip { margin: 6px 0 4px 40px; color: var(--text-2); font-size: 13px; }
.search-hit .muted { margin-left: 40px; }
mark { background: #ffe8a3; color: inherit; border-radius: 2px; padding: 0 1px; }
.tree { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.tree-row { display: flex; align-items: center; gap: 8px; height: 34px; padding-right: 10px; border-radius: 6px; cursor: pointer; }
.tree-row:hover { background: var(--hover); }
.tree-row.on { background: var(--accent-soft); color: var(--accent-2); }
.tree-row.off { opacity: .4; cursor: not-allowed; }
.tree-row .i { width: 16px; height: 16px; color: var(--text-3); }
.tree-row .muted { margin-left: auto; }

/* ---------- 文档页 ---------- */
.main-doc .topbar { background: rgba(255, 255, 255, .9); border-bottom-color: var(--line); }
.main-doc .page { max-width: none; padding: 0 0 80px; }
.main-doc .topbar h2 { min-width: 0; }
.doc-crumbs { font-size: 13px; font-weight: 400; overflow: hidden; }
.doc-crumbs > span { max-width: 320px; }
.save-status { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.save-status.ok::before { content: "✓ "; color: var(--ok); }
.save-status.err { color: var(--danger); }
.viewers { display: inline-flex; }
.btn.on { background: var(--accent-soft); color: var(--accent-2); }
@media (max-width: 700px) { .hide-s { display: none; } .save-status { display: none; } }

.doc-wrap { padding: 28px 24px 0; transition: margin-right .2s ease; }
.main-doc.hist-open .doc-wrap { margin-right: 380px; }
@media (max-width: 1100px) { .main-doc.hist-open .doc-wrap { margin-right: 0; } }
.doc-banner {
  display: flex; align-items: center; gap: 10px; max-width: 860px; margin: 0 auto 14px; padding: 10px 14px;
  background: var(--warn-soft); border: 1px solid #f3e1a6; border-radius: 10px; color: var(--text-2); font-size: 13px;
}
.doc-banner > .i { color: #b98800; }
.doc-banner b { color: var(--text); }
.doc-paper {
  position: relative; max-width: 860px; margin: 0 auto; min-height: calc(100vh - 140px);
  padding: 56px 80px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .doc-wrap { padding: 12px 10px 0; }
  .doc-paper { padding: 28px 22px 24px; border-radius: 10px; }
}
.doc-title {
  font-size: 30px; font-weight: 700; line-height: 1.35; outline: none; letter-spacing: .3px;
  padding: 2px 0; margin-bottom: 6px; word-break: break-word;
}
.doc-title.is-empty::before { content: attr(data-ph); color: #c3c8d0; }
.doc-meta { font-size: 12px; color: var(--text-3); margin-bottom: 26px; }
.doc-meta .sep { margin: 0 8px; }
.blocks { position: relative; }
.blocks-tail { height: 120px; cursor: text; }
.doc-paper.syncing .blocks { opacity: .55; pointer-events: none; transition: opacity .2s; }
.doc-paper.uploading { cursor: progress; }

.blk { position: relative; padding: 1px 0; margin-left: calc(var(--indent, 0) * 26px); }
.blk-main { position: relative; border-radius: 6px; transition: background .3s, box-shadow .2s; display: flex; align-items: flex-start; }
.blk-text {
  flex: 1; min-width: 0; outline: none; padding: 4px 4px; min-height: 1.75em;
  font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; caret-color: var(--accent);
}
.blk-text.is-empty::before { content: attr(data-ph); color: #c3c8d0; pointer-events: none; position: absolute; }
.blk:not(.editing) .blk-text.is-empty::before { content: ""; }
.blk[data-type="p"]:not(.editing) .blk-text.is-empty::before { content: ""; }
.blk-text b { font-weight: 650; }
.blk-text code { font-family: var(--mono); font-size: .88em; background: #f2f3f5; border: 1px solid #e8e9ec; border-radius: 4px; padding: 1px 4px; color: #c7254e; }
.blk-text a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(61, 99, 221, .35); text-underline-offset: 3px; }
.blk[data-type="h1"] .blk-text { font-size: 24px; font-weight: 700; line-height: 1.45; padding-top: 18px; }
.blk[data-type="h2"] .blk-text { font-size: 20px; font-weight: 650; line-height: 1.5; padding-top: 14px; }
.blk[data-type="h3"] .blk-text { font-size: 17px; font-weight: 650; line-height: 1.55; padding-top: 10px; }
.blk[data-type="ul"] .blk-main::before, .blk[data-type="ol"] .blk-main::before {
  flex: none; width: 24px; padding-top: 4px; font-size: 15px; line-height: 1.75; color: var(--text-2); text-align: center;
}
.blk[data-type="ul"] .blk-main::before { content: "•"; font-size: 18px; line-height: 1.5; }
.blk[data-type="ol"] .blk-main::before { content: attr(data-n); font-variant-numeric: tabular-nums; }
.blk-check {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin: 8px 8px 0 3px;
  border: 1.6px solid #b7bdc6; border-radius: 4px; cursor: pointer; color: transparent; transition: background .12s, border-color .12s;
}
.blk-check:hover { border-color: var(--accent); }
.blk-check .i { width: 13px; height: 13px; stroke-width: 2.6; }
.blk.checked .blk-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.blk.checked .blk-text { color: var(--text-3); text-decoration: line-through; }
.blk[data-type="quote"] .blk-text { border-left: 3px solid #d3d8e0; padding-left: 14px; color: var(--text-2); }
.blk[data-type="code"] .blk-text {
  font-family: var(--mono); font-size: 13px; line-height: 1.65; tab-size: 2;
  background: #f6f7f9; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 4px 0;
}
.blk-hr { flex: 1; height: 25px; display: flex; align-items: center; outline: none; cursor: pointer; border-radius: 4px; }
.blk-hr::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.blk-hr:focus { background: var(--accent-soft); }
.blk-img { margin: 6px 0; outline: none; border-radius: 8px; max-width: 100%; }
.blk-img img { display: block; max-width: 100%; max-height: 640px; border-radius: 8px; }
.blk-img:focus { box-shadow: 0 0 0 2px var(--accent); }
.img-ph { padding: 24px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; color: var(--text-3); font-size: 13px; }

/* 左侧把手 */
.blk-gutter { position: absolute; left: -52px; top: 5px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.blk[data-type="h1"] .blk-gutter { top: 23px; }
.blk[data-type="h2"] .blk-gutter { top: 18px; }
.blk[data-type="h3"] .blk-gutter { top: 13px; }
.blk:hover .blk-gutter, .blk.editing .blk-gutter { opacity: 1; }
.blk-add, .blk-handle {
  display: grid; place-items: center; width: 22px; height: 24px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: #a3a9b3; cursor: pointer;
}
.blk-handle { cursor: grab; }
.blk-add:hover, .blk-handle:hover { background: var(--hover); color: var(--text-2); }
.blk-add .i, .blk-handle .i { width: 16px; height: 16px; }
.blk-handle .i { fill: currentColor; stroke: none; }
@media (max-width: 760px) { .blk-gutter { display: none; } }
.blk.dragging { opacity: .4; }
.drop-line { position: absolute; left: 70px; right: 70px; height: 2px; background: var(--accent); border-radius: 1px; pointer-events: none; z-index: 5; }

/* 别人正在编辑 */
.blk.locked .blk-main { box-shadow: 0 0 0 1.5px var(--lc); background: color-mix(in srgb, var(--lc) 5%, transparent); }
.blk.locked .blk-text { cursor: not-allowed; }
.blk-badge {
  position: absolute; right: 0; top: -9px; z-index: 2; height: 18px; line-height: 18px; padding: 0 7px;
  background: var(--lc); color: #fff; font-size: 11px; border-radius: 4px; white-space: nowrap; pointer-events: none;
}
/* 别人最近改过 */
.blk-bar { position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: transparent; }
.blk.recent .blk-bar { background: var(--rc); opacity: .75; cursor: help; }
.blk.since .blk-main { background: #fff1c2; }
.blk.flash .blk-main { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { background: #fff1bf; } 100% { background: transparent; } }

/* 选中文字后的格式条 */
.fmt-bar {
  position: fixed; z-index: 90; display: flex; gap: 2px; padding: 4px; background: #1f2430; border-radius: 8px; box-shadow: var(--shadow-pop);
}
.fmt-bar .fb { height: 28px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: #e7e9ee; cursor: pointer; font-size: 13px; }
.fmt-bar .fb:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fmt-bar .fb-bold { font-weight: 700; }
.fmt-bar .fb-italic { font-style: italic; font-family: Georgia, serif; }
.fmt-bar .fb-underline { text-decoration: underline; }
.fmt-bar .fb-strikeThrough { text-decoration: line-through; }
.fmt-bar .fb-code { font-family: var(--mono); font-size: 12px; }

.pop.slash { min-width: 220px; }
.pop.slash .ti { display: inline-grid; place-items: center; width: 26px; height: 22px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; color: var(--text-2); font-weight: 600; background: var(--surface); }

/* 修改记录 */
.hist {
  position: fixed; z-index: 45; top: 60px; right: 0; bottom: 0; width: 380px; max-width: 100vw;
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -6px 0 24px rgba(20, 24, 36, .05);
  animation: slide .18s ease;
}
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }
.hist-h { display: flex; align-items: center; padding: 14px 16px 6px; }
.hist-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.hist-h .btn { margin-left: auto; }
.hist-filter { padding: 0 16px 10px; border-bottom: 1px solid var(--line-2); }
.hist-filter .tag { gap: 4px; }
.tag-x { display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.tag-x .i { width: 12px; height: 12px; }
.hist-list { flex: 1; overflow-y: auto; padding: 6px 12px 20px; }
.hist-group { padding: 10px 4px 6px; border-bottom: 1px solid var(--line-2); }
.hist-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hist-gh b { font-weight: 600; }
.hist-gh .btn { opacity: 0; transition: opacity .12s; }
.hist-group:hover .hist-gh .btn { opacity: 1; }
@media (hover: none) { .hist-gh .btn { opacity: 1; } }
.hist-item { margin: 0 0 4px 30px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.hist-item:hover { background: var(--hover); }
.hist-ih { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.hist-act { font-size: 12px; font-weight: 600; color: var(--text-2); }
.hist-act.act-create { color: var(--ins-text); }
.hist-act.act-delete { color: var(--del-text); }
.hist-act.act-restore { color: var(--accent-2); }
.hist-undo { height: 22px; padding: 0 8px; font-size: 12px; opacity: 0; }
.hist-item:hover .hist-undo { opacity: 1; }
@media (hover: none) { .hist-undo { opacity: 1; } }
.diff { font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.diff ins { text-decoration: none; background: var(--ins); color: var(--ins-text); border-radius: 3px; padding: 0 1px; }
.diff del { background: var(--del); color: var(--del-text); border-radius: 3px; padding: 0 1px; }
@media (max-width: 860px) { .hist { top: 60px; width: 100vw; } }

/* ============================================================
 * 通知、主页板块
 * ============================================================ */

.bell { position: relative; flex: none; }
.bell-badge {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; font-weight: 600; text-align: center; box-shadow: 0 0 0 2px var(--bg);
}
.pop.notif { width: 360px; max-width: calc(100vw - 16px); padding: 0; }
.notif-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); }
.notif-list { max-height: 60vh; overflow-y: auto; padding: 4px; }
.notif-item { display: flex; gap: 10px; padding: 9px 8px; border-radius: 8px; cursor: pointer; }
.notif-item:hover { background: var(--hover); }
.notif-item .nt { color: var(--text-2); }
.notif-item.unread .nt { color: var(--text); font-weight: 550; }
.notif-item.unread::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }
.notif-item .nb { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-item .nm { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.home-grid.panels { margin-bottom: 14px; }
.home-grid.panels:empty { display: none; }
.ficon.task { background: #e8f6f1; color: #12a594; }
.list-item .meta.warn { color: var(--danger); }
.list-item .tag { flex: none; }
.card-h .right { margin-left: auto; }

/* 嵌入别处的文档编辑器（任务说明） */
.ed-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -4px 0 4px; }
.doc-wrap.embedded { padding: 0; }
.doc-wrap.embedded .doc-banner { margin: 0 0 8px; }
.doc-wrap.embedded .doc-paper { padding: 0 0 0 46px; margin-left: -46px; border: 0; box-shadow: none; min-height: 0; background: transparent; max-width: none; }
.doc-wrap.embedded .blocks-tail { height: 40px; }
.doc-wrap.embedded .drop-line { left: 46px; right: 0; }
.hist.over { z-index: 75; top: 0; }

/* ============================================================
 * 任务看板
 * ============================================================ */

.seg { display: inline-flex; padding: 3px; background: var(--hover); border-radius: 8px; gap: 2px; }
.seg-i { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 6px; color: var(--text-2); font-size: 13px; }
.seg-i:hover { color: var(--text); }
.seg-i.on { background: var(--surface); color: var(--text); font-weight: 550; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.main-wide .page { max-width: none; }
.fbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.fbar .search-box { width: 200px; }
.select.sm, .input.sm { height: 30px; font-size: 13px; padding: 0 8px; width: auto; }
.select { appearance: none; -webkit-appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b919c' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; background-size: 14px; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; }
.chip .i { width: 14px; height: 14px; }
.chip.on { background: var(--accent-soft); border-color: #c9d5f8; color: var(--accent-2); }
.row.wrap { flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #eef0f4; border-radius: 12px; padding: 10px 8px 8px; min-height: 200px; display: flex; flex-direction: column; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.col-h b { font-weight: 600; }
.col-n { font-size: 12px; color: var(--text-3); background: rgba(255, 255, 255, .7); padding: 0 7px; border-radius: 9px; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; background: #a3a9b3; }
.col-doing .col-dot { background: var(--accent); }
.col-testing .col-dot { background: #f76b15; }
.col-done .col-dot { background: var(--ok); }
.col-b { display: flex; flex-direction: column; gap: 8px; min-height: 60px; flex: 1; }
.col-empty { padding: 18px 8px; text-align: center; color: var(--text-3); font-size: 12px; border: 1px dashed #d6dae1; border-radius: 8px; }
.col-more { display: block; padding: 8px 6px 2px; font-size: 12px; color: var(--text-3); }
.col-more:hover { color: var(--accent); }
.qa .input { height: 38px; }
.drop-mark { height: 3px; border-radius: 2px; background: var(--accent); margin: -2px 2px; }

.tcard {
  background: var(--surface); border: 1px solid transparent; border-radius: 9px; padding: 10px 11px 9px;
  box-shadow: 0 1px 2px rgba(20, 24, 36, .06); cursor: pointer; transition: box-shadow .12s, border-color .12s; outline: none;
}
.tcard:hover { box-shadow: 0 2px 8px rgba(20, 24, 36, .1); }
.tcard:focus-visible, .tcard.open { border-color: var(--accent); }
.tcard.dragging { opacity: .4; }
.tc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.tc-id { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tc-title { font-size: 14px; line-height: 1.5; word-break: break-word; }
.col-done .tc-title { color: var(--text-2); }
.tc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.tc-meta:empty { display: none; }
.tc-m { display: inline-flex; align-items: center; gap: 3px; }
.tc-m .i { width: 13px; height: 13px; }
.tc-m.ok { color: var(--ok); }
.due.over { color: var(--danger); }
.due.soon { color: #d9730d; }

.tbadge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; flex: none; }
.tbadge.t-feature { background: #eaf0fe; color: #3157c9; }
.tbadge.t-bug { background: #fdecec; color: #c4302b; }
.tbadge.t-improve { background: #e6f6ef; color: #17845a; }
.pbadge { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; flex: none; }
.pbadge .i { width: 12px; height: 12px; }
.pbadge.p1 { color: var(--danger); }
.pbadge.p2 { color: #d9730d; }
.ptag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ptag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--pc); }
.sbadge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; white-space: nowrap; background: var(--hover); color: var(--text-2); }
.sbadge.s-doing { background: var(--accent-soft); color: var(--accent-2); }
.sbadge.s-testing { background: #fff1e6; color: #c25a0c; }
.sbadge.s-done { background: var(--ok-soft); color: var(--ok); }
.table.tasks td { padding: 10px 12px; }
.table.tasks td:nth-child(2) { max-width: 420px; }
.table.tasks .row { gap: 6px; min-width: 0; }

/* 负责人选择 */
.pop.upick { min-width: 220px; }
.pop.upick .mi .ck { color: transparent; }
.pop.upick .mi.sel .ck { color: var(--accent); }
.pop.upick .mi .ck .i { color: inherit; }
.upick-f { display: flex; justify-content: flex-end; padding: 6px 4px 2px; border-top: 1px solid var(--line-2); margin-top: 4px; }
.pop.mention-pop { min-width: 180px; }

/* 产品管理 */
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 8px; }
.prow.off .input { color: var(--text-3); }
.swatch.sm { width: 20px; height: 20px; flex: none; }

/* 版本 */
.vgroup { margin-bottom: 20px; }
.vgroup-h { margin: 0 0 10px 2px; font-size: 14px; }
.vgroup-h .ptag { font-size: 14px; font-weight: 600; color: var(--text); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vcard { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.vcard:hover { color: var(--text); border-color: #cfd6e4; }
.vcard.done { background: var(--surface-2); }
.vcard b { font-size: 15px; }
.prog { display: flex; align-items: center; gap: 10px; }
.prog-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; min-width: 60px; }
.prog-bar span { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.prog-t { font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vtitle { margin: 0; font-size: 20px; font-weight: 650; }
.vnote { margin: 0 0 12px; color: var(--text-2); white-space: pre-wrap; }
.input.mono { font-family: var(--mono); font-size: 13px; line-height: 1.6; }

/* 任务详情抽屉 */
.tdrawer-mask { position: fixed; inset: 0; z-index: 60; background: rgba(20, 24, 36, .18); animation: fade .15s; }
.tdrawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: 780px; max-width: 100vw;
  display: flex; flex-direction: column; background: var(--surface); box-shadow: -8px 0 32px rgba(20, 24, 36, .14); animation: slide .2s ease;
}
.td-h { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 14px 0 24px; border-bottom: 1px solid var(--line-2); flex: none; }
.td-b { flex: 1; overflow-y: auto; padding: 18px 28px 40px 28px; }
@media (max-width: 700px) { .td-b { padding: 14px 16px 40px; } .td-h { padding-left: 16px; } }
.td-title {
  width: 100%; border: 0; outline: none; resize: none; overflow: hidden; padding: 4px 0; margin: 0 0 10px;
  font-size: 22px; font-weight: 650; line-height: 1.4; background: transparent; border-radius: 6px;
}
.td-title:focus { background: var(--surface-2); box-shadow: 0 0 0 6px var(--surface-2); }
.td-props { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 12px 0 16px; border-bottom: 1px solid var(--line-2); }
@media (max-width: 560px) { .td-props { grid-template-columns: 1fr; } }
.td-p { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.td-pl { width: 64px; flex: none; color: var(--text-3); font-size: 13px; }
.td-pv { flex: 1; min-width: 0; }
.td-pv .select, .td-pv .input { max-width: 100%; }
.td-pv .select.sb-doing { color: var(--accent-2); font-weight: 550; }
.td-pv .select.sb-testing { color: #c25a0c; font-weight: 550; }
.td-pv .select.sb-done { color: var(--ok); font-weight: 550; }
.td-users { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-height: 30px; padding: 3px 8px; margin-left: -8px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; text-align: left; }
.td-users:hover { background: var(--hover); }
.td-sec { padding: 16px 0 8px; border-bottom: 1px solid var(--line-2); }
.td-sec:last-of-type { border-bottom: 0; }
.td-sh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.td-sh b { font-weight: 600; flex: none; }
.td-sh .prog { flex: 1; max-width: 260px; }
.ck { display: flex; align-items: center; gap: 4px; padding: 1px 0; border-radius: 6px; }
.ck:hover { background: var(--surface-2); }
.ck .blk-check { margin: 0 6px 0 4px; }
.ck .blk-check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ck-edit { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 32px; padding: 0 4px; border-radius: 5px; }
.ck-edit:focus { background: var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.ck.done .ck-edit { color: var(--text-3); text-decoration: line-through; }
.ck-del { opacity: 0; }
.ck:hover .ck-del { opacity: 1; }
@media (hover: none) { .ck-del { opacity: 1; } }
.ck-add { width: 100%; margin-top: 6px; }
.td-desc { min-height: 60px; }
.td-tl { display: flex; flex-direction: column; gap: 4px; }
.tl-e { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 6px; font-size: 13px; color: var(--text-2); }
.tl-e b { font-weight: 550; color: var(--text); }
.tl-e .muted { margin-left: auto; white-space: nowrap; }
.tl-dot { width: 6px; height: 6px; border-radius: 50%; background: #c3c8d0; flex: none; margin-right: 6px; }
.tl-c { display: flex; gap: 10px; padding: 10px 12px; margin: 6px 0; background: var(--surface-2); border-radius: 10px; }
.tl-ch { display: flex; align-items: center; gap: 8px; }
.tl-ch .btn { height: 22px; padding: 0 6px; font-size: 12px; opacity: 0; }
.tl-c:hover .tl-ch .btn { opacity: 1; }
.tl-body { margin-top: 2px; white-space: normal; word-break: break-word; line-height: 1.65; }
.mention { color: var(--accent-2); background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }
.td-comment { padding-top: 12px; }
.seg-i { white-space: nowrap; }
.topbar h2 { white-space: nowrap; }
@media (max-width: 700px) {
  .seg-i { padding: 0 8px; }
  .topbar h2 { font-size: 15px; }
  .fbar .search-box { width: 100%; max-width: none; }
  .board { grid-template-columns: repeat(4, 82vw); }
}

/* ============================================================
 * 环境标记、两步验证、角色、操作日志（v0.3）
 * ============================================================ */
.env-tag { margin-left: 2px; padding: 0 6px; height: 18px; line-height: 18px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #fff1e6; color: #c25a0c; letter-spacing: 0; }
.login-card.wide { max-width: 460px; }
.code-input { height: 46px; font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.mfa-steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); }
.mfa-steps li { margin-bottom: 6px; }
.mfa-secret { display: inline-block; margin-top: 4px; padding: 2px 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 13px; word-break: break-all; user-select: all; }
.mfa-qr { display: flex; justify-content: center; margin: 4px 0 14px; }
.mfa-qr svg { width: 196px; height: 196px; border: 1px solid var(--line); border-radius: 8px; }
.mfa-recovery .codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 16px; }
.mfa-recovery .codes code { padding: 8px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 15px; letter-spacing: 1px; user-select: all; }
.role-list { display: flex; flex-direction: column; gap: 6px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-opt input { margin-top: 4px; accent-color: var(--accent); }
.audit-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.audit-row:last-child { border-bottom: 0; }
.audit-row .time { width: 86px; flex: none; color: var(--text-3); font-size: 12px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.avatar.sys { --c: #9aa0a6; }
pre.json { margin: 0; max-height: 60vh; overflow: auto; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
.code-input::placeholder { letter-spacing: 1px; font-size: 15px; }

/* ===== 运营中心 ===== */
.tag.orange { background: #fff1e6; color: #c25a0c; }
.tags { gap: 4px; flex: none; }
.warn-text { color: #c25a0c; }
.env-tag.big { height: 24px; line-height: 24px; padding: 0 10px; font-size: 12px; border-radius: 12px; }
.ops-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ops-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.ops-card:hover { border-color: #cdd5ea; color: var(--text); }
.ops-card .row { gap: 8px; }
.ops-card b { font-size: 15px; }
.ops-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ops-stats > div { display: flex; flex-direction: column; align-items: flex-start; }
.ops-stats b { font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ops-stats span { font-size: 12px; color: var(--text-3); }
.ops-warn { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; background: var(--warn-soft); border-radius: 8px; font-size: 12px; color: #8a5a00; }
.ops-warn > div { display: flex; align-items: center; gap: 6px; }
.ops-warn .i { width: 13px; height: 13px; flex: none; }
.ops-links { gap: 8px; margin-bottom: 14px; }
.ops-sec { margin-bottom: 14px; }
.ops-sec .card-h .right { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ops-form { margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 9px 16px; margin: 0; font-size: 13.5px; flex: 1 1 320px; min-width: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd .tag { margin-right: 4px; }
.kv code, .ops-sec code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.gap-l { gap: 24px 40px; }
.list-item.static { cursor: default; align-items: flex-start; }
.list-item.static:hover { background: transparent; }
.list-item.faded { opacity: .55; }
.list-item + .list-item.static { border-top: 1px solid var(--line-2); border-radius: 0; }
.mx-cap { margin: 4px 0 6px; }
.mx-table { width: auto; min-width: 100%; }
.mx-table th.mx-h { text-align: center; font-weight: 500; white-space: nowrap; padding: 8px 10px; }
.mx-table th.mx-r { text-align: left; font-weight: 500; min-width: 160px; color: var(--text); }
.mx-table td.mx { text-align: center; width: 84px; color: var(--text-3); }
.mx-table td.mx.on { color: var(--ok); }
.mx-table td.mx.on .i { width: 16px; height: 16px; }
.mx-table td.mx.forced { background: var(--accent-soft); }
.mx-table td.mx.click { cursor: pointer; }
.mx-table td.mx.click:hover { background: var(--hover); }
textarea.mono { font-family: var(--mono); font-size: 12.5px; resize: none; }
@media (max-width: 760px) {
  .ops-cards { grid-template-columns: 1fr; }
  .ops-stats { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }
}
.row.top { align-items: flex-start; }
.tag { white-space: nowrap; }
.ops-sec .card-h h3 { white-space: nowrap; }
@media (max-width: 760px) { .ops-sec .card-h { flex-wrap: wrap; } .ops-sec .card-h .right { margin-left: 0; justify-content: flex-start; } }
.reg-modes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.reg-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.reg-mode:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.reg-mode input { margin-top: 3px; }
code.inv-code { font-size: 13px; letter-spacing: .5px; }
.section-label { margin: 6px 0 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
