/* CREATOR LIVE 直播团队共享中心 — 品牌 VI 配色（藕粉、淡紫、酒红） */
:root {
  /* 品牌色：藕粉 / 淡紫做底，酒红做重点（参考 VI：信封内衬的深酒红、丝带的藕粉、外袋的淡紫） */
  --ink: #2f2329; --muted: #85767e; --faint: #ab9ea6; --line: #ece2e8; --line-soft: #f4edf1;
  --surface: #fff; --paper: #fbf8fa; --side: #f6eff4; --side-hover: #efe3eb; --side-active: #ead8e4;
  --accent: #6e2f3e; --accent-dark: #3f1d24; --accent-soft: #f6ebef; --accent-ink: #5a2433;
  --rose: #dcaaa9; --lilac: #cdbcd9; --blush: #f3e4ec;
  --warn: #a0803e; --warn-soft: #fcf3dd; --danger: #b3473c; --danger-soft: #f8ebe9; --ok: #5f8067; --ok-soft: #eaf4ea;
  --radius: 11px; --sidebar-width: 232px; --content-max: 1440px; --pad-y: 42px; --pad-x: 48px;
}
[data-density="compact"] { --pad-y: 26px; --pad-x: 32px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #cbafbf; outline-offset: 0; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 外壳 ---------- */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); padding: 26px 14px 16px; display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.shell.side-right .sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; margin-bottom: 30px; }
.brand-mark { width: 37px; height: 37px; position: relative; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: var(--accent-dark); color: #fff; font-size: 24px; font-weight: 600; line-height: 1; }
.brand-mark i { position: absolute; width: 5px; height: 5px; border-radius: 2px; background: #dcbfd0; right: 8px; bottom: 8px; }
.brand strong { display: block; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.brand small { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.nav-group + .nav-group { margin-top: 18px; }
.nav-caption { padding: 0 12px; margin-bottom: 6px; color: #a0a7a0; font-size: 11px; letter-spacing: .05em; }
.nav-group a { height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 11px; color: #766c72; border-radius: 8px; font-weight: 500; }
.nav-group a:hover { background: var(--side-hover); }
.nav-group a.active { color: var(--accent-ink); background: var(--side-active); }
.nav-group a.active svg { stroke-width: 1.8; }
.nav-group a.emergency-link { color: #8d4a43; }
.nav-group a.emergency-link.active { background: #f3e2df; color: #7c3a33; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.nav-admin { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e6dbe1; }
.side-footer { margin-top: auto; padding: 16px 6px 0; display: flex; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; background: #ebdce5; border-radius: 50%; font-size: 12px; color: #6c5b65; }
.side-footer strong, .side-footer small { display: block; line-height: 1.35; }
.side-footer strong { font-size: 12px; font-weight: 500; }
.side-footer small { font-size: 11px; color: #998e94; }
.side-footer .icon-button { margin-left: auto; }
.main { margin-left: var(--sidebar-width); min-width: 0; }
.shell.side-right .main { margin-left: 0; margin-right: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; padding: 0 var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #ffffffe6; backdrop-filter: blur(8px); }
.topbar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9aa19b; min-width: 0; }
.crumbs strong { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-link { font-size: 12px; color: #725b68; display: inline-flex; align-items: center; gap: 6px; }
.top-link + .top-link { border-left: 1px solid var(--line); padding-left: 16px; }
.top-link.urgent { color: #8d4a43; }
.topbar .menu-button, .scrim { display: none; }
.content:focus { outline: none; }
.content { max-width: var(--content-max); margin: auto; padding: var(--pad-y) var(--pad-x) 80px; }
.content.narrow { max-width: 980px; }

/* ---------- 通用组件 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 6px 0 4px; font-size: 27px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 13px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { color: #a18f9a; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 15px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.button:hover { background: #543447; }
.button.secondary { color: #5d4f57; border-color: #e6dce2; background: #fff; }
.button.secondary:hover { background: #f6edf2; }
.button.ghost { border-color: transparent; background: transparent; color: var(--accent); padding-inline: 8px; }
.button.ghost:hover { background: var(--accent-soft); }
.button.danger { color: var(--danger); background: #fff; border-color: #e8c9c5; }
.button.danger:hover { background: var(--danger-soft); }
.button.small { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.button.urgent { background: #8d4a43; border-color: #8d4a43; }
.icon-button { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #877c82; }
.icon-button:hover { background: var(--side-hover); }
.tag { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 2px 7px; border-radius: 4px; background: #f3edf1; color: #806876; font-size: 11px; font-weight: 400; white-space: nowrap; }
.tag.review, .tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.draft { background: #f0f1f5; color: #7b8089; }
.tag.published, .tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.archived { background: #eee; color: #888; }
.tag.danger, .tag.urgent { background: var(--danger-soft); color: var(--danger); }
.tag.demo { background: #f4efe2; color: #93855b; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.grid-2 > .panel + .panel, .grid-3 > .panel + .panel, .todo-grid > .panel + .panel, .split > .panel + .panel, .stack > .panel + .panel, .editor-side > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.panel-head p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.callout { margin: 0 0 18px; padding: 11px 15px; border: 1px solid #ebdee6; border-radius: 8px; background: #f7edf3; color: #836a79; font-size: 12.5px; line-height: 1.8; }
.callout.warn { border-color: #efe1bd; background: var(--warn-soft); color: #86692e; }
.callout.danger { border-color: #ecd0cb; background: var(--danger-soft); color: #86423b; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .symbol { display: block; margin-bottom: 12px; font-size: 34px; color: #d1bdc9; font-weight: 300; line-height: 1; }
.empty h3 { color: #7a6772; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.empty p { font-size: 12.5px; line-height: 1.9; color: var(--faint); margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: #877d83; font-size: 13px; white-space: nowrap; margin-bottom: -1px; }
.tabs .active { color: var(--accent-ink); border-color: var(--accent); font-weight: 500; }
.tabs .count { margin-left: 5px; font-size: 11px; color: var(--faint); }
.chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border: 1px solid #e7dbe2; border-radius: 6px; background: #fff; color: #705f69; font-size: 12px; }
.chip:hover { border-color: #d6c3ce; }
.chip.on { border-color: #ceb4c3; background: var(--accent-soft); color: var(--accent-ink); }
.picker-label { font-size: 12px; color: #877c82; font-weight: 500; margin-right: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.kv { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.kv span + span::before { content: "·"; margin-right: 6px; color: #ccc2c8; }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 5px; font-size: 12.5px; color: #665961; font-weight: 500; }
.field small { font-weight: 400; color: var(--faint); font-size: 11.5px; }
.field.wide { grid-column: 1 / -1; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, select.input { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #e5dbe1; border-radius: 7px; background: #fff; font-size: 13px; font-weight: 400; color: var(--ink); }
.field textarea, textarea.input { min-height: 84px; resize: vertical; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; cursor: pointer; }
.check input { margin-top: 4px; width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
.search-box { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 11px; border: 1px solid #e5dbe1; border-radius: 8px; background: #fff; color: #a08e98; }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: transparent; }
.form-error { color: var(--danger); font-size: 12.5px; }

/* ---------- 搜索首页 ---------- */
.search-page { max-width: 820px; margin: 56px auto 0; }
.search-page.has-results { margin-top: 8px; }
.search-intro { text-align: center; margin-bottom: 28px; }
.search-intro .eyebrow { font-size: 9.5px; letter-spacing: .18em; }
.search-intro h1 { font-size: 34px; font-weight: 500; letter-spacing: -.03em; margin: 16px 0 10px; }
.search-intro p { color: #978690; font-size: 13.5px; }
.has-results .search-intro { display: none; }
.central-search { display: flex; align-items: center; gap: 14px; padding: 8px 9px 8px 20px; border: 1px solid #e1d0da; border-radius: 12px; background: #fff; box-shadow: 0 6px 28px #2e492308; }
.central-search > svg { color: #a08093; flex-shrink: 0; }
.central-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 10px 0; background: transparent; }
.central-search .button { min-height: 44px; padding-inline: 22px; border-radius: 8px; }
.search-options { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.search-options small { color: var(--faint); font-size: 11.5px; }
.recent { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--faint); }
.recent button { border: 1px solid #e9dee4; background: #fff; border-radius: 6px; padding: 4px 10px; color: #705f69; font-size: 12px; }
.recent .clear { border: 0; background: none; color: var(--faint); }
.home-cards { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.home-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; min-height: 170px; display: flex; flex-direction: column; }
.home-card h2 { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.home-card.emergency { background: #3a302e; border-color: #3a302e; color: #fff; }
.home-card.emergency h2 { color: #f2c4bc; }
.home-card.emergency p { color: #b8aaa5; font-size: 12px; margin-bottom: 10px; }
.home-card.emergency a.pb { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #514543; font-size: 12.5px; color: #eee5e2; }
.home-card.emergency a.pb:hover { color: #fff; }
.home-card.emergency .more { margin-top: auto; padding-top: 10px; color: #f2c4bc; font-size: 12px; }
.home-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.home-card li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.home-card li a:hover { color: var(--accent); }
.home-card li small { color: var(--faint); font-size: 11px; white-space: nowrap; }
.home-card .none { color: var(--faint); font-size: 12px; margin-top: 8px; }
.todo-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; display: grid; place-items: center; }
.results { margin-top: 26px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.results-head h2 { font-size: 15px; font-weight: 600; }
.results-head span { font-size: 12px; color: var(--faint); }
.result { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.result:hover { border-color: #d0bcc8; }
.result .type { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #977f8d; margin-bottom: 5px; }
.result h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.result p { font-size: 12.5px; color: #756b71; line-height: 1.75; }
.result footer { margin-top: 8px; font-size: 11.5px; color: var(--faint); }
.result.playbook { border-left: 3px solid #b26a60; }
mark { background: #fbeec2; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-footnote { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.search-footnote a { margin-left: auto; color: #7c6673; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #af91a2; display: inline-block; flex-shrink: 0; }

/* ---------- 目录（知识库 / 工具库） ---------- */
.catalog { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.rail { position: sticky; top: 84px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rail h2 { font-size: 11px; color: var(--faint); font-weight: 500; letter-spacing: .06em; padding: 2px 8px 8px; }
.rail button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: #6b5f66; font-size: 13px; text-align: left; }
.rail button:hover { background: #f6f1f4; }
.rail button.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.rail small { font-size: 11px; color: var(--faint); }
.rail p { margin-top: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--faint); line-height: 1.7; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.catalog-controls .search-box { width: 260px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.list-head h2 { font-size: 15px; font-weight: 600; }
.list-head span { font-size: 12px; color: var(--faint); }
.doc-list { border-top: 1px solid var(--line); }
.doc-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); }
.doc-row:hover h3 { color: var(--accent); }
.doc-icon { display: grid; place-items: center; width: 34px; height: 40px; color: #a18294; background: #f8eef4; border-radius: 5px; flex-shrink: 0; }
.doc-row .body { flex: 1; min-width: 0; }
.doc-row h3 { font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-row p { font-size: 12.5px; color: #828b84; margin-top: 3px; line-height: 1.7; }
.doc-row footer { margin-top: 6px; display: flex; gap: 12px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-height: 180px; }
.tool-card:hover { border-color: #d0bcc8; box-shadow: 0 8px 22px #2e49230a; }
.tool-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tool-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.tool-card h3 { font-size: 15px; font-weight: 600; }
.tool-card p { font-size: 12.5px; color: #897f85; margin-top: 4px; flex: 1; line-height: 1.7; }
.tool-card footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.tool-card footer span:last-child { color: var(--accent); }
.automation-page { max-width: 1360px; margin: 0 auto; }
.automation-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 20px; align-items: start; }
.automation-form-panel, .automation-result-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.automation-form-section + .automation-form-section { border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 24px; }
.section-heading, .automation-result-head, .automation-upload-head, .automation-task-title, .automation-progress-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading h2, .automation-result-head h2, .automation-task-title h2 { margin: 2px 0 0; font-size: 20px; }
.automation-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.automation-fields .field > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.automation-upload-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.automation-upload-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: #fdfbfc; }
.automation-upload-head h3 { font-size: 14px; margin: 0; }
.automation-upload-head p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.automation-upload-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.required-mark { color: #ae3b52; font-size: 10px; font-weight: 500; }
.automation-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.automation-upload-actions, .automation-submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.automation-template-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 15px; font-size: 12px; color: var(--muted); }
.automation-file-list { display: grid; gap: 6px; margin-top: 10px; }
.automation-file-row { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; }
.automation-file-row > span { color: #2c8a62; flex: 0 0 auto; }.automation-file-row.error > span { color: #bd3a4b; }
.automation-file-row div { min-width: 0; flex: 1; }.automation-file-row strong, .automation-file-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.automation-file-row small { color: var(--faint); margin-top: 2px; }
.automation-mode-switch { display: flex; gap: 0; margin-top: 16px; }.mode-button { border: 1px solid var(--line); background: #fff; padding: 9px 16px; cursor: pointer; }.mode-button:first-child { border-radius: 7px 0 0 7px; }.mode-button:last-child { border-radius: 0 7px 7px 0; margin-left: -1px; }.mode-button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.automation-health { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }
.automation-result-panel { position: sticky; top: 18px; }.automation-result-head { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }.automation-empty-result { padding: 64px 20px; text-align: center; color: var(--muted); }.automation-empty-result .symbol { display: block; margin-bottom: 12px; font-size: 32px; color: var(--accent); }.automation-empty-result h3 { color: var(--ink); font-size: 16px; }
.automation-task-result { padding-top: 18px; }.automation-status { border-radius: 20px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }.automation-status.processing { color: #956b18; background: #fff6df; }.automation-status.success { color: #247552; background: #e8f7ef; }.automation-status.failed { color: #a43b4c; background: #fff0f2; }
.automation-progress-row { align-items: baseline; margin-top: 22px; }.automation-progress-row strong { font-size: 24px; color: var(--accent); }.automation-progress-row span { color: var(--muted); font-size: 12px; text-align: right; }.automation-progress { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 20px; background: #eee7eb; }.automation-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.automation-task-meta { display: grid; gap: 10px; margin: 22px 0; }.automation-task-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }.automation-task-meta dt { color: var(--faint); }.automation-task-meta dd { margin: 0; text-align: right; }.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; word-break: break-all; }
.automation-submitted-files { border-top: 1px solid var(--line-soft); padding-top: 12px; font-size: 12px; }.automation-submitted-files summary { cursor: pointer; color: var(--accent); }.automation-submitted-files ul { display: grid; gap: 6px; padding-left: 16px; max-height: 260px; overflow: auto; }.automation-submitted-files li { display: flex; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }.automation-submitted-files small { color: var(--faint); }.automation-success-box, .automation-error-box { display: flex; gap: 10px; margin: 16px 0; padding: 12px; border-radius: 8px; font-size: 12px; }.automation-success-box { color: #247552; background: #edf9f2; }.automation-error-box { display: block; color: #a43b4c; background: #fff1f3; }.automation-success-box p, .automation-error-box p { margin-top: 4px; line-height: 1.6; word-break: break-word; }
@media (max-width: 980px) { .automation-layout { grid-template-columns: 1fr; }.automation-result-panel { position: static; }.automation-upload-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .automation-fields { grid-template-columns: 1fr; }.automation-form-panel, .automation-result-panel { padding: 15px; }.automation-progress-row { align-items: flex-start; flex-direction: column; gap: 4px; }.automation-progress-row span { text-align: left; } }

/* ---------- 阅读页 ---------- */
.reader { max-width: 860px; }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.back { border: 0; background: none; color: #7c6673; font-size: 12.5px; padding: 0; }
.reader .path { font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.reader h1 { font-size: 28px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 10px; }
.reader .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.reader .summary { font-size: 14.5px; color: #5b4f56; line-height: 1.85; padding: 14px 18px; background: #f8f3f6; border-radius: 9px; margin-bottom: 20px; }
.quick { border: 1px solid #e9dbe3; border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; background: #fff; }
.quick h2 { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 8px; }
.quick ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; }
.rich { font-size: 14.5px; line-height: 1.9; color: #40343b; overflow-wrap: anywhere; }
.rich h2 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.rich h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.rich h4 { font-size: 14.5px; font-weight: 600; margin: 18px 0 6px; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; }
.rich img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); margin: 6px 0; display: block; }
.rich a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid #ddcad5; color: #6a5c64; background: #f9f5f7; }
.rich table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 13px; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid #e6dbe1; padding: 7px 10px; text-align: left; vertical-align: top; min-width: 60px; }
.rich th { background: #f8f2f6; font-weight: 600; }
.rich pre { background: #f6f2f4; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 12.5px; }
.reader-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--faint); }
.helpful { margin-top: 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.related { margin-top: 22px; }
.related h2 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.related a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: #5d4f57; }
.related a:hover { color: var(--accent); }
.banner { padding: 10px 14px; border-radius: 8px; font-size: 12.5px; margin-bottom: 16px; background: var(--warn-soft); color: #86692e; border: 1px solid #efe1bd; }
.tool-section { margin-top: 26px; }
.tool-section .eyebrow { display: block; margin-bottom: 4px; }
.tool-section > h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }

/* ---------- 应急处理 ---------- */
.emergency-hero { padding: 22px; border-radius: 14px; background: #3a302e; color: #fff; margin-bottom: 20px; }
.emergency-hero h1 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.emergency-hero p { color: #b8aaa5; font-size: 12.5px; }
.emergency-input { margin-top: 16px; padding: 6px; display: flex; gap: 6px; border-radius: 11px; background: #fff; }
.emergency-input input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; font-size: 15px; color: var(--ink); }
.emergency-input .button { background: #8d4a43; border-color: #8d4a43; min-height: 42px; }
.hot { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #a3938d; }
.hot button { padding: 4px 10px; border: 1px solid #5d504d; border-radius: 20px; background: transparent; color: #d8cbc6; font-size: 12px; }
.pb-list { display: grid; gap: 12px; }
.pb-card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; border-left: 4px solid #d9c7c3; }
.pb-card.u-紧急 { border-left-color: #b25c51; }
.pb-card.u-高频 { border-left-color: #c79a4a; }
.pb-card:hover { box-shadow: 0 8px 22px #3a302e0d; }
.pb-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.pb-card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.pb-card p { font-size: 12.5px; color: #7c7572; margin-bottom: 8px; }
.pb-card ol { margin: 0; padding-left: 18px; font-size: 12.5px; color: #5e5754; display: grid; gap: 2px; }
.pb-sheet { display: grid; gap: 14px; }
.pb-block { border-radius: 12px; padding: 18px 20px; border: 1px solid var(--line); background: #fff; }
.pb-block h2 { font-size: 13px; letter-spacing: .04em; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pb-block.symptom { background: #f7f4f2; }
.pb-block.do { border-color: #cfe0cc; background: #f6faf4; }
.pb-block.do h2 { color: var(--accent-ink); }
.pb-block.do ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.pb-block.do li { counter-increment: s; display: flex; gap: 12px; font-size: 15px; line-height: 1.6; }
.pb-block.do li::before { content: counter(s); width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.pb-block.dont { border-color: #ecd0cb; background: #fcf6f5; }
.pb-block.dont h2 { color: #8d3f37; }
.pb-block.dont ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #6d3a34; }
.pb-block.escalate { border-color: #efe1bd; background: #fffaf0; }
.pb-block.escalate h2 { color: #86692e; }
.pb-block.escalate p { font-size: 14.5px; }

/* ---------- 登记表格 ---------- */
.reg-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.reg-toolbar .search-box { width: 220px; }
.reg-toolbar select.input { width: auto; min-height: 34px; font-size: 12.5px; }
.reg-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: auto; max-height: calc(100vh - 260px); }
table.reg { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.reg td { min-width: 72px; }
table.reg th { position: sticky; top: 0; z-index: 2; text-align: left; padding: 10px 12px; font-weight: 500; color: #8d7985; background: #faf4f8; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.reg th.sortable { cursor: pointer; user-select: none; }
table.reg th .lock { color: #b48c5a; margin-left: 4px; font-size: 11px; }
table.reg td { border-bottom: 1px solid var(--line-soft); padding: 0; vertical-align: top; max-width: 320px; }
table.reg tr:hover td { background: #fcfafb; }
table.reg td .cell { display: block; padding: 9px 12px; min-height: 38px; white-space: pre-wrap; overflow-wrap: anywhere; }
table.reg td.editable .cell { cursor: text; }
table.reg td.editable .cell:hover { background: #f6f0f4; }
table.reg td .cell.empty-cell { color: #d0c4cb; }
table.reg td.editing { padding: 3px; background: #fff !important; }
table.reg td.editing .input { min-height: 32px; font-size: 12.5px; padding: 5px 8px; }
table.reg td.editing textarea.input { min-height: 90px; }
table.reg td.saving .cell { opacity: .5; }
table.reg td.flash .cell { background: #f5e9f0; transition: background .6s; }
table.reg td.row-actions { width: 1%; white-space: nowrap; padding: 4px 6px; text-align: right; }
table.reg .file-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.reg-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--faint); }
.status-pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; background: #f2eef0; color: #756870; }
.status-pill.s-ok { background: var(--ok-soft); color: var(--ok); }
.status-pill.s-warn { background: var(--warn-soft); color: var(--warn); }
.status-pill.s-bad { background: var(--danger-soft); color: var(--danger); }
.status-pill.s-off { background: #f0f0f0; color: #999; }
.conflict-list { margin: 8px 0 0; padding-left: 18px; }

/* 预约周视图 */
.week-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.week-head strong { font-size: 14px; font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.day-col { border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 200px; display: flex; flex-direction: column; }
.day-col.today { border-color: #ceb4c3; box-shadow: inset 0 3px 0 var(--accent); }
.day-col header { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.day-col header b { color: var(--ink); font-weight: 600; }
.day-col .slots { padding: 6px; display: grid; gap: 6px; align-content: start; }
.slot { padding: 7px 8px; border-radius: 7px; background: #f7f1f5; border: 1px solid #ecdee6; font-size: 12px; line-height: 1.45; cursor: pointer; text-align: left; width: 100%; }
.slot.styling { background: #f6f1f8; border-color: #e8dcec; }
.slot.conflict { border-color: #e2a59b; background: #fbefed; }
.slot.cancelled { opacity: .45; text-decoration: line-through; }
.slot b { display: block; font-weight: 600; }
.slot small { color: var(--muted); display: block; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* 统计 */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 14px 16px; }
.stat strong { display: block; font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-row .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #665961; }
.bar-track { height: 10px; border-radius: 4px; background: #f3eef1; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.month-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.month-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 24px; }
.month-chart .col i { width: 100%; max-width: 36px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.month-chart .col b { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.month-chart .col small { font-size: 10.5px; color: var(--faint); white-space: nowrap; }

/* ---------- 新手村 ---------- */
.path-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.path-col { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; }
.path-col h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.path-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.path-item.done span { color: var(--faint); text-decoration: line-through; }
.path-item a { color: var(--accent); font-size: 12px; margin-left: auto; white-space: nowrap; }
.progress { height: 8px; border-radius: 4px; background: #f2ecf0; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.checklist { display: grid; gap: 2px; }
.checklist .check { padding: 10px 12px; border-radius: 8px; }
.checklist .check:hover { background: #f8f3f6; }
.checklist .check.done { color: var(--muted); }

/* ---------- 管理后台 ---------- */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 22px; padding: 4px; background: #f4eff2; border-radius: 9px; width: max-content; max-width: 100%; }
.admin-nav a { padding: 6px 12px; border-radius: 6px; font-size: 12.5px; color: #73666e; white-space: nowrap; }
.admin-nav a.active { background: #fff; color: var(--accent-ink); box-shadow: 0 1px 2px #0000000d; font-weight: 500; }
.admin-nav .count { margin-left: 4px; font-size: 11px; color: var(--danger); }
.todo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.todo-list { display: grid; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.todo-item:first-child { border-top: 0; }
.todo-item .grow { flex: 1; min-width: 0; }
.todo-item .grow small { display: block; color: var(--faint); font-size: 11.5px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: left; padding: 9px 10px; font-weight: 500; color: #8d7985; background: #faf4f8; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table tr:hover td { background: #fcfafb; }
.table-scroll { overflow-x: auto; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.editor-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.title-input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0 10px; font-size: 24px; font-weight: 600; background: transparent; outline: none; }
.title-input:focus { outline: none; border-color: var(--accent); }
.rte { border: 1px solid #e5dbe1; border-radius: 9px; background: #fff; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); position: sticky; top: 64px; background: #fff; z-index: 3; border-radius: 9px 9px 0 0; }
.rte-bar button { min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 6px; background: none; font-size: 12.5px; color: #5d4f57; }
.rte-bar button:hover { background: #f4ebf0; }
.rte-bar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rte-area { min-height: 320px; padding: 16px 18px; outline: none; }
.rte-area:empty::before { content: attr(data-placeholder); color: #c1b5bc; }
.rte-area.small { min-height: 140px; }
.list-editor { display: grid; gap: 6px; }
.list-editor .item { display: flex; gap: 6px; align-items: center; }
.list-editor .item .input { flex: 1; }
.diff-note { font-size: 12px; color: var(--muted); }
.users-table td .input, .users-table td select { min-height: 30px; font-size: 12.5px; padding: 4px 8px; }

/* ---------- 弹窗与提示 ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: #1e26244d; display: grid; place-items: center; padding: 16px; animation: fade .12s ease-out; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 13px; box-shadow: 0 24px 60px #1e262433; }
.modal.wide { width: min(860px, 100%); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal header h2 { font-size: 15px; font-weight: 600; }
.modal .modal-body { padding: 18px 20px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); position: sticky; bottom: 0; background: #fff; }
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 10px 14px; border-radius: 9px; background: #3a2e35; color: #fff; font-size: 13px; box-shadow: 0 10px 30px #0003; animation: rise .18s ease-out; }
.toast.error { background: #8d3f37; }
.toast.warn { background: #86692e; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.loading { padding: 60px; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- 登录 ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--side); }
.auth-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; box-shadow: 0 20px 50px #2e49230d; }
.auth-card .brand { padding: 0; margin-bottom: 24px; }
.auth-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .button { width: 100%; min-height: 42px; }

/* ---------- v3：首页 ---------- */
.search-page { max-width: 940px; }
.central-search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e1d0da; border-radius: 12px; box-shadow: 0 14px 34px #2e49231a; }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #5a4d55; }
.suggest li svg { flex-shrink: 0; color: #a08093; }
.suggest li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest li small { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.suggest li.active, .suggest li:hover { background: var(--accent-soft); color: var(--accent-ink); }
.results-head .button { margin-left: auto; }
.must-read { margin-top: 32px; border: 1px solid #ecd0cb; background: #fdf6f4; border-radius: var(--radius); padding: 14px 18px; }
.must-read header { display: flex; align-items: center; gap: 8px; color: #86423b; font-size: 13.5px; margin-bottom: 6px; }
.must-read ul { list-style: none; margin: 0; padding: 0; }
.must-read li a { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid #f3dfdb; font-size: 13px; }
.must-read li small { color: #a7807b; font-size: 11.5px; }
.must-read li .go { margin-left: auto; color: #8d4a43; font-size: 12px; white-space: nowrap; }
.home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.home-cards .todo-card { grid-column: 1 / -1; min-height: 0; }
.home-cards .todo-card.collapsed { flex-direction: row; align-items: center; gap: 14px; padding: 12px 18px; }
.home-cards .todo-card.collapsed h2 { margin: 0; }
.home-cards .todo-card.collapsed .none { margin: 0; display: flex; align-items: center; gap: 6px; }
.home-card h2 .count { margin-left: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.home-card h2 .more-link { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--accent); }
.home-card h2 .hint { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--faint); }
.home-card .none { display: flex; align-items: center; gap: 6px; }
.home-card ul.todo-list { gap: 0; }
.home-card li.todo { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.home-card li.todo a { flex: 1; min-width: 0; border: 0; justify-content: flex-start; align-items: flex-start; padding: 9px 0; }
.home-card li.todo .lv { flex-shrink: 0; margin-top: 2px; padding: 1px 7px; border-radius: 4px; font-size: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.home-card li.todo.warn .lv { background: var(--warn-soft); color: var(--warn); }
.home-card li.todo.danger .lv { background: var(--danger-soft); color: var(--danger); }
.home-card li.todo .t { display: grid; gap: 1px; min-width: 0; }
.home-card li.todo .t b { font-weight: 500; font-size: 13px; }
.home-card li.todo .t small { white-space: normal; }
.home-card .rule-list li a, .home-card .update-list li a { display: grid; gap: 2px; justify-content: stretch; padding: 8px 0; }
.home-card .rule-list .t, .home-card .update-list .t { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.home-card .rule-list small, .home-card .update-list small { white-space: normal; }
.dot-new { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c0574b; flex-shrink: 0; margin-right: 2px; }

/* ---------- v3：知识库 / 工具库 ---------- */
.catalog-search { width: 100%; min-height: 46px; padding: 0 16px; border-radius: 10px; margin-bottom: 14px; }
.catalog-search input { font-size: 14.5px; }
.filter-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 22px; }
.filter-rows .picker-label { min-width: 56px; display: inline-flex; align-items: center; gap: 4px; }
.cat-row.level-1 { padding-left: 16px; } .cat-row.level-2 { padding-left: 32px; } .cat-row.level-3 { padding-left: 48px; } .cat-row.level-4 { padding-left: 64px; }
.cat-row:not(.level-0) { padding-top: 8px; border-top: 1px dashed var(--line); }
.chip small { margin-left: 5px; font-size: 10.5px; color: var(--faint); }
.chip.on small { color: #8e6f81; }
.chip .has-sub { font-style: normal; margin-left: 3px; color: var(--faint); }
.list-head { align-items: center; gap: 10px; }
.list-head .spacer { flex: 1; }
select.input.small, .input.small { min-height: 30px; padding: 3px 8px; font-size: 12px; width: auto; }
.order-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.order-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.order-list li:last-child { border-bottom: 0; }
.order-list .no { width: 24px; color: var(--faint); font-size: 12px; }
.order-list .t { flex: 1; }
.ack-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 14px 0; border: 1px solid #ecd0cb; border-radius: 10px; background: #fdf6f4; color: #86423b; font-size: 13px; }
.ack-box > span { display: flex; align-items: center; gap: 6px; }
.ack-box.done { border-color: #d5e6d5; background: var(--ok-soft); color: var(--ok); }
.ack-box details { width: 100%; font-size: 12px; color: var(--muted); }
.ack-box details p { margin-top: 4px; }
.ack-bottom { margin: 22px 0; display: flex; justify-content: center; }
.related a.current { font-weight: 600; color: var(--accent); }
.rich video { max-width: 100%; border-radius: 8px; background: #000; display: block; margin: 6px 0; }
.rich img { cursor: zoom-in; }
.rte .rich img { cursor: default; }
.rich mark { padding: 0 2px; }
.img-missing { display: inline-block; padding: 4px 8px; border: 1px dashed #d8b46a; border-radius: 6px; color: #86692e; background: var(--warn-soft); font-size: 12.5px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: #111d; display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: fade .15s; overflow: auto; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 40px); object-fit: contain; background: #fff; border-radius: 4px; }

/* ---------- v3：分类管理 ---------- */
.cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-line { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px calc(8px + var(--depth) * 26px); border-radius: 8px; flex-wrap: wrap; }
.cat-line:hover { background: #f8f4f6; }
.cat-line .name { font-weight: 500; }
.cat-line small { color: var(--faint); font-size: 11.5px; }
.cat-line .spacer { flex: 1; }
.cat-line .toggle.leaf { opacity: .4; }

/* ---------- v3：登记表格 ---------- */
table.reg td.sticky-col, table.reg th.sticky-col { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 0; width: 34px; padding: 4px; }
table.reg th.sticky-col { z-index: 3; background: #faf4f8; }
table.reg tr.has-warn td { background: #fffaf0; }
.icon-button.tiny { width: 22px; height: 22px; border-radius: 5px; }
.cell.secret { display: flex !important; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.cell.secret.shown { color: var(--accent-ink); font-weight: 500; }
.lock-icon { color: #b48c5a; display: inline-grid; }
.warn-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e7b14d; color: #fff; font-size: 11px; font-weight: 700; }
.stat-chips { margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; margin: 0; }
.detail-grid dt { font-size: 11.5px; color: var(--faint); }
.detail-grid dd { margin: 2px 0 0; font-size: 13px; }
.detail-grid dd .cell { padding: 0; min-height: 0; }
.detail-h { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.rel-list { display: grid; gap: 8px; }
.rel-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rel-group > small { width: 100%; color: var(--faint); font-size: 11.5px; }
.rel { display: inline-flex; flex-direction: column; gap: 1px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fcfafb; font-size: 12.5px; }
.rel:hover { border-color: #d0bcc8; }
.rel small { color: var(--faint); font-size: 11px; }
.danger-text { color: var(--danger); }
.ok-text { color: var(--ok); }
.small-text { font-size: 12px; }
.view-switch { display: flex; gap: 6px; margin: -6px 0 14px; }
.view-switch .chip { display: inline-flex; align-items: center; gap: 5px; }
.legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: #f7f1f5; border: 1px solid #ecdee6; }
.legend .lg.styling { background: #f6f1f8; border-color: #e8dcec; }
.legend .lg.conflict { background: #fbefed; border-color: #e2a59b; }
.legend .lg.cancelled { opacity: .4; }
.approval-link { display: block; }

/* ---------- v3：成员 ---------- */
.post-chips { gap: 4px; }
.post-chips .chip { padding: 2px 8px; font-size: 11.5px; }
.secret-cells { display: grid; gap: 4px; }
.secret-cells label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.secret-cells select { width: auto; min-height: 28px; padding: 2px 6px; font-size: 12px; }
.secret-cells select.granted { border-color: #e2c48a; background: var(--warn-soft); }
.chip-check { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid #e7dbe2; border-radius: 6px; font-size: 12px; font-weight: 400; cursor: pointer; }
.chip-check input { accent-color: var(--accent); margin: 0; }
.chip-check:has(input:checked) { border-color: #ceb4c3; background: var(--accent-soft); color: var(--accent-ink); }
.must-read-check { padding: 10px; border: 1px solid #ecd0cb; border-radius: 8px; background: #fdf6f4; }
.must-read-check span { display: grid; gap: 2px; }
.must-read-check small { color: var(--muted); font-size: 11.5px; }

/* ---------- v3：新手村 ---------- */
.enr + .enr { margin-top: 28px; }
.enr-head { margin-bottom: 14px; }
.enr-head h2 { font-size: 16px; font-weight: 600; }
.enr-head .muted { font-size: 12.5px; margin-top: 2px; }
.enr-head .progress { margin-top: 12px; }
.enr-stats { display: flex; gap: 16px; }
.enr-stats span { display: grid; text-align: center; font-size: 11px; color: var(--muted); }
.enr-stats b { font-size: 18px; font-weight: 600; color: var(--ink); }
.enr-stats .danger-text b { color: var(--danger); } .enr-stats .ok-text b { color: var(--ok); }
.stage-list { display: grid; gap: 12px; }
.stage { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stage.current { border-color: #ceb4c3; box-shadow: inset 3px 0 0 var(--accent); }
.stage.complete { opacity: .8; }
.stage header { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.stage header small { color: var(--faint); font-size: 11.5px; }
.stage header .spacer { flex: 1; }
.stage ul { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.task:last-child { border-bottom: 0; }
.task .ticon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #f5eff3; color: var(--accent); flex-shrink: 0; }
.task.done .ticon { background: var(--ok-soft); color: var(--ok); }
.task.overdue .ticon, .task.failed .ticon { background: var(--danger-soft); color: var(--danger); }
.task .grow { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.task .grow b { font-weight: 500; font-size: 13.5px; }
.task .grow small { color: var(--muted); font-size: 11.5px; }
.task.done .grow b { color: var(--muted); }
.task .tactions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.task .tactions a.button small { color: inherit; }
.mentee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mentee { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.mentee:hover { border-color: #d0bcc8; }
.mentee small { color: var(--muted); font-size: 12px; }
.exam-intro { max-width: 640px; margin: 20px auto; }
.exam-intro h1 { font-size: 20px; margin-bottom: 12px; }
.exam-intro ul { margin: 0 0 18px; padding-left: 20px; line-height: 2; font-size: 13.5px; }
.paper { display: grid; gap: 12px; }
.paper .q { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; margin: 0; }
.paper .q legend, .paper .q .legend { font-size: 14px; font-weight: 500; line-height: 1.7; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.paper .q .no { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; }
.paper .opt { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; clear: both; }
.paper .opt:hover { background: #f8f4f6; }
.paper .opt input { margin-top: 4px; accent-color: var(--accent); }
.paper.review .q.wrong { border-color: #ecd0cb; }
.paper.review .opt { cursor: default; }
.paper.review .opt.is-answer { background: var(--ok-soft); color: var(--ok); }
.paper.review .opt.is-given:not(.is-answer) { background: var(--danger-soft); color: var(--danger); }
.exam-result { text-align: center; max-width: 520px; margin: 10px auto 20px; }
.exam-result .score { font-size: 56px; font-weight: 600; line-height: 1.2; margin: 6px 0; }
.exam-result .score small { font-size: 16px; color: var(--muted); margin-left: 4px; }
.exam-result.pass .score { color: var(--ok); } .exam-result.fail .score { color: var(--danger); }
.exam-result p { margin-bottom: 14px; color: var(--muted); }
.row-danger td { background: #fdf6f4; }
.progress-table td { vertical-align: middle; }
.progress-table .input { min-width: 110px; }
.stage-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stage-preview > div { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fcfafb; }
.stage-preview small { display: block; color: var(--faint); font-size: 11px; }
.stage-preview ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; }
.stage-preview li { display: flex; gap: 6px; align-items: baseline; }
.stage-edit { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fcfafb; }
.stage-edit .row { gap: 8px; }
.task-edit { display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 30px; gap: 6px; margin-top: 8px; align-items: center; }
.q-list { display: grid; gap: 10px; }
.q-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 16px; }
.q-card header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.q-card header .spacer { flex: 1; }
.q-card .stem { font-size: 13.5px; font-weight: 500; margin-bottom: 4px; }
.q-card ol { margin: 0 0 4px; padding-left: 22px; font-size: 12.5px; color: #695d64; }
.q-card li.right { color: var(--ok); font-weight: 500; }
.pick-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 4px; }

/* ---------- v3：编辑器与导入 ---------- */
.rte-pop { position: relative; display: inline-flex; }
.rte-pop .pop { position: absolute; top: 100%; left: 0; z-index: 10; display: flex; gap: 4px; padding: 6px; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px #0001; }
.rte-pop .pop button { width: 22px; height: 22px; padding: 0; border-radius: 5px; border: 1px solid #0001; }
.rte-pop .pop button.reset { width: auto; padding: 0 6px; font-size: 11px; background: #fff; }
.progress-toasts { position: fixed; z-index: 210; left: 20px; bottom: 20px; display: grid; gap: 8px; width: min(340px, calc(100vw - 40px)); }
.progress-toast { padding: 10px 14px; border-radius: 9px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px #0002; font-size: 12.5px; display: grid; gap: 6px; }
.progress-toast .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-toast small { color: var(--faint); font-size: 11px; }
.drop-zone { display: grid; place-items: center; gap: 6px; padding: 28px 16px; border: 1.5px dashed #d9c7d2; border-radius: 12px; background: #fcfafb; color: var(--muted); text-align: center; }
.drop-zone b { color: var(--ink); font-weight: 500; }
.drop-zone small { font-size: 12px; color: var(--faint); }
.drop-zone.over { border-color: var(--accent); background: var(--accent-soft); }
.import-grid { margin-bottom: 16px; }
label.button input[type=file] { display: none; }


/* ---------- 排班 ---------- */
.form-grid.top { align-items: start; }
.time-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.sched-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sched-bar .spacer { flex: 1; }
.sched-bar .wk { font-size: 14px; font-weight: 600; min-width: 150px; text-align: center; }
.sched-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sched-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #c9c2cf; background: #fff; }
table.sched { width: 100%; min-width: 860px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
table.sched th, table.sched td { border: 1px solid #b9b3bf; text-align: center; vertical-align: middle; padding: 0; }
table.sched .slot-h, table.sched th.slot { width: 76px; font-weight: 700; background: #fff; font-size: 15px; }
table.sched .t-title th { background: #fde0ef; font-size: 19px; font-weight: 600; padding: 8px; letter-spacing: .02em; }
table.sched .t-legend th { background: #fde0ef; font-size: 16px; font-weight: 600; padding: 4px 16px 8px; }
table.sched .t-legend th { display: table-cell; }
table.sched .t-legend span { display: inline-block; }
table.sched .t-legend i { display: inline-block; width: calc(100% - 300px); max-width: 520px; border-top: 2px dashed #555; margin: 0 14px; vertical-align: middle; }
table.sched .t-legend .tent, .tent { color: #1b5e3b; }
table.sched .t-dates th { font-size: 15px; font-weight: 700; padding: 8px 2px; background: #fff; }
table.sched .t-week th { font-size: 12.5px; font-weight: 500; padding: 6px 2px; background: #fff; }
table.sched .t-week th small { display: block; color: #d6336c; font-size: 11px; }
table.sched .t-week th.weekend { color: #e03131; }
table.sched th.today { background: #fff06a !important; }
table.sched [data-headnote] { cursor: pointer; }
table.sched td.filled { background: #fbf3dc; }
table.sched td.empty { background: #fff; height: 40px; }
table.sched td.empty.add { cursor: pointer; }
table.sched td.empty.add span { color: transparent; font-size: 18px; }
table.sched td.empty.add:hover { background: #f9f0f5; }
table.sched td.empty.add:hover span { color: var(--accent); }
table.sched td.empty.gap { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #fdeeee 6px, #fdeeee 12px); }
table.sched .cellstack { display: flex; flex-direction: column; height: 100%; min-height: 40px; }
table.sched .shift { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: 40px; padding: 6px 4px; border: 0; background: transparent; font-size: 15px; color: #222; line-height: 1.35; }
table.sched td.filled { height: 1px; }
table.sched .shift + .shift { border-top: 1px dashed #d9c9a3; }
table.sched button.shift:not(:disabled):hover { background: #f5e7c0; }
table.sched .shift:disabled { opacity: 1; cursor: default; }
table.sched .shift.hl { background: #fff06a; }
table.sched .shift.conflict { box-shadow: inset 0 0 0 2px #e03131; }
table.sched .shift .tm { font-weight: 600; font-size: 14px; }
table.sched .shift .nm.tent { color: #1b5e3b; }
table.sched .shift small { font-size: 11px; color: var(--muted); }
table.sched tfoot th { background: #fde0ef; font-weight: 700; padding: 8px 2px; font-size: 14px; }
table.sched tfoot td { background: #fde0ef; height: 40px; font-size: 14px; font-weight: 600; padding: 4px; }
table.sched tfoot td[data-foot] { cursor: pointer; }
table.sched tfoot td[data-foot]:hover { background: #fbcfe6; }
table.sched.control .t-title th, table.sched.control .t-legend th, table.sched.control tfoot th, table.sched.control tfoot td { background: #e3f0ff; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; }
.sched-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.sched-info .panel-head h2 { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
ul.plain li small { display: block; color: var(--faint); font-size: 11px; }
.hours-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hchip { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--muted); }
.hchip b { color: var(--ink); font-weight: 600; }
.pick-people .chip small { margin-left: 4px; font-size: 10.5px; color: var(--faint); }
.pick-people .chip.muted { opacity: .55; }
.hl-sample { background: #fff06a; padding: 0 4px; }
.bar-cell { display: flex; align-items: center; gap: 8px; }
.bar-cell .progress { flex: 1; }
.mine-day.today { border-color: #ceb4c3; box-shadow: inset 3px 0 0 var(--accent); }

.sched-room + .sched-room { margin-top: 34px; padding-top: 24px; border-top: 1px dashed var(--line); }
.room-foot { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.add-chip { border-style: dashed; display: inline-flex; align-items: center; gap: 4px; }
table.sched .slot-h.clickable { cursor: pointer; }
table.sched .slot-h.clickable:hover { background: #f9f0f5; }
table.sched .slot-h small { display: block; font-size: 10.5px; font-weight: 500; color: #d9480f; }
table.roster { min-width: 900px; }
table.roster .r-dates th { background: #8d9198; color: #1f2328; font-size: 15px; font-weight: 600; padding: 8px 2px; }
table.roster .r-dates th.today { background: #fff06a !important; }
table.roster .t-week th { background: #e3e4e8; }
table.roster .room-cell { width: 120px; background: #fde0ef !important; font-size: 26px; font-weight: 800; color: #2b2f33; }
table.roster .room-cell .link-btn { display: block; margin: 4px auto 0; font-size: 11.5px; font-weight: 500; color: var(--accent); }
table.roster .hours-h { width: 58px; background: #f1f3f5 !important; color: #555; font-size: 12px; }
table.roster th.who { font-size: 15px; font-weight: 700; padding: 10px 4px; }
table.roster td { height: 46px; font-size: 15px; }
table.roster td.hours-c { background: #f8f9fa; font-size: 13px; color: var(--muted); }
table.roster td.empty.add { cursor: pointer; }
table.roster td.rest { cursor: default; }
table.roster td.rest.clickable { cursor: pointer; }
table.roster .rest-label { font-size: 12px; color: #1f5f1d; font-weight: 600; }
table.roster td.rest small, table.roster .rshift small { display: block; font-size: 10.5px; color: var(--muted); }
table.roster .rshift { display: block; width: 100%; border: 0; background: transparent; padding: 6px 4px; font-size: 15px; color: #222; line-height: 1.3; }
table.roster button.rshift:not(:disabled):hover { background: #0000000d; }
table.roster .rshift:disabled { opacity: 1; cursor: default; }
table.roster .rshift.tent { color: #1b5e3b; }
table.roster .rshift.hl { background: #fff06a; }
table.roster .rshift.conflict { box-shadow: inset 0 0 0 2px #e03131; }
table.roster .rshift + .rshift { border-top: 1px dashed #c9bfe4; }
table.roster .add-more { display: block; width: 100%; border: 0; background: transparent; color: transparent; font-size: 14px; line-height: 1; padding: 2px; }
table.roster td:hover .add-more { color: var(--accent); }
table.roster tfoot th, table.roster tfoot td { background: #fde0ef; }
.sched-legend { margin-top: 10px; flex-wrap: wrap; }
.sched-legend i { border: 1px solid #0001; }
.color-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.color-row input[type=color] { width: 44px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: #fff; }
.divider-label { font-size: 11.5px; color: var(--faint); margin: 10px 0 4px; }
@media (max-width: 1100px) { .sched-info { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .sched-bar .wk { min-width: 0; } table.sched .t-legend i { width: 60px; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .split, .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .home-cards { grid-template-columns: 1fr 1fr; }
  .home-cards .emergency { grid-column: 1 / -1; }
  .path-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --pad-x: 16px; --pad-y: 20px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px #0002; }
  .shell.side-right .sidebar { transform: translateX(100%); }
  .shell.menu-open .sidebar { transform: none; }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: #0003; border: 0; }
  .main, .shell.side-right .main { margin: 0; }
  .topbar .menu-button { display: inline-grid; }
  .topbar { height: 56px; }
  .top-link.hide-mobile { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .rail { position: static; display: flex; gap: 4px; overflow-x: auto; padding: 6px; }
  .rail h2, .rail p { display: none; }
  .rail button { width: auto; white-space: nowrap; gap: 6px; }
  .catalog-controls .search-box { width: 100%; }
  .grid-2, .grid-3, .form-grid, .todo-grid, .home-cards { grid-template-columns: 1fr; }
  .home-card li.todo { flex-wrap: wrap; padding-bottom: 8px; }
  .task-edit { grid-template-columns: 1fr 1fr; }
  .enr-stats { gap: 10px; }
  .cat-row.level-1, .cat-row.level-2, .cat-row.level-3, .cat-row.level-4 { padding-left: 0; }
  .filter-rows .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .filter-rows .chip { white-space: nowrap; }
  .cat-line { padding-left: calc(4px + var(--depth) * 14px); }
  .search-page { margin-top: 20px; }
  .search-intro h1 { font-size: 26px; }
  .central-search { padding-left: 14px; }
  .central-search .button span { display: none; }
  .page-head h1 { font-size: 22px; }
  .reader h1 { font-size: 23px; }
  .week { grid-template-columns: repeat(7, 150px); }
  .reg-wrap { max-height: none; }
  .bar-row { grid-template-columns: 74px minmax(0, 1fr) 30px; }
  .admin-nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
}

/* ---------- 在线预览版 ---------- */
.demo-accounts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.demo-accounts p { width: 100%; font-size: 12px; color: var(--muted); }
.auth-card .demo-accounts .button { width: auto; min-height: 30px; }
.demo-bar { position: fixed; z-index: 90; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; background: #3a2e35; color: #ece6ea; font-size: 12px; box-shadow: 0 10px 30px #0003; white-space: nowrap; max-width: calc(100vw - 24px); overflow-x: auto; }
.demo-bar button { border: 0; border-radius: 999px; padding: 4px 10px; background: #56464f; color: #fff; font-size: 12px; }
.demo-bar button:hover { background: #685660; }
@media (max-width: 860px) { .demo-bar { bottom: 8px; font-size: 11px; } .demo-bar .demo-note { display: none; } }

/* ---------- 排班：第二轮（周 / 月视图、通知、复制、导入导出） ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 5px 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.month-pick { width: 150px; }
table.sched .t-title th small { font-size: 13px; font-weight: 500; color: #6b5a66; margin-left: 6px; }
table.sched .notifier-list { display: block; margin-top: 2px; font-size: 12.5px !important; }
table.sched .notifier-list span { margin: 0 8px; white-space: nowrap; }
.month-stack { display: flex; flex-direction: column; gap: 18px; }
table.roster.month { font-size: 12.5px; }
table.roster.month td { height: 40px; font-size: 12.5px; }
table.roster.month .rshift { font-size: 12.5px; padding: 4px 1px; }
table.roster.month .r-dates th { font-size: 12.5px; padding: 6px 1px; }
table.roster.month .t-week th { font-size: 11px; }
table.roster .wk-start { border-left: 2px solid #6b7078 !important; }
table.roster th.who, table.roster .room-cell { position: sticky; left: 0; z-index: 2; }
table.roster td.night-c { font-weight: 700; color: #3b4fa0; }
.undo-btn { border-color: #f0b35e; color: #9a5a00; }
.clip-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 12px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--accent-soft); font-size: 13px; color: var(--accent-ink); position: sticky; top: 8px; z-index: 5; }
.clip-bar span { flex: 1; }
.notify-list li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.notify-list li:last-child { border-bottom: 0; }
.notify-list .who-line { display: flex; align-items: center; gap: 8px; }
.notify-list .who-line .spacer { flex: 1; }
.notify-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.done-changes { margin-top: 8px; font-size: 12px; }
.done-changes summary { cursor: pointer; color: var(--muted); }
.night-check b { color: #3b4fa0; }
.type-chips, .import-preview { display: flex; flex-wrap: wrap; gap: 4px; }
.tchip { display: inline-flex; gap: 3px; align-items: baseline; padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; background: #fff; white-space: nowrap; }
.tchip b { color: var(--accent-ink); }
.tchip.night { background: #dfe6fb; border-color: #c3cdf2; }
.tchip.tent { color: #1b5e3b; }
.tchip.hl { background: #fff06a; }
.night-days { color: #3b4fa0; }
.stats-table th small { display: block; font-weight: 400; font-size: 10.5px; color: var(--faint); }
.import-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; max-height: 46vh; overflow: auto; }
.import-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.import-item .row { flex-wrap: wrap; align-items: center; }
.import-item .spacer { flex: 1; }
.import-item.bad { background: #fff6f5; border-color: #f3c9c4; }
.warn-text { color: #b35c00; cursor: pointer; }
.copy-days .chip:disabled { opacity: .75; cursor: default; }
table.sched.month .t-title th, table.sched.month .t-legend th { text-align: left; padding-left: 140px; }
table.sched.month .t-legend i { max-width: 360px; }

/* ---------- 排班：第三轮（像 Excel 一样操作表格） ---------- */
.time-pair.hm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr); }
table.grid tbody td, table.grid tfoot td { position: relative; user-select: none; -webkit-user-select: none; cursor: cell; }
table.grid.can tbody td.empty:hover { background-image: linear-gradient(#6e2f3e10, #6e2f3e10); }
table.grid.can .shift:hover, table.grid.can .rshift:hover { background: #0000000a; }
table.grid td.sel::after { content: ''; position: absolute; inset: 0; background: rgba(36, 99, 235, .10); box-shadow: inset 0 0 0 1px #2463eb; pointer-events: none; z-index: 1; }
table.grid td.sel-focus::after { box-shadow: inset 0 0 0 2px #2463eb; }
table.grid td.brushing::after { content: ''; position: absolute; inset: 0; background: rgba(110, 47, 62, .16); box-shadow: inset 0 0 0 2px var(--accent); pointer-events: none; }
table.sched.anchor.month td, table.sched.anchor.month .shift { font-size: 13px; }
table.sched.anchor.month .t-dates th { font-size: 13px; }
table.sched.anchor.month .wk-start { border-left: 2px solid #6b7078 !important; }
table.sched.anchor.month th.slot, table.sched.anchor.month .slot-h, table.sched.anchor.month tfoot th { position: sticky; left: 0; z-index: 2; }
table.sched.anchor.month tfoot th { background: #fde0ef; }
.sel-bar { position: sticky; bottom: 14px; z-index: 8; display: flex; gap: 8px; align-items: center; width: fit-content; margin: 12px auto 0; padding: 7px 8px 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px #0002; font-size: 13px; }
.sel-bar[hidden] { display: none; }
.brush-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.brush-bar.on { border-color: var(--accent); background: var(--accent-soft); position: sticky; top: 8px; z-index: 6; }
.brush-bar .lbl { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; font-size: 13px; }
.brush-bar .chip-row { gap: 5px; }
.brush-bar .hint { flex-basis: 100%; color: var(--muted); }
.undo-group { display: inline-flex; gap: 4px; }
.notify-links { display: flex; gap: 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.hist-list li { padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.hist-list .check { align-items: flex-start; font-size: 12.5px; }
.hist-list small { display: block; color: var(--muted); font-size: 11px; }
.outbox-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.outbox-list small { display: block; white-space: pre-wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.outbox-list .who-line { display: flex; gap: 8px; align-items: center; }
.outbox-list .spacer { flex: 1; }
.feishu-form .test-row { gap: 8px; }
.feishu-form .test-row .input { flex: 1; }

/* ---------- 登记表格：图片 ---------- */
.cell.thumbs { display: inline-flex; gap: 4px; align-items: center; }
.cell.thumbs img { width: 36px; height: 36px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); cursor: zoom-in; background: #f5f2f4; }
.cell.thumbs .more { font-size: 11.5px; color: var(--muted); }
.detail-grid .cell.thumbs { flex-wrap: wrap; }
.detail-grid .cell.thumbs img { width: 88px; height: 88px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.img-grid figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f5f2f4; aspect-ratio: 1; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.img-grid .img-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.img-grid .img-tools .icon-button { background: #fffe; box-shadow: 0 1px 4px #0003; }
.img-grid figcaption { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: #0009; color: #fff; padding: 1px 6px; border-radius: 4px; }
.img-drop { display: flex; gap: 10px; align-items: center; padding: 16px; border: 1.5px dashed var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--muted); background: #fff; }
.img-drop:hover, .img-drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.img-drop[data-progress]::after { content: attr(data-progress); margin-left: auto; color: var(--accent-ink); font-weight: 600; }
.img-input .img-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.img-input .img-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 8px; background: #fff3; color: #fff; font-size: 34px; cursor: pointer; }
.lightbox .lb-nav:hover { background: #fff5; }
.lightbox .lb-nav.prev { left: 16px; } .lightbox .lb-nav.next { right: 16px; }
.lightbox .lb-count { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: #0008; padding: 2px 10px; border-radius: 10px; }

/* ---------- 排班：右键菜单、主播名单 ---------- */
.ctx-menu { position: fixed; z-index: 400; min-width: 168px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 30px #0002; display: flex; flex-direction: column; }
.ctx-menu button { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 0; background: transparent; text-align: left; padding: 7px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--ink); }
.ctx-menu button:hover:not(:disabled) { background: var(--accent-soft); }
.ctx-menu button:disabled { color: var(--faint); cursor: default; }
.ctx-menu kbd { font: inherit; font-size: 11px; color: var(--faint); }
.ctx-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 2px; }
.roster-edit .ro-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.roster-edit .ro-add [data-newname] { flex: 1; min-width: 180px; }
.roster-edit .ro-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.roster-edit .ro-row.off { opacity: .55; }
.roster-edit .ro-name { width: 130px; font-weight: 600; }
.roster-edit .swatches { display: flex; gap: 4px; flex-wrap: wrap; }
.roster-edit .sw { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #0002; cursor: pointer; padding: 0; }
.roster-edit .sw.on { box-shadow: 0 0 0 2px var(--ink); }
.roster-edit .sw.none { background: #fff; color: var(--faint); font-size: 11px; line-height: 1; }
.roster-edit .ro-free { display: flex; flex-wrap: wrap; gap: 8px; }
.roster-edit .ro-chip { display: inline-flex; gap: 8px; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.seg.small button { padding: 3px 10px; font-size: 12px; }
.roster-edit .ro-del { margin-left: auto; color: var(--muted); }
.roster-edit .ro-del:hover { color: #c92a2a; }

/* ---------- 工具库：软件 / 小程序 / 网页 ---------- */
.tool-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tool-card .tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tool-card .tool-shot { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.tool-card .tool-devices { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.tool-form { display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fcfafb; }
.entry-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.entry-row .tag { min-width: 76px; justify-content: center; }
.entry-row [data-elabel] { width: 180px; }
.entry-row .entry-input { flex: 1; min-width: 200px; }
.entry-row .entry-val { display: inline-flex; gap: 8px; align-items: center; flex: 1; min-width: 200px; font-size: 13px; }
.entry-row .qr-thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: zoom-in; }
.add-entry { gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.img-grid.small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-bottom: 6px; }
.tool-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 16px; font-size: 12.5px; }
.tool-open, .tool-shots { margin: 18px 0; }
.tool-open h2, .tool-shots h2 { font-size: 15px; margin-bottom: 10px; }
.entry-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.entry-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.entry-card small { color: var(--muted); font-size: 12px; }
.entry-card .fname { margin-left: 6px; font-weight: 400; opacity: .85; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-card .qr { width: 132px; height: 132px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: zoom-in; }
.entry-card .search-name { font-size: 15px; }
.entry-card p { font-size: 13px; line-height: 1.6; margin: 0; }
.shot-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.shot-row img { height: 220px; max-width: 360px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; flex: none; }
.roster-edit .ro-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.roster-edit .ro-top .spacer { flex: 1; }
.roster-edit .ro-search { width: 200px; }
.roster-edit .ro-bulk { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.roster-edit .ro-bulk textarea { min-height: 110px; }
.roster-edit .ro-bulk .row { align-items: center; gap: 8px; }
.roster-edit .ro-bulk .spacer { flex: 1; }
.roster-edit [data-list] { max-height: 52vh; overflow: auto; }
.brush-bar .brush-sep { font-size: 12px; color: var(--muted); margin-left: 6px; }
/* 按名字排班：一行 */
.brush-bar { flex-wrap: nowrap; gap: 10px; padding: 6px 10px; }
.brush-bar .hint { flex-basis: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brush-bar .spacer { flex: 1; }
.brush-pick { position: relative; }
.brush-pick [data-brushsearch] { width: 200px; }
.brush-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; width: min(560px, 80vw); max-height: 300px; overflow: auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px #0002; display: flex; flex-direction: column; gap: 8px; }
.brush-pop[hidden] { display: none; }
.brush-pop .bp-group small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.brush-pop .bp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.brush-pop .chip.small { padding: 3px 9px; font-size: 12.5px; }
.brush-pop .bp-new { display: flex; gap: 6px; align-items: center; border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; text-align: left; }
.brush-cur { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--accent); font-size: 13px; white-space: nowrap; }
@media (max-width: 900px) { .brush-bar { flex-wrap: wrap; } .brush-bar .hint { white-space: normal; } }
/* 试播验收 */
.trial-review .verdicts { display: flex; gap: 8px; margin-top: 6px; }
.trial-review .verdict { flex: 1; padding: 12px 0; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.trial-review .verdict.ok.on { border-color: #2b8a3e; background: #ebfbee; color: #2b8a3e; }
.trial-review .verdict.bad.on { border-color: #c92a2a; background: #fff5f5; color: #c92a2a; }
.trial-review .verdict.mid.on { border-color: #e67700; background: #fff9db; color: #b35c00; }
.slot.ctrl, .legend .lg.ctrl { background: #e7f1fb; border-color: #c9ddf2; }
.log-bar .search-box { width: 240px; }
.log-table td { font-size: 12.5px; vertical-align: top; }
.log-table .log-detail { color: var(--muted); line-height: 1.6; word-break: break-all; }

/* ---------- 页面文字：在页面上直接改 ---------- */
.copy-block { position: relative; min-width: 0; }
.copy-edit { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--faint); vertical-align: middle; opacity: 0; transition: opacity .15s; }
.copy-block:hover .copy-edit, .copy-note:hover .copy-edit, .copy-edit:focus-visible { opacity: 1; }
.copy-edit:hover { border-color: var(--line); background: #fff; color: var(--accent); }
.emergency-hero .copy-edit:hover { background: #4a3e3b; color: #fff; }
@media (hover: none) { .copy-edit { opacity: .6; } }
.copy-note { position: relative; white-space: pre-line; }
.copy-note .copy-edit { position: absolute; right: 6px; top: 6px; margin: 0; }
.copy-block > p:last-child, .copy-block > p:not(.eyebrow) { white-space: pre-line; }
.copy-editing { flex: 1 1 520px; }
.copy-form { display: grid; gap: 8px; max-width: 720px; padding: 12px; border: 1px dashed #ceb4c3; border-radius: 10px; background: #fcfafb; text-align: left; }
.copy-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.copy-form textarea { min-height: 70px; }
.emergency-hero .copy-form { background: #fff; color: var(--ink); }
.copy-note.copy-editing { background: transparent; border: 0; padding: 0; }

/* ---------- 敏感信息锁 ---------- */
.lock-badge { position: fixed; right: 20px; top: 74px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 20px; background: #492e3e; color: #fff; font-size: 12px; box-shadow: 0 6px 20px #0002; max-width: calc(100vw - 32px); }
.lock-badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-badge button { border: 0; border-radius: 14px; padding: 3px 10px; background: #fff; color: #492e3e; font-size: 12px; font-weight: 600; white-space: nowrap; }
.col-reveal { margin-left: 2px; vertical-align: middle; color: var(--faint); }
.col-reveal:hover { color: var(--accent); }

/* ---------- 登录 / 注册 ---------- */
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.auth-links a { color: var(--accent); }
.auth-card .chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.reg-panel { margin-bottom: 16px; border-color: #efe1bd; background: #fffdf6; }

/* ---------- 查看范围编辑器 ---------- */
.view-editor { display: grid; gap: 4px; }
.ve-mode { margin-bottom: 2px; }
.ve-disabled { opacity: .45; pointer-events: none; }
.ve-quick { position: sticky; top: -18px; z-index: 2; display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid #e8dbe3; border-radius: 10px; background: #f9f4f7; }
.ve-quick > b { font-size: 13px; } .ve-quick > span { margin-top: -6px; }
.ve-quick .row { gap: 6px; flex-wrap: wrap; }
.chip.ve-g.all { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.ve-g.some { background: var(--accent-soft); border-color: #ceb4c3; color: var(--accent-ink); }
.ve-block { margin-top: 12px; }
.ve-block > h3 { font-size: 13px; margin-bottom: 8px; color: var(--accent-ink); }
.ve-sched { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.ve-table { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.ve-table.off { background: #fbf9fa; }
.ve-table > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; }
.ve-table > header .check { font-size: 13px; }
.ve-groups { display: grid; gap: 6px; padding: 0 12px 10px; }
.ve-group { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; }
.ve-gname { border: 0; background: none; padding: 4px 0; text-align: left; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ve-gname.all { color: var(--accent-ink); font-weight: 600; }
.ve-gname:hover { color: var(--accent); }
.ve-fields { display: flex; flex-wrap: wrap; gap: 5px; }
.ve-f { padding: 3px 9px; border: 1px dashed #dcd1d7; border-radius: 6px; background: #fff; color: #aaa2a7; font-size: 12px; text-decoration: line-through; }
.ve-f.on { border-style: solid; border-color: #ceb4c3; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
.ve-f.locked { opacity: .7; cursor: default; }
.ve-hint { padding: 0 12px 10px; }
@media (max-width: 640px) { .ve-group { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 新手村 ---------- */
.onb-tabs .tab-sep { flex: 0 0 1px; margin: 8px 6px; background: var(--line); }
.tab-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.lmap { display: flex; gap: 0; margin: 0 0 16px; padding: 4px 2px 10px; overflow-x: auto; counter-reset: n; }
.lnode { position: relative; flex: 1 0 128px; display: grid; justify-items: center; gap: 2px; padding: 0 6px; border: 0; background: none; text-align: center; color: var(--muted); }
.lnode::before { content: ''; position: absolute; top: 16px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.lnode:first-child::before { display: none; }
.lnode.done::before, .lnode.current::before, .lnode.late::before { background: #ceb4c3; }
.ldot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); }
.lnode.done .ldot { background: var(--ok); border-color: var(--ok); color: #fff; }
.lnode.current .ldot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.lnode.late .ldot { border-color: var(--danger); color: var(--danger); }
.lnode b { margin-top: 6px; font-size: 13px; color: var(--ink); font-weight: 600; }
.lnode small { font-size: 11.5px; line-height: 1.5; }
.lnode em { font-style: normal; font-size: 10.5px; color: #fff; background: var(--accent); border-radius: 8px; padding: 0 7px; }
.lnode:hover b { color: var(--accent); }
.duty-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.duty-layout:not(:has(.duty-readers)) { grid-template-columns: 190px minmax(0, 1fr); }
.duty-nav { display: grid; gap: 6px; }
.duty-nav button { position: relative; display: grid; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; }
.duty-nav button.on { border-color: var(--accent); background: var(--accent-soft); }
.duty-nav button small { color: var(--muted); font-size: 11.5px; }
.duty-nav .dot { position: absolute; right: 10px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.duty-body { font-size: 14px; line-height: 1.9; }
.duty-confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border-radius: 9px; background: var(--warn-soft); color: #86692e; font-size: 13px; }
.duty-confirm.done { background: var(--ok-soft); color: var(--ok); justify-content: flex-start; }
@media (max-width: 1000px) { .duty-layout, .duty-layout:not(:has(.duty-readers)) { grid-template-columns: 1fr; } .duty-nav { grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); overflow-x: auto; } }
.prog-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 18px; }
.prog-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prog-card:hover { border-color: #d0bcc8; }
.prog-card .grow { display: grid; gap: 4px; min-width: 0; }
.prog-card small { color: var(--muted); font-size: 12px; }
.prog-card .row { flex-wrap: wrap; gap: 4px; }
.ring { --p: 0; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line-soft) 0); }
.ring b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; font-size: 13px; }
.q-text { width: 100%; min-height: 110px; margin-top: 4px; clear: both; }
.paper .q.textq { border-color: #e6dcc0; }
.text-answer { clear: both; padding: 10px 12px; border-radius: 8px; background: #f9f6f8; white-space: pre-wrap; font-size: 13.5px; }
.grade-row { clear: both; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.grade-row label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.grade-row input[type=number] { width: 76px; }
.grade-row [data-note] { flex: 1 1 220px; }
.grade-row.view { color: var(--muted); }
.grade-row.view b { color: var(--ink); }
.grade-total { display: grid; justify-items: center; padding: 10px 18px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.grade-total b { font-size: 34px; line-height: 1.1; }
.grade-total small { font-size: 11.5px; }
.grade-total.fail { background: var(--danger-soft); color: var(--danger); }
.exam-result .score.small { font-size: 30px; }
.grade-comment { padding: 10px 14px; border-radius: 8px; background: #f8f4f6; color: var(--ink) !important; text-align: left; }

.users-table select[data-f="role"] { min-width: 96px; }
@media (max-width: 760px) { .lock-badge { right: 12px; left: 12px; top: auto; bottom: 12px; } }

/* ---------- 排班：选人（只显示已选的人，输入查找） ---------- */
.pp-box { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: text; }
.pp-box:focus-within { border-color: #cbafbf; box-shadow: 0 0 0 2px #eee2e9; }
.pp-chips { display: contents; }
.pp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 7px; background: var(--accent-soft); border: 1px solid #dbc7d3; font-size: 13px; font-weight: 600; }
.pp-chip small { color: var(--muted); font-weight: 400; font-size: 11px; }
.pp-chip button { border: 0; background: none; width: 20px; height: 20px; border-radius: 5px; color: var(--muted); font-size: 15px; line-height: 1; }
.pp-chip button:hover { background: #fff; color: var(--danger); }
.pp-input { flex: 1 1 160px; min-width: 120px; border: 0; outline: none; padding: 4px; font-size: 13px; background: transparent; }
.pp-input:focus { outline: none; }
.pp-pop { width: auto; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow: auto; }

/* ---------- 排班：确认排班、私密加薪备注 ---------- */
.confirm-box { display: grid; gap: 6px; margin: 0 0 10px; }
.confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 13px; }
.confirm-row span { display: grid; gap: 1px; }
.confirm-row small { color: var(--muted); font-size: 11.5px; }
.confirm-row.draft { background: var(--warn-soft); color: #86692e; }
.confirm-row.ok { background: var(--ok-soft); color: var(--ok); }
.confirm-row.ok b { display: inline; }
.pay-mark { position: absolute; right: 3px; top: 2px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; background: #492e3e; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.shift { position: relative; }
.pay-field { padding: 10px 12px; border: 1px dashed #c9b98a; border-radius: 9px; background: #fffdf5; }
.pay-field > span { display: block; }
.pay-field > span small { display: block; margin-top: 2px; }
.pay-field [data-paybox] textarea { min-height: 60px; margin-top: 6px; }

.pp-box .pp-input, .modal-body .pp-box .pp-input { border: 0 !important; box-shadow: none !important; background: transparent; height: auto; padding: 4px; outline: none; }
.pay-field > span svg { vertical-align: -2px; margin-right: 4px; }
.confirm-row .link-btn, .confirm-row .button { white-space: nowrap; flex-shrink: 0; }

/* ---------- 表格资料（像 Excel 一样查看 / 修改） ---------- */
.reader-sheet { margin: 18px 0 8px; }
.sg-viewer, .sg-editor { border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); overflow: hidden; }
.sg-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fbf9fa; }
.sg-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.sg-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; color: var(--muted); }
.sg-tabs button.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.sg-tabs .sg-add { padding: 4px 7px; }
.sg-find { min-width: 180px; max-width: 260px; }
.sg-find input { height: 30px; }
.sg-scroll { overflow: auto; max-height: min(70vh, 720px); }
.sg-table { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.sg-table th, .sg-table td { border-right: 1px solid #e6e1e4; border-bottom: 1px solid #e6e1e4; padding: 6px 9px; text-align: left; vertical-align: top; white-space: pre-wrap; min-width: 64px; max-width: 420px; line-height: 1.55; }
.sg-viewer .sg-table thead th { position: sticky; top: 0; z-index: 2; background: #f2eef0; font-weight: 600; }
.sg-viewer .sg-table tr > :first-child { position: sticky; left: 0; z-index: 1; background-clip: padding-box; }
.sg-viewer .sg-table tbody tr > td:first-child:not([style*="background"]) { background: #fff; }
.sg-viewer .sg-table thead tr > th:first-child { z-index: 3; }
.sg-viewer .sg-table tbody tr:hover td { box-shadow: inset 0 0 0 999px rgba(66, 106, 89, .05); }
.sg-table td.sg-hit { outline: 2px solid #f59f00; outline-offset: -2px; }
.sg-foot { padding: 6px 10px; border-top: 1px solid var(--line); }
.sg-fullscreen { position: fixed; inset: 10px; z-index: 200; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.sg-fullscreen .sg-scroll { max-height: none; flex: 1; }
.sg-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.sg-tools > span:first-child { min-width: 90px; }
.sg-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.sg-swatches { display: inline-flex; gap: 3px; align-items: center; }
.sg-swatches .sw { width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .15); padding: 0; font-weight: 700; font-size: 12px; line-height: 1; background: #fff; }
.sg-swatches .sw.none { color: var(--muted); }
.sg-editor .sg-table td { cursor: text; outline: none; }
.sg-editor .sg-table td:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.sg-editor .sg-table td.sel { box-shadow: inset 0 0 0 999px rgba(28, 126, 214, .1); }
.sg-editor .sg-table td.sel:focus { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 999px rgba(28, 126, 214, .1); }
.sg-editor .sg-table td.head { font-weight: 600; }
.sg-editor thead th { position: sticky; top: 0; z-index: 2; background: #f1f3f5; color: var(--muted); font-weight: 500; text-align: center; min-width: 40px; cursor: pointer; user-select: none; }
.sg-editor .sg-rowh { position: sticky; left: 0; z-index: 1; background: #f1f3f5; color: var(--muted); font-weight: 500; text-align: center; min-width: 36px; cursor: pointer; user-select: none; }
.sg-editor .sg-rowh.on, .sg-editor .sg-colh.on { background: #d0ebff; color: #1864ab; }
.sg-editor .sg-corner { left: 0; z-index: 3 !important; }
.sheet-field > span small { display: block; }
.doc-icon .sheet-ico { font-size: 13px; font-weight: 700; color: #2b8a3e; }
@media (max-width: 640px) { .sg-find { min-width: 0; flex: 1; } .sg-fullscreen { inset: 0; border-radius: 0; } }

/* ---------- 排班：查找高亮、底色、场控格子编辑、新名字确认、保存中 ---------- */
.sched-find-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 10px; }
.sched-find { width: min(320px, 100%); }
.sched-find input { height: 34px; }
.sched.finding td.filled:not(.found-cell), .sched.finding td.filled-r:not(.found-cell), .sched.finding td.rest:not(.found-cell) { opacity: .28; }
.sched.finding td.found-cell { box-shadow: inset 0 0 0 3px #f08c00; opacity: 1; }
.sched.finding .shift.found, .sched.finding .rshift.found { background: #ffe066; border-radius: 4px; font-weight: 700; }
.sched.finding .shift.found .nm, .sched.finding .rshift.found { color: #1a1a1a !important; }
.sched.finding td[data-foot].found-cell { background: #fff3bf; }
.sched th.who.found-row { box-shadow: inset 0 0 0 3px #f08c00; }
.fill-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: linear-gradient(135deg, #ffe066 50%, #a5d8ff 50%); border: 1px solid #0002; }
.fill-menu { padding: 10px; gap: 8px; min-width: 0; }
.fill-menu .fill-title { font-size: 12px; color: var(--muted); }
.fill-menu .fill-grid { display: grid; grid-template-columns: repeat(7, 24px); gap: 5px; }
.fill-menu .sw { width: 24px; height: 24px; border-radius: 5px; border: 1px solid #0002; padding: 0; cursor: pointer; }
.fill-menu .sw:hover { transform: scale(1.1); }
.fill-custom { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.fill-custom input { width: 34px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 4px; }
.cell-editor .ce-line { display: grid; grid-template-columns: minmax(150px, 1.4fr) auto auto auto minmax(110px, 1fr) auto; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; border: 1px solid transparent; }
.cell-editor .ce-line.on { border-color: var(--accent); background: var(--accent-soft); }
.cell-editor .ce-line + .ce-line { margin-top: 4px; }
.cell-editor [data-entries] { display: flex; flex-direction: column; }
.new-names { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.nn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 8px; }
.bp-newrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bp-newrow .bp-new { width: auto; }
body.sched-saving::after { content: '正在保存…'; position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 500; padding: 6px 14px; border-radius: 16px; background: #26312fe6; color: #fff; font-size: 12.5px; pointer-events: none; }
body.sched-saving .sched { cursor: progress; }
@media (max-width: 640px) { .cell-editor .ce-line { grid-template-columns: 1fr 1fr 1fr; } .cell-editor .ce-line [data-t], .cell-editor .ce-line .ce-note { grid-column: 1 / -1; } }

/* ---------- 编辑器里的图片 / 视频：点一下选中，出现工具条 ---------- */
.rte { position: relative; }
.rte-area img, .rte-area video { cursor: pointer; }
.rte-area .rte-picked { outline: 3px solid #1c7ed6; outline-offset: 2px; }
.rte-mediabar { position: absolute; z-index: 20; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; max-width: calc(100% - 12px); padding: 5px 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px #0002; font-size: 12.5px; }
.rte-mediabar button { border: 0; background: transparent; padding: 5px 8px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.rte-mediabar button:hover { background: var(--accent-soft); }
.rte-mediabar button.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.rte-mediabar button[data-m="del"] { color: #c92a2a; }
.rte-mediabar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.rte-mediabar .mb-label { color: var(--muted); padding: 0 4px; }
.rich p[style*="text-align: center"] > img, .rich p[style*="text-align:center"] > img, .rich div[style*="text-align: center"] > img { margin-left: auto; margin-right: auto; }
.rich p[style*="text-align: right"] > img, .rich p[style*="text-align:right"] > img { margin-left: auto; }
.bj-clock { font-size: 12px; color: var(--faint); margin-right: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .bj-clock { display: none; } }
.side-version { padding: 4px 12px 0; font-size: 11px; color: var(--faint); }
.rows-editor .item { display: flex; align-items: center; gap: 8px; }
.rows-editor .item .input { flex: 1; min-width: 0; }
.rows-editor .row-no { width: 58px; justify-content: center; flex: none; }
.rows-editor .row-tag { width: 44px; flex: none; text-align: center; }
.modal:focus { outline: none; }

/* ---------- 主播数据（承接指数） ---------- */
:root { --tier-gold: #b4893a; --tier-gold-soft: #f8eed9; --tier-silver: #cfae6e; --tier-silver-soft: #fbf4e6; --tier-mid: #7ea08d; --tier-mid-soft: #edf4ef; --tier-low: #c3cbc1; --tier-low-soft: #f2f4f1; --up: #4f8a62; --down: #b4574d; }
.perf-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.perf-headline { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.perf-headline p { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.perf-headline b { color: var(--accent-ink); }
.perf-headline small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.tier-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; white-space: nowrap; border: 1px solid transparent; }
.tier-tag.t-gold { background: var(--tier-gold-soft); color: #8a6420; border-color: #ecd9ae; }
.tier-tag.t-silver { background: var(--tier-silver-soft); color: #94763a; border-color: #f0e1c2; }
.tier-tag.t-mid { background: var(--tier-mid-soft); color: #4e7560; border-color: #d6e6dc; }
.tier-tag.t-low { background: var(--tier-low-soft); color: #7b8579; border-color: #e3e7e1; }
.tier-tag.t-none { background: #f5f5f5; color: #999; }
.legend i.t-gold { background: var(--tier-gold); } .legend i.t-silver { background: var(--tier-silver); } .legend i.t-mid { background: var(--tier-mid); } .legend i.t-low { background: var(--tier-low); }
.idx { font-weight: 600; font-variant-numeric: tabular-nums; }
.idx-good { color: var(--up); } .idx-bad { color: var(--down); } .idx-mid { color: var(--ink); }
.ibar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--line-soft); min-width: 80px; }
.ibar .ibar-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #9aa59a; }
.ibar .ibar-fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.ibar .ibar-fill.up { background: var(--up); } .ibar .ibar-fill.down { background: var(--down); } .ibar .ibar-fill.muted { background: #b8c1b6; }
.perf-rank { display: grid; gap: 2px; }
.pr-row { display: grid; grid-template-columns: 92px minmax(80px, 1fr) 44px auto; align-items: center; gap: 10px; padding: 6px 6px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 13px; color: var(--ink); cursor: pointer; }
.pr-row:hover { background: var(--accent-soft); }
.pr-row .pr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-row .pr-val { text-align: right; }
.pr-row .pr-meta { display: flex; gap: 4px; }
.pr-thin { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-ink); cursor: pointer; font: inherit; text-decoration: underline; text-decoration-color: #c9d8cd; text-underline-offset: 3px; }
.perf-hours { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 14px; }
.perf-hours .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; min-width: 0; }
.perf-hours .col i { width: 100%; max-width: 30px; border-radius: 3px 3px 0 0; min-height: 2px; }
.perf-hours .col i.t-gold { background: var(--tier-gold); } .perf-hours .col i.t-silver { background: var(--tier-silver); } .perf-hours .col i.t-mid { background: var(--tier-mid); } .perf-hours .col i.t-low { background: var(--tier-low); } .perf-hours .col i.t-none { background: #e5e5e5; }
.perf-hours .col b { font-size: 10px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.perf-hours .col small { font-size: 10.5px; color: var(--faint); }
table.perf-heat { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
table.perf-heat thead th { font-weight: 400; color: var(--muted); padding: 2px 2px 6px; text-align: center; white-space: nowrap; }
table.perf-heat thead th span { display: block; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
table.perf-heat tbody th { text-align: left; font-weight: 400; padding-right: 10px; white-space: nowrap; }
table.perf-heat td { min-width: 64px; height: 40px; padding: 0; border-radius: 6px; background: #f6f7f5; }
table.perf-heat .heat { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; border-radius: 6px; font-variant-numeric: tabular-nums; }
table.perf-heat .heat.up { background: rgba(79, 138, 98, var(--a)); } table.perf-heat .heat.down { background: rgba(180, 87, 77, var(--a)); }
table.perf-heat .heat b { font-weight: 600; font-size: 12.5px; color: var(--ink); }
table.perf-heat .heat small { font-size: 10px; color: rgba(38, 49, 47, .62); }
.perf-days, .perf-weeks { display: flex; align-items: stretch; gap: 4px; height: 140px; }
.perf-days .col, .perf-weeks .col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.perf-days .col::before, .perf-weeks .col::before { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 8px); border-top: 1px dashed #c5cdc3; }
.perf-days .bar, .perf-weeks .bar { position: absolute; left: 22%; right: 22%; height: var(--h); border-radius: 3px; }
.perf-days .bar.up, .perf-weeks .bar.up { bottom: calc(50% + 8px); background: var(--up); }
.perf-days .bar.down, .perf-weeks .bar.down { top: calc(50% - 8px); background: var(--down); }
.perf-days .col small, .perf-weeks .col small { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.perf-weeks { height: 170px; }
.perf-weeks .col b { position: absolute; top: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.perf-detail-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.perf-detail-top > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.perf-detail-top .big { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.perf-detail-top span { font-size: 12px; color: var(--muted); }
.perf-parts { display: grid; gap: 10px; }
.perf-parts .pp { display: grid; grid-template-columns: 76px 1fr 42px; gap: 10px; align-items: center; font-size: 12.5px; }
.perf-coach { padding-left: 18px; font-size: 12.5px; line-height: 1.8; }
.perf-rules { padding-left: 20px; font-size: 13px; line-height: 2; }
.perf-flags { margin: 4px 0 0 18px; }
.perf-method { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 12.5px; color: #5d6a62; line-height: 1.9; }
.perf-method summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; }
.perf-method p { margin-top: 6px; }
.perf-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.perf-picks .pick { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; }
.perf-picks .pick > div { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.perf-picks .pick small { font-size: 11px; margin-left: 4px; }
.perf-warn { padding: 12px 14px; border: 1px solid #ecd0cb; border-radius: 9px; background: var(--danger-soft); }
.perf-warn ul { margin-left: 18px; font-size: 12.5px; line-height: 1.9; color: #6f3a34; }
table.perf-check td { vertical-align: middle; }
.pc-person { display: flex; align-items: center; gap: 5px; padding: 1px 0; }
.pc-person.warn { color: var(--down); font-weight: 500; }
.pc-person small { font-size: 10.5px; }
.spark { display: block; overflow: visible; }
.spark-ref { stroke: #c7cec5; stroke-dasharray: 2 2; }
.spark-line { fill: none; stroke: #7f9488; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: #7f9488; } .spark-dot.idx-good { fill: var(--up); } .spark-dot.idx-bad { fill: var(--down); }
table.perf-hosts td { vertical-align: middle; }
@media (max-width: 860px) { .pr-row { grid-template-columns: 80px minmax(60px, 1fr) 40px; } .pr-row .pr-meta { display: none; } .perf-hours .col b { display: none; } }
.perf-days .col small, .perf-weeks .col small { max-width: 100%; overflow: hidden; }
.perf-days { overflow: hidden; }
.perf-weeks .bar { left: 50%; right: auto; width: min(56%, 48px); transform: translateX(-50%); }
@media (max-width: 1100px) { .grid-2.perf-grid { grid-template-columns: minmax(0, 1fr); } }
.perf-grid > * { min-width: 0; }
/* 流量节点 */
:root { --n-rise: #6f93bd; --n-rise-soft: #eaf0f7; --n-peak: #b4893a; --n-peak-soft: #f8eed9; --n-fall: #c9a768; --n-fall-soft: #fbf4e6; --n-flat: #7ea08d; --n-flat-soft: #edf4ef; --n-low: #c3cbc1; --n-low-soft: #f2f4f1; }
.node-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.node-tag.n-rise { background: var(--n-rise-soft); color: #3f6690; } .node-tag.n-peak { background: var(--n-peak-soft); color: #8a6420; } .node-tag.n-fall { background: var(--n-fall-soft); color: #94763a; } .node-tag.n-flat { background: var(--n-flat-soft); color: #4e7560; } .node-tag.n-low { background: var(--n-low-soft); color: #7b8579; }
.legend i.n-rise, .perf-hours .col i.n-rise { background: var(--n-rise); } .legend i.n-peak, .perf-hours .col i.n-peak { background: var(--n-peak); } .legend i.n-fall, .perf-hours .col i.n-fall { background: var(--n-fall); } .legend i.n-flat, .perf-hours .col i.n-flat { background: var(--n-flat); } .legend i.n-low, .perf-hours .col i.n-low { background: var(--n-low); }
.legend { flex-wrap: wrap; }
.node-list { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.node-row { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.node-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.node-when b { font-variant-numeric: tabular-nums; font-weight: 600; }
.node-when small { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.node-picks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; align-items: center; }
.node-picks .np small { margin-left: 4px; font-size: 11px; color: var(--muted); }
.node-picks .np.first { font-weight: 500; }
.node-picks .np.pair { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.node-list.compact .node-row { grid-template-columns: 170px 1fr; padding: 7px 0; }
.mcell { display: flex; flex-direction: column; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcell small { font-size: 11px; font-weight: 600; }
table.perf-heat tr.heat-sep th { padding: 12px 0 2px; color: var(--muted); font-size: 11.5px; text-align: left; }
@media (max-width: 760px) { .node-row, .node-list.compact .node-row { grid-template-columns: 1fr; gap: 6px; } }
/* 按班次 */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.slot-grid > .panel + .panel { margin-top: 0; }
.slot-card { padding: 16px 18px; min-width: 0; }
.slot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.slot-head b { font-size: 15px; font-variant-numeric: tabular-nums; }
.slot-head small { margin-left: auto; color: var(--muted); font-size: 12px; }
.slot-table td, .slot-table th { padding: 7px 8px; font-variant-numeric: tabular-nums; }
.slot-table tr.thin td { opacity: .5; }
.slot-table tr.best td { background: var(--ok-soft); }
.slot-table tr.sub td { padding-top: 12px; font-size: 11.5px; color: var(--muted); background: none; }
/* 指标卡、综合分析、走势图、雷达图、公式 */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.kpi .kpi-l { font-size: 12px; color: var(--muted); }
.kpi strong { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi small { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.kpi .spark { margin-top: 4px; }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.ins { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line); border-left: 3px solid var(--n-flat); background: var(--surface); }
.ins.good { border-left-color: var(--up); } .ins.warn { border-left-color: var(--down); background: #fdf8f7; } .ins.info { border-left-color: var(--n-rise); }
.ins b { font-size: 13px; } .ins p { margin-top: 4px; font-size: 12.5px; line-height: 1.8; color: #4b5852; }
.lchart { display: block; overflow: visible; }
.lchart .lc-grid { stroke: var(--line); } .lchart .lc-ref { stroke: #a9b3a7; stroke-dasharray: 3 3; }
.lchart .lc-tick { font-size: 11px; fill: var(--faint); }
.lchart .lc-line { fill: none; stroke: #c3cbc1; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.lchart .lc-line.strong { stroke-width: 2.4; }
.lchart .lc-dot { fill: #c3cbc1; }
.lchart .lc-end { font-size: 11px; fill: var(--faint); } .lchart .lc-end.strong { font-weight: 600; }
.radar { display: block; max-width: 100%; height: auto; }
.radar .rd-grid { fill: none; stroke: var(--line); } .radar .rd-ref { fill: none; stroke: #9aa59a; stroke-dasharray: 3 3; }
.radar .rd-area { fill: rgba(79, 138, 98, .18); stroke: var(--up); stroke-width: 1.8; }
.radar .rd-label { font-size: 11px; fill: var(--ink); } .radar .rd-val { font-size: 10.5px; fill: var(--muted); font-weight: 600; }
.radar .rd-val.up { fill: var(--up); } .radar .rd-val.down { fill: var(--down); }
.detail-sum { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: center; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.detail-verdict p { font-size: 13px; line-height: 1.9; }
.mini-trends { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.mini-trends .mt { border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px 2px; }
.mini-trends .mt > span { font-size: 12px; color: var(--muted); }
details.formula summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
details.formula summary::-webkit-details-marker { display: none; }
details.formula summary h2 { font-size: 15px; font-weight: 600; }
details.formula summary::before { content: "▸"; color: var(--accent); } details.formula[open] summary::before { content: "▾"; }
.formula-table td:first-child { font-weight: 500; white-space: nowrap; }
.formula-note { margin-top: 10px; line-height: 1.9; color: #5d6a62; }
.formula-steps { padding-left: 20px; font-size: 13px; line-height: 1.9; display: grid; gap: 4px; }
.formula-example { margin-top: 10px; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); font-size: 12.5px; line-height: 1.9; color: var(--accent-ink); }
@media (max-width: 760px) { .detail-sum { grid-template-columns: 1fr; justify-items: center; } }
/* 主播类型、四象限 */
.type-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; white-space: nowrap; border: 1px solid transparent; }
.type-tag.ty-core { background: var(--ok-soft); color: #2f6b44; border-color: #cfe5d3; }
.type-tag.ty-burn { background: var(--warn-soft); color: #86692e; border-color: #efe1bd; }
.type-tag.ty-small { background: var(--danger-soft); color: #86423b; border-color: #ecd0cb; }
.type-tag.ty-eff { background: var(--n-rise-soft); color: #3f6690; border-color: #d6e2f0; }
.type-tag.ty-mid { background: #f2f4f1; color: #6a7568; }
.type-tag.ty-weak { background: #f5eeee; color: #8a5b56; }
.quad-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 18px; align-items: start; }
.quad { display: block; }
.quad .q-core { fill: rgba(79, 138, 98, .07); } .quad .q-weak { fill: rgba(180, 87, 77, .05); }
.quad .q-axis { stroke: #a9b3a7; stroke-dasharray: 3 3; }
.quad .q-lab { font-size: 11.5px; fill: var(--muted); } .quad .q-ax { font-size: 11.5px; fill: var(--faint); }
.quad .q-dot { fill: rgba(66, 106, 89, .55); stroke: #2e493e; stroke-width: 1; } .quad .q-dot.thin { fill: rgba(160, 167, 155, .35); stroke: #a0a79b; }
.quad .q-name { font-size: 11.5px; fill: var(--ink); }
.type-list { display: grid; gap: 10px; }
.type-list .tl { padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; }
.type-list .tl p { margin: 4px 0 2px; font-size: 13px; }
.type-list .tl small { font-size: 11.5px; color: var(--muted); line-height: 1.6; display: block; }
@media (max-width: 1000px) { .quad-wrap { grid-template-columns: 1fr; } }
table.perf-hosts td:nth-child(2) { white-space: nowrap; }
table.perf-hosts td:nth-child(2) > div { display: flex; gap: 4px; margin-top: 3px; }
table.perf-hosts tr.grp th { background: none; border-bottom: 0; padding-bottom: 0; }
table.perf-hosts tr.grp th.g { border-bottom: 2px solid var(--line); color: var(--muted); font-size: 11.5px; }
.score { font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- 数据基站：二级导航、个人档案 ---------- */
.sub-nav { display: inline-flex; gap: 2px; margin: 0 0 16px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--side); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sub-nav button { min-height: 30px; padding: 4px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; cursor: pointer; }
.sub-nav button:hover { color: var(--ink); }
.sub-nav button.on { background: var(--surface); color: var(--accent-ink); font-weight: 500; box-shadow: 0 1px 2px #26312f14, 0 0 0 1px var(--line); }
.data-table tr.cur td { background: var(--accent-soft); }
.data-table .mcell { display: flex; flex-direction: column; line-height: 1.35; }
.data-table .mcell small { font-size: 11px; }
.profile-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.profile-bar label { font-size: 13px; color: var(--muted); }
.profile-bar select.input { width: auto; min-width: 200px; }
.panel.profile { padding: 24px; }

/* ---------- 数据基站：自定义分析 ---------- */
.xctl { display: grid; gap: 14px; margin-bottom: 14px; padding: 18px 22px; }
.xrow { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: start; }
.xrow + .xrow { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.xlab { font-size: 13px; font-weight: 500; color: var(--ink); padding-top: 5px; }
.xlab small { display: block; font-weight: 400; font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.xbody { display: grid; gap: 8px; min-width: 0; }
.xbody.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.xgroup { font-size: 12px; color: var(--muted); min-width: 52px; align-self: center; }
.xpresets .chip { border-style: dashed; }
.chip .xdot, .xtable .xdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.chip[disabled] { opacity: .45; cursor: default; }
.chip small { margin-left: 4px; font-size: 10.5px; color: var(--faint); }
.xsummary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 2px 12px; font-size: 12.5px; color: var(--muted); }
.xlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.xlegend span, .xtotals span { display: inline-flex; align-items: center; gap: 5px; }
.xlegend i, .xtotals i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.xcharts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xcard { padding: 18px 18px 10px; }
.xcard-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 6px; }
.xcard-head h3 { margin: 0; font-size: 15px; }
.xtotals { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); align-items: center; }
.xtotals em { font-style: normal; }
.xtotals b { color: var(--ink); font-size: 13.5px; }
.xchart { display: block; overflow: visible; }
.xchart .xc-grid { stroke: var(--line-soft); }
.xchart .xc-tick { font-size: 11px; fill: var(--faint); }
.xchart .xc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.xchart .xc-dot { stroke: #fff; stroke-width: 1.2; }
.xchart rect:hover, .xchart .xc-dot:hover { opacity: .8; }
.xtable td { white-space: nowrap; }
.xtable tr.xtotal td { font-weight: 600; background: var(--accent-soft); }
.xnotes { margin: 14px 2px 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
@media (max-width: 900px) { .xcharts { grid-template-columns: minmax(0, 1fr); } .xrow { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.xcharts > .panel { margin: 0; }
.xwho { display: grid; gap: 8px; }
.xtags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xtag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid #b8ccb6; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; }
.xtag.all { padding-right: 10px; }
.xtag i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.xtag button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; }
.xtag button:hover { background: #fff; color: var(--danger); }
.xsearch { position: relative; max-width: 420px; }
.xsearch > svg { position: absolute; left: 10px; top: 11px; color: var(--faint); pointer-events: none; }
.xsearch .input { padding-left: 32px; }
.xdrop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 340px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 8px 24px #26312f1f; }
.xopt { display: flex; width: 100%; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 13px; color: var(--ink); cursor: pointer; }
.xopt:hover, .xopt.hl { background: var(--accent-soft); }
.xopt-check { width: 14px; color: var(--accent); font-weight: 600; }
.xopt-name { flex: 1; }
.xopt small { color: var(--faint); font-size: 11.5px; }
.xdrop-tip { padding: 6px 10px; font-size: 11.5px; color: var(--faint); }
.xcols { position: relative; }
.xcols > summary { list-style: none; cursor: pointer; }
.xcols > summary::-webkit-details-marker { display: none; }
.xcols-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(440px, 86vw); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px #26312f1f; display: grid; gap: 10px; }
.xcols-g { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.xcols-g b { width: 100%; font-size: 12px; color: var(--muted); font-weight: 500; }
.xcols-g label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.xcols-foot { display: flex; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
/* 飞瓜接入 */
.fg-steps { margin: 0 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--ink); }
.fg-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: end; }
.fg-form .row { grid-column: 1 / -1; }
.fg-status { margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fg-status.ok { background: var(--ok-soft); color: var(--accent-ink); }
.fg-status.bad { background: var(--danger-soft); color: var(--danger); }
.fg-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fg-tool { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 8px; align-content: start; }
.fg-tool-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.fg-desc { color: var(--muted); line-height: 1.7; white-space: pre-line; max-height: 7.2em; overflow: auto; }
.fg-params { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.fg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.fg-form-grid .field small { display: block; margin-top: 2px; }
.fg-raw { max-height: 360px; overflow: auto; padding: 10px 12px; background: var(--side); border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.fg-fields code, .fg-tool code { font-size: 12px; }
@media (max-width: 900px) { .fg-form, .fg-tools, .fg-form-grid { grid-template-columns: minmax(0, 1fr); } }
.fg-stats .stat strong { font-size: 20px; white-space: nowrap; }
.fg-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.fg-imp-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: end; margin-bottom: 12px; }
.fg-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.detail-h small { font-weight: 400; margin-left: 6px; font-size: 12px; }
@media (max-width: 900px) { .fg-imp-top, .fg-map { grid-template-columns: minmax(0, 1fr); } }
.warn-text { color: var(--warn); }
.tag.wrap { white-space: normal; width: auto; margin-top: 3px; }

/* ---------- 数据基站：主播榜单 ---------- */
.bd-ctl { display: grid; gap: 12px; margin-bottom: 12px; padding: 16px 22px; }
.bd-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.bd-row + .bd-row { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.bd-lab { font-size: 13px; font-weight: 500; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bd-dates { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); }
.bd-dates .input { width: 150px; min-height: 32px; padding: 4px 8px; }
.bd-row .xsearch { width: 240px; }
.bd-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.bd-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 2px 12px; font-size: 12.5px; color: var(--muted); }
.bd-sum b { color: var(--ink); font-weight: 600; }
.bd-panel { padding-bottom: 8px; }
.bd-panel h2 small { font-weight: 400; font-size: 13px; margin-left: 4px; }
.bd-table th, .bd-table td { white-space: nowrap; }
.bd-table td { vertical-align: middle; }
.bd-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.bd-sort i { font-style: normal; font-size: 10px; color: var(--faint); }
.bd-sort.on { color: var(--accent-ink); font-weight: 600; }
.bd-sort.on i { color: var(--accent); }
.bd-cell { display: flex; flex-direction: column; line-height: 1.35; }
.bd-cell small { font-size: 11px; }
.bd-cell .up, .bd-cell small.up { color: var(--up); }
.bd-cell .down, .bd-cell small.down { color: var(--down); }
.bd-rank { width: 48px; }
.bd-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; color: var(--muted); background: var(--line-soft); }
.bd-no.top1 { background: var(--tier-gold-soft); color: #8a6420; font-weight: 600; }
.bd-no.top2 { background: #eef1f4; color: #55606b; font-weight: 600; }
.bd-no.top3 { background: #f6ece4; color: #8b5a3c; font-weight: 600; }
.bd-name .link-btn { font-weight: 500; }
.bd-name .link-btn[disabled] { color: var(--ink); text-decoration: none; cursor: default; }
.bd-spark { display: block; }
.bd-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 900px) { .bd-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .bd-row .xsearch { width: 100%; } }
/* ---------- 表格导入：上传 / 粘贴、每一列放到哪里、预览 ---------- */
.tim-src { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 12px; align-items: stretch; }
.tim-src .drop-zone.small { min-height: 110px; padding: 14px; }
.tim-or { align-self: center; color: var(--faint); font-size: 12px; }
.tim-src textarea { min-height: 110px; font-family: monospace; font-size: 12px; }
.tim-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 14px 0 4px; }
.tim-bar select { max-width: 360px; }
.tim-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.tim-col { border: 1px solid var(--line); border-radius: 9px; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.tim-col.off { background: #f7f5f6; opacity: .75; }
.tim-col.unsure { border-color: #f59f00; box-shadow: 0 0 0 1px #f59f0055; }
.tim-h { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tim-sample { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tim-col select { width: 100%; }
.ok-text { color: #2b8a3e; }
.tim-sum { margin: 6px 0 8px; font-size: 13px; }
.tim-preview td { white-space: pre-wrap; max-width: 260px; font-size: 12.5px; }
@media (max-width: 720px) { .tim-src { grid-template-columns: 1fr; } .tim-or { justify-self: center; } }

/* ---------- 灵活表格：新建表格、勾选批量修改、加列、显示列、导入方式 ---------- */
.tabs .tab-add { border: 0; background: transparent; color: var(--accent); font-size: 13px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tabs .tab-add:hover { background: var(--accent-soft); border-radius: 7px; }
.reg .sticky-col { white-space: nowrap; }
.reg .sticky-col input[type=checkbox] { margin: 0 6px 0 2px; vertical-align: middle; }
.reg .add-col-h { width: 36px; text-align: center; }
.reg-sel { position: sticky; bottom: 14px; z-index: 8; }
.col-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.tim-mode { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nt-cols tr.off { opacity: .45; }
.nt-cols .input.small { min-width: 120px; }

/* ---------- 撤回、借出 / 归还、手机号与账号、导入模板、照片导入、表格图片 ---------- */
.toast { display: flex; align-items: center; gap: 12px; }
.toast-act { margin-left: auto; padding: 3px 10px; border: 1px solid #ffffff66; border-radius: 6px; background: transparent; color: #fff; font-size: 12px; white-space: nowrap; }
.toast-act:hover { background: #ffffff22; }
.reg .extra-col { white-space: nowrap; }
.loan-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.loan-items { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-switch { margin: 0 0 12px; }
.acct-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; max-width: 420px; white-space: normal; }
.acct-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--blush); color: var(--accent-ink); font-size: 12px; }
.acct-chip small { color: var(--muted); font-size: 11px; }
.acct-chip.warn { border-color: #e9c98f; background: var(--warn-soft); }
.acct-chip:hover { border-color: var(--rose); }
.acct-chip .status-pill { font-size: 10.5px; padding: 0 5px; }
.acct-add { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border: 1px dashed var(--rose); border-radius: 12px; background: transparent; color: var(--accent); font-size: 12px; }
.acct-add:hover { background: var(--accent-soft); }
.tim-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.tim-heads { display: inline-flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.tim-heads .tag.req { background: var(--blush); color: var(--accent-ink); font-weight: 600; }
.photo-src { grid-template-columns: 1fr auto 1fr; }
.photo-plan { display: grid; gap: 6px; max-height: 320px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.pp-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pp-thumbs { display: inline-flex; gap: 4px; margin-left: auto; align-items: center; }
.pp-thumbs img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; background: var(--line-soft); }
.sg-imgs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; user-select: none; }
.sg-imgs img { max-width: 140px; max-height: 96px; border-radius: 4px; object-fit: contain; cursor: zoom-in; background: #fff; }
.sg-editor .sg-imgs img { max-height: 72px; }
.loan-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.loan-cell .button.small { padding: 2px 9px; min-height: 0; height: 24px; font-size: 12px; }
.take-box { display: flex; gap: 16px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.take-score { display: grid; justify-items: center; gap: 4px; min-width: 64px; }
.take-score strong { font-size: 26px; line-height: 1; }
/* 排班表里的承接评分、主播库能力卡 */
.nm-sc { margin-left: 2px; padding: 0 3px; border-radius: 3px; font-size: 9.5px; font-weight: 600; line-height: 1.3; vertical-align: 4px; color: #fff; background: #9aa59a; }
.nm-sc.g { background: var(--up); } .nm-sc.b { background: var(--down); } .nm-sc.m { background: #8c9a8f; }
.nm-sc.thin { opacity: .55; }
.pc-btn { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.pc-badge { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-badge b { font-size: 14px; } .pc-badge small { font-size: 11px; color: var(--muted); }
.sc-good { color: var(--up); } .sc-bad { color: var(--down); } .sc-mid { color: var(--ink); }
.pcard { padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 12px; display: grid; gap: 10px; }
.pcard-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcard-top { display: flex; gap: 18px; align-items: flex-start; }
.pcard-score { display: grid; justify-items: center; min-width: 86px; padding: 6px 4px; border-radius: 10px; background: var(--paper); }
.pcard-score strong { font-size: 32px; line-height: 1.1; }
.pcard-score span { font-size: 12px; color: var(--muted); } .pcard-score small { font-size: 10.5px; color: var(--faint); }
.pcard-meta { display: grid; gap: 4px; min-width: 0; }
.pcard-meta .spark { vertical-align: middle; }
.pcard-note { color: var(--muted); }
.pcard-raw { color: var(--muted); }
.pcard-sw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pcard-sw h4 { margin: 0 0 4px; font-size: 13px; }
.pcard-sw ul { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.8; }
.pcard-sw li small { display: block; color: var(--muted); line-height: 1.6; }
.pcard-sw .up { color: var(--up); } .pcard-sw .down { color: var(--down); }
.pcard-pairs { display: grid; gap: 4px; font-size: 13px; }
@media (max-width: 700px) { .pcard-top { flex-direction: column; } .pcard-sw { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 数据基站：智能控制台 ---------- */
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cs-head h2 { margin: 0 0 2px; font-size: 20px; }
.cs-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cs-kpi { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cs-kpi span { font-size: 12px; color: var(--muted); }
.cs-kpi strong { font-size: 22px; line-height: 1.2; }
.cs-kpi small { font-size: 11.5px; }
.cs-kpi .up, .cs-room .up, .cs-mlist .up { color: var(--up); } .cs-kpi .down, .cs-room .down, .cs-mlist .down { color: var(--down); }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.cs-grid > .panel { margin: 0; }
.cs-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 11px; background: var(--danger); color: #fff; font-size: 12px; vertical-align: 2px; }
.cs-alist, .cs-mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cs-alist li { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 7px; font-size: 13.5px; }
.cs-alist li:hover { background: var(--paper); }
.cs-alist a { color: var(--ink); text-decoration: none; }
.cs-alist a:hover { text-decoration: underline; }
.cs-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9fb0a5; transform: translateY(-1px); }
.cs-alist li.warn .cs-dot { background: var(--warn); }
.cs-mlist li { display: grid; grid-template-columns: minmax(0, 1fr) 40px 74px auto; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.cs-mlist a { display: flex; gap: 6px; align-items: baseline; color: var(--ink); text-decoration: none; }
.cs-mlist a small { font-size: 11px; }
.cs-sub { margin: 20px 2px 10px; font-size: 15px; }
.cs-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cs-rooms > .panel { margin: 0; }
.cs-room { display: grid; gap: 10px; align-content: start; }
.cs-room-head { display: flex; justify-content: space-between; align-items: baseline; }
.cs-room-head a { color: var(--ink); font-size: 16px; text-decoration: none; }
.cs-room-head a:hover { color: var(--accent); }
.cs-room-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cs-room-kpi div { display: grid; gap: 1px; }
.cs-room-kpi span { font-size: 11.5px; color: var(--muted); }
.cs-room-kpi b { font-size: 17px; }
.cs-room-kpi small { font-size: 11px; }
.cs-bars rect { fill: var(--accent); opacity: .75; }
.cs-bars rect:last-child { opacity: 1; }
.cs-room-lines { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.cs-room-lines > div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.cs-room-lines .lbl { min-width: 64px; color: var(--muted); }
.cs-node { display: inline-flex; gap: 4px; align-items: center; }
.cs-warn { margin: 0 0 0 74px; padding-left: 14px; font-size: 12px; color: var(--muted); line-height: 1.7; }
@media (max-width: 1100px) { .cs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cs-grid, .cs-rooms { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-room-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-warn { margin-left: 0; } }

/* ---------- 数据基站：话术分析 ---------- */
.sc-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 18px; padding: 12px 14px; margin-bottom: 14px; border-radius: 9px; background: var(--paper); color: var(--muted); line-height: 1.75; }
.sc-help b { color: var(--ink); }
.sc-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.sc-form .wide { grid-column: 1 / -1; }
.sc-form .row.wide { display: flex; gap: 10px; align-items: center; }
.drop-zone.small { flex-direction: row; gap: 8px; padding: 12px; min-height: 0; margin-bottom: 8px; }
.sc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.sc-bar { display: inline-block; width: 80px; height: 8px; border-radius: 4px; background: var(--line-soft); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.sc-bar i { display: block; height: 100%; }
.sc-phr { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.sc-phr small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sc-phr .up, .sc-anchors .up, .data-table .up { color: var(--up); } .sc-phr .down, .sc-anchors .down, .data-table .down { color: var(--down); }
.sc-stack { display: flex; width: 160px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line-soft); }
.sc-stack i { display: block; height: 100%; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.sc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sc-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 900px) { .sc-help, .sc-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 资料查看：放大缩小；内容管理：勾选、已删除 ---------- */
.reader { --rz: 1; }
.reader > :not(.reader-top) { zoom: var(--rz); }
.reader-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zoom-ctl { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.zoom-ctl button { border: 0; background: transparent; padding: 3px 10px; font-size: 13px; color: var(--muted); min-width: 34px; }
.zoom-ctl button + button { border-left: 1px solid var(--line); }
.zoom-ctl button:hover { background: var(--accent-soft); color: var(--accent-ink); }
.content-list .pick-col { width: 34px; text-align: center; }
.tag.deleted { background: #f1eef0; color: #9a8c94; text-decoration: line-through; }
.tim-folder-pick { margin-top: 8px; color: var(--muted); line-height: 1.8; }
.tim-folder-pick .link-btn { cursor: pointer; margin: 0 4px; font-weight: 600; }
.tim-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--blush); font-size: 13px; }
.tim-folder details { flex-basis: 100%; }
.perf-hours .col .ph-roi { display: block; font-style: normal; font-size: 10px; color: var(--muted); text-align: center; margin-top: 1px; }
/* 承接算法迭代：误差范围、主播×钟点、班次、场次复盘、评分检验 */
.pr-range { display: block; font-size: 10px; color: var(--faint); font-weight: 400; line-height: 1.1; }
.pr-row { grid-template-columns: 92px minmax(80px, 1fr) 54px auto; }
.hour-grid th, .hour-grid td { padding: 6px 4px; text-align: center; white-space: nowrap; }
.hour-grid td:first-child, .hour-grid th:first-child { text-align: left; padding-left: 10px; position: sticky; left: 0; background: var(--surface); }
.hour-grid .hc { min-width: 34px; font-size: 12px; font-weight: 600; line-height: 1.15; }
.hour-grid .hc small { display: block; font-size: 9.5px; font-weight: 400; color: var(--faint); }
.hour-grid .hc.g { background: #e5f1e8; color: var(--up); } .hour-grid .hc.b { background: #f7e8e6; color: var(--down); } .hour-grid .hc.m { background: var(--paper); }
.hour-grid .hc.take { color: var(--faint); font-weight: 400; font-size: 11px; }
.shift-table td { white-space: nowrap; }
.excl-list { margin: 0 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.9; }
.replay { display: grid; gap: 6px; }
.replay-item { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.replay-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; }
.replay-sc { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.replay-t { margin-top: 8px; }
.val-panel { margin-bottom: 16px; }
.val-pairs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 8px; }
.ph-wrap { position: relative; }
.ph-roi-line { position: absolute; left: 0; right: 0; top: 14px; height: calc(100% - 52px); width: 100%; pointer-events: none; overflow: visible; }
.ph-roi-line polyline { fill: none; stroke: #3b2a33; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.ph-roi-axis { position: absolute; right: -2px; top: 0; font-size: 9.5px; line-height: 1.3; color: var(--muted); text-align: right; background: #ffffffcc; padding: 0 2px; }
.legend i.lg-roi { width: 14px; height: 2px; border-radius: 1px; background: #3b2a33; display: inline-block; vertical-align: middle; }
.tz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: 13px; }
.tz-row select.input { width: auto; min-width: 220px; }
.tz-row small { flex-basis: 100%; }
.tz-pick { min-height: 28px; padding: 2px 6px; font-size: 12px; width: auto; }
.pr-tier { margin: 10px 0 2px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.pr-tier:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pr-tier small { font-weight: 400; color: var(--faint); margin-left: 8px; }

/* ---------- 排班：查找时只显示 TA；撤回记录；排班图片 ---------- */
.sched.find-only .shift:not(.found), .sched.find-only .rshift:not(.found) { visibility: hidden; }
.sched.find-only td[data-foot]:not(.found-cell) { color: transparent !important; }
.sched.find-only td[data-foot].found-cell { color: transparent !important; }
.sched.find-only td[data-foot].found-cell::before { content: attr(data-findshow); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #1a1a1a; font-weight: 700; }
.sched.find-only th.who:not(.found-row) { color: transparent !important; }
.sched.find-only td.filled:not(.found-cell), .sched.find-only td.filled-r:not(.found-cell), .sched.find-only td.rest:not(.found-cell) { opacity: 1; background: #fff !important; }
.sched-find-bar .check { white-space: nowrap; }
.step-list { display: grid; gap: 6px; padding-left: 20px; }
.step-list li > div { display: inline-flex; flex-direction: column; margin-right: 10px; }
.step-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sched-img-box { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #f7f3f6; padding: 10px; text-align: center; }
.sched-img-box img { max-width: 100%; height: auto; box-shadow: 0 4px 18px #0001; }
/* 主播库 / 资产库：按住勾选框拖动连选时不要选中文字 */
table.reg.dragging { user-select: none; }
table.reg [data-pick] { cursor: pointer; }
/* 导入：选择导入哪些行 */
.tim-rows { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 6px; }
.tim-rows .row { gap: 6px; }
.tim-rows .input.tim-num { width: 76px; flex: none; }
.tim-rows .input[data-skipwords] { width: 200px; flex: none; }
.tim-preview { max-height: 360px; overflow: auto; }
.tim-preview thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.tim-preview .tim-pick { width: 28px; text-align: center; }
.tim-preview tr.row-off td { color: var(--faint, #9aa); background: #fafafa; text-decoration: line-through; text-decoration-color: #ccc; }
.tim-preview tr.row-off td.tim-pick { text-decoration: none; }
/* 资料正文：标题折叠 + 目录 */
.zoom-ctl select { border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; font-size: 13px; color: var(--muted); padding: 3px 4px; cursor: pointer; }
.fold-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbf8fa; }
.fold-toc { flex: 1 1 100%; order: 3; }
.fold-toc summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-ink, #8a2a5c); }
.fold-toc ol { list-style: none; margin: 8px 0 2px; padding: 0; max-height: 320px; overflow: auto; font-size: 13px; line-height: 1.9; }
.fold-toc li.fold-l2 { padding-left: 16px; } .fold-toc li.fold-l3 { padding-left: 32px; } .fold-toc li.fold-l4 { padding-left: 48px; }
.fold-toc a { color: inherit; text-decoration: none; } .fold-toc a:hover { color: var(--accent-ink, #8a2a5c); text-decoration: underline; }
.fold-btns { display: inline-flex; gap: 4px; }
.rich .fold-head { cursor: pointer; position: relative; border-radius: 6px; }
.rich .fold-head::before { content: '▾'; display: inline-block; width: 1.1em; margin-left: -1.1em; color: var(--faint, #a99); font-size: .8em; transition: transform .15s; }
.rich .fold-head.fold-shut::before { transform: rotate(-90deg); }
.rich .fold-head:hover { background: #f8f1f5; }
.rich .fold-head.fold-shut::after { content: ' …'; color: var(--faint, #a99); font-weight: 400; }
.rich .fold-hidden { display: none !important; }
.rich .fold-flash { background: #fff2b3; transition: background .6s; }
.rich[data-folded] { padding-left: 1.1em; }

/* Server resource monitoring */
.monitor-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 28px; gap: 0 32px; }
.monitor-values > div { border-bottom: 1px solid var(--line); padding: 16px 0; min-width: 0; }
.monitor-values dt { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.monitor-values dd { margin: 0; overflow-wrap: anywhere; }
.monitor-values strong { display: block; font-size: 20px; }
.monitor-values small { display: block; color: var(--muted); margin-top: 4px; }
.monitor-trend { border-top: 1px solid var(--line); padding: 20px 0; }
.monitor-trend h2 { font-size: 18px; }
.monitor-trend canvas { display: block; width: 100%; height: 180px; }
.monitor-cpu { color: #9b3d70; } .monitor-memory { color: #187d77; }
@media (max-width: 600px) { .monitor-values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 评分排名看板 ---------- */
.rb { padding: 22px 24px; }
.rb-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.rb-head h2 { margin: 0 0 6px; font-size: 18px; }
.rb-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 760px; }
.rb-rel { flex-shrink: 0; min-width: 92px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-align: center; }
.rb-rel small { display: block; font-size: 11px; color: var(--muted); }
.rb-rel b { font-size: 22px; font-weight: 600; line-height: 1.3; }
.rb-rel.ok { background: var(--ok-soft); border-color: transparent; } .rb-rel.ok b { color: var(--ok); }
.rb-rel.mid { background: var(--warn-soft); border-color: transparent; } .rb-rel.mid b { color: var(--warn); }
.rb-rel.low { background: var(--danger-soft); border-color: transparent; } .rb-rel.low b { color: var(--danger); }
.rb-rel-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.rb-rel-note.low { color: var(--danger); }
.rb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 4px; }
.rb-kpis > div { padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rb-kpis small { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.rb-kpis b { font-size: 17px; font-weight: 600; }
.rb-kpis span { font-size: 13px; color: var(--muted); }
.rb .up { color: var(--ok); } .rb .down { color: var(--danger); }
.rb-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.rb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rb-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rb-table th small { display: block; font-weight: 400; color: var(--faint); font-size: 11px; }
.rb-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
.rb-table tbody tr:not(.rb-tier):hover td { background: var(--paper); }
.rb-tier td { padding: 14px 10px 6px; font-size: 12px; font-weight: 600; color: var(--accent-ink); border-bottom: 1px solid var(--line); background: transparent; }
.rb-tier small { margin-left: 10px; font-weight: 400; color: var(--faint); }
.rb-rk { width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rb-name .link-btn { font-weight: 500; font-size: 13.5px; }
.rb-flag { margin-left: 6px; font-size: 11px; color: var(--warn); }
.rb-score { min-width: 300px; }
td.rb-score { display: flex; align-items: center; gap: 12px; }
.rb-num { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; display: inline-block; }
.rb-num.up { color: var(--ok); } .rb-num.down { color: var(--danger); }
.rb-bar { position: relative; flex: 1; height: 18px; min-width: 170px; }
.rb-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.rb-mid { position: absolute; top: 1px; bottom: 1px; width: 1px; background: #b9aab3; }
.rb-ci { position: absolute; top: 6px; height: 6px; border-radius: 3px; background: #ddd2d8; }
.rb-ci.up { background: #cfe0d1; } .rb-ci.down { background: #efcdc8; }
.rb-dot { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #8d7c86; box-shadow: 0 0 0 2px #fff; }
.rb-dot.up { background: var(--ok); } .rb-dot.down { background: var(--danger); }
.rb-range { color: var(--faint); font-size: 11px; min-width: 50px; font-variant-numeric: tabular-nums; }
.rb-peak small { margin-left: 6px; color: var(--faint); font-size: 11px; }
.rb-na { color: var(--faint); font-size: 12px; }
.rb-slotk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; margin-right: 4px; }
.rb-slotk.s-早 { background: #f6e3c6; color: #8a5a17; } .rb-slotk.s-午 { background: #f3e8d6; color: #86683a; }
.rb-slotk.s-晚 { background: #e3e2f1; color: #4d4a80; } .rb-slotk.s-夜 { background: #dfe3ea; color: #3e4b5e; }
.rb-slotk.lite { opacity: 0.55; }
.rb-trend { display: flex; align-items: center; gap: 4px; }
td.rb-trend { display: table-cell; } .rb-trend svg { display: inline-block; vertical-align: middle; }
.rb-hours { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.rb-conf { font-size: 12px; color: var(--muted); }
.rb-conf.ok { color: var(--ok); } .rb-conf.thin { color: var(--warn); }
.rb-rest { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.rb-how { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.rb-how summary, .rb-more summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.rb-how ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.8; }
.rb-more { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rb-more[open] summary { margin-bottom: 12px; }
.rb-more > .panel, .rb-more section.panel { border: 0; padding: 0; margin-top: 0 !important; }
@media (max-width: 760px) {
  .rb { padding: 16px; } .rb-head { flex-direction: column; } .rb-kpis { grid-template-columns: 1fr; }
  .rb-score { min-width: 220px; } .rb-bar { min-width: 110px; }
}

/* ---------- 人岗匹配 ---------- */
.fit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fit-kpis > div { padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-soft); }
.fit-kpis small { display: block; font-size: 11.5px; color: var(--muted); }
.fit-kpis b { display: block; font-size: 22px; font-weight: 600; margin: 2px 0; font-variant-numeric: tabular-nums; }
.fit-kpis span { font-size: 11.5px; color: var(--faint); line-height: 1.5; display: block; }
.fit .up, .fit-kpis .up { color: var(--ok); } .fit .down, .fit-kpis .down { color: var(--danger); } .fit-kpis .try { color: #4d6a9a; }
.fit-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.fit-table th { font-weight: 500; text-align: center; vertical-align: bottom; padding: 4px 4px 8px; color: var(--muted); }
.fit-table th.fit-name, .fit-table td.fit-name { text-align: left; white-space: nowrap; padding-right: 12px; }
.fit-seg { min-width: 92px; }
.fit-seg .tag, .fit-seg .node-tag { display: inline-block; margin-bottom: 3px; }
.fit-time { display: block; font-size: 11.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fit-share { display: block; height: 4px; margin: 5px auto 2px; width: 70%; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.fit-share i { display: block; height: 100%; background: #b7a2ae; }
.fit-seg.peak .fit-share i { background: var(--accent); }
.fit-seg small { font-size: 10.5px; color: var(--faint); font-weight: 400; }
.fit-name small { margin-left: 8px; color: var(--faint); font-size: 11px; }
.fit-name .link-btn { font-weight: 500; }
.fit-cell { text-align: center; border-radius: 6px; padding: 7px 4px; min-width: 64px; height: 38px; }
.fit-cell b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fit-cell small { display: block; font-size: 10.5px; opacity: 0.75; }
.fit-cell.main { box-shadow: inset 0 0 0 2px var(--ink); }
.fh-na { background: #faf7f9; color: var(--faint); }
.fh-p0, .fh-n0 { background: #f3eff1; color: var(--ink); }
.fh-p1 { background: #e3efe5; color: #2f5a3b; } .fh-p2 { background: #c6dfcb; color: #234a2e; } .fh-p3 { background: #9cc6a6; color: #173a22; }
.fh-n1 { background: #f6e2de; color: #7d2f26; } .fh-n2 { background: #edc4bd; color: #6c241c; } .fh-n3 { background: #dd9a8f; color: #5a1a13; }
.fit-cell.thin { opacity: 0.6; }
.fit-note { text-align: left !important; min-width: 260px; white-space: normal; line-height: 1.5; color: var(--muted); }
.fit-flag { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; margin-right: 6px; background: var(--line-soft); color: var(--muted); }
.fit-flag.ok { background: var(--ok-soft); color: var(--ok); } .fit-flag.bad { background: var(--danger-soft); color: var(--danger); } .fit-flag.try { background: #e6edf7; color: #3f5d8f; }
.fit-table tfoot td { font-size: 12px; padding-top: 10px; border-top: 1px solid var(--line); vertical-align: top; }
.fit-best { text-align: center; } .fit-best small { color: var(--ok); }
@media (max-width: 760px) { .fit-kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- 控制台：直播间一览 ---------- */
.cs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cs-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cs-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cs-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-table .up { color: var(--ok); } .cs-table .down { color: var(--danger); }
.cs-room-link { font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.cs-table .cs-bars rect { fill: #b59aa8; }
.cs-names { font-size: 12.5px; min-width: 110px; line-height: 1.6; }
.cs-meter { display: inline-block; width: 52px; height: 6px; border-radius: 3px; background: var(--line-soft); vertical-align: middle; margin-right: 8px; overflow: hidden; }
.cs-meter i { display: block; height: 100%; background: var(--warn); } .cs-meter i.ok { background: var(--ok); } .cs-meter i.bad { background: var(--danger); }
.cs-rel { display: inline-block; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--line-soft); color: var(--muted); }
.cs-rel.ok { background: var(--ok-soft); color: var(--ok); } .cs-rel.mid { background: var(--warn-soft); color: var(--warn); } .cs-rel.low { background: var(--danger-soft); color: var(--danger); }
.cs-foot { margin: 10px 0 0; }
.cs-more { margin-top: 10px; font-size: 13px; } .cs-more summary { cursor: pointer; color: var(--accent); }
.fit-one { margin: 18px 0 6px; } .fit-one .fit-table { width: auto; } .fit-one .fit-cell { min-width: 84px; }

/* ---------- 时间范围选择 ---------- */
.range-pick { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.range-pick .seg { flex-wrap: wrap; }
.range-now { font-variant-numeric: tabular-nums; }
.range-custom { display: flex; align-items: center; gap: 6px; }
.range-custom .input.small { width: 140px; }
.pager { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.pager-nums { display: flex; gap: 4px; }
.pager .pg { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager .pg.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .pg:disabled { opacity: 0.4; cursor: default; }
.pager .pg-gap { padding: 0 4px; color: var(--faint); line-height: 30px; }
.pager label { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pager select.input.small { width: auto; }
.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.th-sort:hover { color: var(--accent); }
.th-sort .arr { font-size: 10px; margin-left: 3px; color: var(--accent); }

/* ---------- 场次明细 ---------- */
.ss-kpis, .ss-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ss-kpis > div, .ss-strip > div { padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-soft); }
.ss-kpis small, .ss-strip small { display: block; font-size: 11.5px; color: var(--muted); }
.ss-kpis b, .ss-strip b { display: block; font-size: 18px; font-weight: 600; margin: 2px 0; font-variant-numeric: tabular-nums; }
.ss-kpis span, .ss-strip span { font-size: 11.5px; color: var(--faint); }
.ss-kpis .down { color: var(--danger); } .ss-kpis .up { color: var(--ok); }
.ss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; padding: 14px 16px; margin-bottom: 16px; }
.ss-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ss-tools .input[type=search] { width: 200px; }
.ss-table td.num, .ss-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ss-table tr.sel td { background: var(--accent-soft); }
.ss-ck { width: 32px; }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) { .ss-kpis, .ss-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- 数据缺口日历 ---------- */
.gap-box { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.gap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; font-size: 13px; }
.gap-head small { flex-basis: 100%; }
.cv-cal { display: inline-flex; flex-direction: column; gap: 3px; }
.cv-row { display: grid; grid-template-columns: 44px repeat(7, 34px); gap: 3px; }
.cv-hd span { font-size: 11px; color: var(--faint); text-align: center; }
.cv-wk { font-size: 11px; color: var(--muted); line-height: 24px; }
.cv-d { height: 24px; border-radius: 4px; font-size: 11px; text-align: center; line-height: 24px; font-variant-numeric: tabular-nums; }
.cv-ok { background: #cfe3d3; color: #2f5a3b; } .cv-mid { background: #f5e3b8; color: #7a5a14; } .cv-bad { background: #efc4bd; color: #7d2f26; } .cv-0 { background: #e5c2c8; color: #6c241c; font-weight: 600; }
.cv-out { background: transparent; }
.cv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cv-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.gap-list { margin: 8px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; font-size: 12.5px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.cv-edge { background: #ece6ea; color: var(--muted); }
.trash-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.data-table tr.sel td { background: var(--accent-soft); }

/* ---------- 图文里的图片：设了大小的图片可以几张放一行，点击放大看 ---------- */
.rich img[width] { display: inline-block; vertical-align: top; margin: 6px 8px 6px 0; }
.imp-no { width: 46px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.imp-total { margin: 0 0 8px; color: var(--muted); }
details.gap-box > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
details.gap-box > summary::-webkit-details-marker { display: none; }
details.gap-box > summary::before { content: '▸'; color: var(--accent); margin-right: 4px; }
details.gap-box[open] > summary::before { content: '▾'; }
details.gap-box[open] > summary { margin-bottom: 10px; }
.profile-bar #perf-host-find { width: 220px; }
.ot-red { color: #c62828; font-weight: 700; } .ot-c { white-space: nowrap; }
.left-cell { background: repeating-linear-gradient(135deg, #f1edf0 0 6px, #e7e1e5 6px 12px); color: var(--muted); font-size: 11px; text-align: center; }
.leave-tag { display: block; font-size: 10.5px; font-weight: 400; color: #c62828; }
.sep-v { width: 1px; align-self: stretch; background: var(--line); margin: 0 6px; }
.leave-opt { color: #a33; }
.leave-cell { background: #fdecea; color: #c62828; font-weight: 600; text-align: center; }
.leave-cell .rest-label { color: #c62828; }
.sched-info li.jump, .room-foot li.jump { cursor: pointer; border-radius: 4px; padding: 1px 4px; margin-left: -4px; }
.sched-info li.jump:hover, .room-foot li.jump:hover { background: var(--accent-soft); text-decoration: underline; }
@keyframes cellflash { 0%, 60% { box-shadow: inset 0 0 0 3px #e8a317; } 100% { box-shadow: none; } }
td.flash { animation: cellflash 1.6s ease-out; }
/* 场控表 / 主播表横向很长时，左边的名字 / 时段列固定不动 */
.sched-wrap .sched.roster th.who, .sched-wrap .sched.roster th.room-cell { position: sticky; left: 0; z-index: 3; }
.sched-wrap .sched.roster tfoot th { position: sticky; left: 0; z-index: 3; background: inherit; }
.sched-wrap .sched.anchor tbody th, .sched-wrap .sched.anchor thead tr.r-dates th:first-child { position: sticky; left: 0; z-index: 3; }
.sched-wrap .sched.anchor tbody th.slot { background: var(--surface, #fff); }
.quick-in { position: fixed; z-index: 60; box-sizing: border-box; border: 0; padding: 0 8px; font-size: 14px; background: transparent; outline: none; opacity: 0; pointer-events: none; caret-color: transparent; }
.quick-in.on { opacity: 1; pointer-events: auto; caret-color: auto; border: 2px solid #2f6fd6; border-radius: 3px; background: #fff; box-shadow: 0 4px 14px #0002; }

/* 名字对照 */
.nm-table td { vertical-align: middle; }
.nm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nm-pick .input { width: 180px; }
.nm-pick .chip.small { padding: 2px 9px; font-size: 12px; }
.nm-done { margin-top: 14px; }
.nm-done > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.nm-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
/* 查找替换 */
.fr-form { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.fr-form .seg { justify-self: start; }
.fr-list { max-height: 300px; overflow: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; }
.fr-list table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.fr-list td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.fr-list del { color: var(--down); } .fr-list ins { color: var(--up); text-decoration: none; font-weight: 600; }
/* 个人档案：搜主播（简称、别名也能搜到） */
.host-find { position: relative; }
.host-sug { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 280px; max-height: 340px; overflow: auto; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px; }
.host-sug button { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none; border-radius: 7px; cursor: pointer; font: inherit; color: inherit; }
.host-sug button small { color: var(--muted); font-size: 12px; }
.host-sug button span { margin-left: auto; color: var(--muted); font-size: 12px; }
.host-sug button.on, .host-sug button:hover { background: var(--line-soft); }
.host-sug p { padding: 8px 10px; margin: 0; }

/* ---------- 采购 ---------- */
.pur-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.pur-stats b { color: var(--accent-ink); font-size: 15px; }
.pur-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 14px; }
.pur-filter .search-box { width: 260px; min-height: 32px; }
.pur-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.pur-col { background: #f8f3f6; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px; min-height: 120px; }
.pur-col > header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-size: 13px; font-weight: 600; color: #5d4652; }
.pur-col > header small { font-weight: 500; color: var(--faint); background: #fff; border-radius: 10px; padding: 0 8px; }
.pur-col-body { display: grid; gap: 8px; }
.pur-none { text-align: center; padding: 10px 0; }
.pur-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; display: grid; gap: 5px; cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.pur-card:hover, .pur-card:focus-visible { border-color: #d6c3ce; box-shadow: 0 4px 14px #4a18300f; outline: none; }
.pur-card.urgent { border-left: 3px solid var(--danger); }
.pur-card.late { background: #fff8f8; }
.pur-card-top { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; }
.pur-card-top b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pur-amt { font-size: 12.5px; color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.pur-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #6f5b66; }
.pur-card-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pur-closed { margin-top: 14px; }
.pur-done { margin-top: 18px; }
.pur-done h3 { font-size: 13px; font-weight: 600; color: #5d4652; margin-bottom: 10px; }
.pur-done-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pur-closed summary { cursor: pointer; color: var(--muted); }
.pur-closed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; opacity: .8; }
.pur-detail { display: grid; gap: 12px; }
.pur-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pur-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: #faf5f8; border-radius: 10px; }
.pur-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.pur-sec { margin-bottom: 12px; }
.pur-sec h3, .pur-log h3 { font-size: 12.5px; font-weight: 600; color: #8a2f57; margin-bottom: 6px; }
.pur-kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--line-soft); }
.pur-kv > span { color: var(--faint); font-size: 12px; }
.pur-kv > div { overflow-wrap: anywhere; white-space: pre-wrap; }
.pur-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow: auto; font-size: 12.5px; }
.pur-log li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 6px; padding-left: 10px; border-left: 2px solid #ead9e3; }
.pur-log time { color: var(--faint); white-space: nowrap; }
.pur-log li span { overflow-wrap: anywhere; }
.pur-comment { display: grid; gap: 6px; margin-top: 10px; }
.pur-comment textarea { min-height: 60px; }
.pur-comment button { justify-self: end; }
.pur-imgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px dashed #dccad5; border-radius: 8px; }
.pur-imgs:focus-within, .pur-imgs:hover { border-color: #c9a9bb; }
.pur-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.pur-thumb { position: relative; }
.pur-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.pur-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #4a1830; color: #fff; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
.form-grid.wide { grid-column: 1 / -1; }
.pur-rtable td, .pur-rtable th { white-space: nowrap; }
@media (max-width: 760px) {
  .pur-cols { grid-template-columns: 1fr; }
  .pur-board { grid-auto-columns: minmax(78vw, 1fr); }
  .pur-filter .search-box { width: 100%; }
}

/* ---------- 中文日历（datepick.js） ---------- */
.dp-input { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a08e98' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px !important; }
.dp-hint { color: var(--faint); font-size: 11.5px; font-weight: 400; min-height: 0; }
.dp-hint:empty { display: none; }
.dp-pop { position: fixed; z-index: 300; width: 296px; padding: 14px 14px 10px; background: #fff; border: 1px solid #e8dde3; border-radius: 12px; box-shadow: 0 14px 40px #2b142026; font-size: 13.5px; user-select: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { border: 0; background: none; font-size: 16px; font-weight: 600; color: #2b1b23; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.dp-title:hover { background: #f6eef2; }
.dp-caret { font-size: 11px; color: #8c7380; margin-left: 2px; }
.dp-nav { display: flex; gap: 4px; }
.dp-nav button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; font-size: 20px; line-height: 1; color: #6b5a63; cursor: pointer; }
.dp-nav button:hover { background: #f6eef2; }
.dp-week, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.dp-week span { padding: 6px 0; color: #9a8b93; font-size: 12.5px; }
.dp-days button { width: 34px; height: 34px; margin: 2px auto; border: 1.5px solid transparent; border-radius: 50%; background: none; font-size: 14px; color: #2b1b23; cursor: pointer; padding: 0; }
.dp-days button:hover { background: #f6eef2; }
.dp-days button.out { color: #b7aab1; }
.dp-days button.today { border-color: var(--accent); color: var(--accent); }
.dp-days button.sel { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.dp-days button.off { color: #d9d0d5; cursor: not-allowed; background: none; }
.dp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 0 8px; }
.dp-months button { padding: 10px 0; border: 1px solid #efe5ea; border-radius: 8px; background: #fff; cursor: pointer; color: #4a3a42; }
.dp-months button.on, .dp-months button:hover { background: var(--accent-soft); border-color: #d9bfcc; color: var(--accent-ink); }
.dp-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f2eaee; }
.dp-foot button { border: 1px solid #ecdfe6; background: #fff; border-radius: 6px; padding: 3px 9px; font-size: 12px; color: #6b5a63; cursor: pointer; }
.dp-foot button:hover { border-color: #d6c3ce; color: var(--accent-ink); }
.dp-foot button:disabled { opacity: .4; cursor: not-allowed; }
.dp-foot .dp-clear { margin-left: auto; }
/* 采购统计 */
.pur-stat { margin-bottom: 16px; }
.pur-stat .panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pur-stat .panel-head h2 { font-size: 15px; font-weight: 600; }
.pur-stat .panel-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pur-stable td, .pur-stable th { white-space: nowrap; text-align: right; }
.pur-stable td:first-child, .pur-stable th:first-child { text-align: left; }
.pur-stable tbody tr[data-sroom], .pur-stable tbody tr[data-spayer] { cursor: pointer; }
.pur-stable tbody tr.on td { background: var(--accent-soft); }
.pur-stable tr.pur-total td { border-top: 2px solid #e4d3dc; background: #fbf6f9; }
.pur-range { display: inline-flex; align-items: center; gap: 6px; }
.pur-range .input { width: 150px; }

/* 搜索框：一句话预约妆造 */
.book-card { border: 1px solid #e6d5df; border-radius: 14px; background: #fff; padding: 20px 22px; display: grid; gap: 14px; box-shadow: 0 8px 30px #4a18300d; }
.book-card header { display: flex; gap: 12px; align-items: flex-start; }
.book-card header > div { flex: 1; min-width: 0; }
.book-card h2 { font-size: 16px; font-weight: 600; color: #3f1d2c; }
.book-card header p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.book-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.book-ico.ok { background: var(--ok-soft); color: var(--ok); }
.book-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: #faf4f7; font-size: 13.5px; color: #5d4652; }
.book-sum b { font-size: 15px; color: var(--accent-ink); }
.book-notes { margin: 0; padding-left: 18px; font-size: 12.5px; color: #8a6f7d; line-height: 1.8; }
.book-form .book-time { grid-template-columns: 1fr 1fr; gap: 10px; }
.book-free { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.book-free .chip { padding: 3px 9px; }
.book-card footer { display: flex; gap: 8px; flex-wrap: wrap; }
.book-card.done header p b { color: var(--accent-ink); }
@media (max-width: 760px) { .book-card header { flex-wrap: wrap; } }
/* 一句话给排班换人 */
.swap-list { display: grid; gap: 6px; }
.swap-opt { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.swap-opt.on { border-color: #cfa9bd; background: var(--accent-soft); }
.swap-opt input { accent-color: var(--accent); }
.swap-out, .swap-time { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.swap-time .input { width: 96px; }
.swap-preview { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #faf4f7; font-size: 13.5px; }
.swap-preview p { margin: 3px 0; }
.swap-preview .swap-new { color: var(--accent-ink); font-weight: 600; }
.swap-arrow { font-size: 20px; color: #b58aa0; }
@media (max-width: 760px) { .swap-preview { grid-template-columns: 1fr; } .swap-arrow { transform: rotate(90deg); justify-self: start; } }
/* 提前提醒设置 */
.rem-kind { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.rem-head { display: flex; gap: 10px; align-items: center; }
.rem-custom { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rem-custom .input { width: 80px; }
.fit-seg .fit-part { display: inline-block; margin-left: 4px; font-size: 11px; color: var(--muted); }
.node-when .fit-part { margin: 0 4px; font-size: 11px; color: var(--muted); }
/* 妆造：要不要通知伙伴 */
.sn-list { display: grid; gap: 6px; }
.sn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line, #eadfe5); border-radius: 8px; }
.sn-row.off { opacity: .65; }
/* 飞书设置：状态、谁能收到、折叠的设置 */
.fs-status { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); }
.fs-status.ok { background: var(--ok-soft); color: var(--ok); }
.fs-status .small-text { color: var(--ink, #3a2a33); }
.fs-who { display: grid; gap: 10px; }
.fs-who > div { padding: 10px 12px; border: 1px solid var(--line, #eadfe5); border-radius: 8px; line-height: 1.7; }
.fs-who small { display: block; }
.fs-who .button { margin-top: 6px; }
.fs-more { border: 1px solid var(--line, #eadfe5); border-radius: 8px; padding: 10px 12px; }
.fs-more > summary { cursor: pointer; }
.fs-more[open] > summary { margin-bottom: 10px; }
.fs-more > * + * { margin-top: 10px; }
.feishu-bind-btn { display: block; margin-top: 4px; padding: 0; }
/* 排班表上方：通知条 */
.nstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 14px; border-radius: 8px; background: #f7f2f5; border: 1px solid var(--line, #eadfe5); }
.nstrip.warn { background: var(--warn-soft); border-color: transparent; }
.nstrip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; padding: 6px 14px; }
.nstrip small { display: block; color: var(--muted, #806876); }
.fs-check { padding: 10px 12px; border: 1px dashed var(--line, #eadfe5); border-radius: 8px; }
.fs-check .row { gap: 8px; flex-wrap: wrap; align-items: center; }
.fs-steps { margin: 10px 0 6px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.fs-steps li { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 6px 10px; border-radius: 6px; background: var(--ok-soft); }
.fs-steps li.bad { background: var(--warn-soft); }
.fs-steps li.ok b { color: var(--ok); } .fs-steps li.bad b { color: var(--warn); }
/* 通知选人 */
.pick-bar { gap: 6px; align-items: center; }
.pick-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 320px; overflow: auto; }
.sn-list { max-height: 360px; overflow: auto; }
.sn-detail { flex-basis: 100%; padding-left: 26px; }
.pick-more .input { width: 100%; }
/* 网速测试 */
.speed-res { display: flex; gap: 24px; margin: 8px 0; }
.speed-res div { display: grid; }
.speed-res b { font-size: 28px; line-height: 1.1; }
.speed-res span { color: var(--muted, #806876); font-size: 12px; }
.speed-verdict { padding-left: 18px; display: grid; gap: 4px; }
/* 谁管哪一块 */
.org-list { display: grid; gap: 8px; margin-bottom: 14px; }
.org-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line, #eadfe5); border-radius: 8px; }
.org-name { display: grid; gap: 2px; }
.org-people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.org-people .chip { display: inline-flex; align-items: center; gap: 4px; }
.chip-x { border: 0; background: none; cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; color: inherit; opacity: .7; }
.org-people select { width: auto; min-width: 140px; }
@media (max-width: 720px) { .org-row { grid-template-columns: 1fr; } }
/* 采购：快递进度 */
.ship-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ship-pick label { cursor: pointer; }
.ship-pick label:has(input:checked) { background: var(--accent, #6b2a45); color: #fff; border-color: transparent; }
.ship-steps { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ship-steps span { padding: 1px 8px; border-radius: 10px; background: #f1ecef; color: #9a8b93; font-size: 12px; }
.ship-steps span.on { background: var(--ok-soft); color: var(--ok); }
.fs-groups { display: grid; gap: 8px; }
.fs-grow { display: grid; grid-template-columns: 90px 2fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 720px) { .fs-grow { grid-template-columns: 1fr; } }
/* 待办铃铛 + 弹出提醒 */
.bell-wrap { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.bell-btn { position: relative; }
.bell-btn.urgent { color: var(--warn); }
.bell-n { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger, #c0392b); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.bell-panel { position: fixed; z-index: 60; width: min(420px, calc(100vw - 16px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line, #eadfe5); border-radius: 12px; box-shadow: 0 12px 40px rgba(40, 20, 30, .18); overflow: hidden; }
.bell-panel header, .bell-panel footer { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft, #f1eaee); }
.bell-panel footer { border-bottom: 0; border-top: 1px solid var(--line-soft, #f1eaee); font-size: 13px; }
.bell-panel ul { list-style: none; margin: 0; padding: 0 14px; overflow: auto; }
.bell-panel li.todo { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft, #f1eaee); }
.bell-panel li.todo a { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 9px 0; color: inherit; text-decoration: none; }
.bell-panel .lv, .todo-pop .lv { flex-shrink: 0; margin-top: 2px; padding: 1px 7px; border-radius: 4px; font-size: 11px; background: var(--accent-soft); color: var(--accent-ink); height: fit-content; }
.bell-panel li.todo.warn .lv { background: var(--warn-soft); color: var(--warn); }
.bell-panel li.todo.danger .lv { background: var(--danger-soft); color: var(--danger); }
.bell-panel .t { display: grid; gap: 1px; min-width: 0; }
.bell-panel .t b { font-weight: 500; font-size: 13px; }
.bell-panel .t small { color: var(--muted, #806876); }
.bell-none { padding: 18px 14px; }
.todo-pops { position: fixed; z-index: 70; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.todo-pop { background: var(--surface, #fff); border: 1px solid var(--line, #eadfe5); border-left: 4px solid var(--accent, #6b2a45); border-radius: 10px; box-shadow: 0 10px 30px rgba(40, 20, 30, .2); padding: 10px 12px; display: grid; gap: 6px; animation: popin .25s ease-out; }
.todo-pop.warn { border-left-color: var(--warn); }
.todo-pop.danger { border-left-color: var(--danger); }
.todo-pop header { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.todo-pop-body { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.todo-pop-body b { font-weight: 500; }
.todo-pop-body small { color: var(--muted, #806876); }
.todo-pop footer { display: flex; justify-content: flex-end; gap: 6px; }
@keyframes popin { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
/* 刚打的字：还在保存的格子先显示出来（淡蓝色），存好后换成正式内容 */
table.grid td.pending { position: relative; }
table.grid td.pending > .pend { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0 4px; background: #eaf2ff; color: #1d4ed8; font-size: 13px; white-space: pre-wrap; overflow: hidden; pointer-events: none; }
/* 排班工具栏：不常用的收进“更多” */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; left: 0; top: calc(100% + 4px); z-index: 80; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--line, #e3dde3); border-radius: 10px; box-shadow: 0 10px 28px #0002; }
.more-pop .button { justify-content: flex-start; width: 100%; }
.kb-hint { cursor: help; }
/* 主播表：每个时段至少这么高，合并的格子旁边的时段名不会挤在一起 */
table.sched.anchor tbody tr { height: 34px; }
/* 通知条压成一行：名字太长时省略，按钮靠右 */
.nstrip.one { flex-wrap: nowrap; gap: 8px; padding: 6px 8px 6px 12px; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.nstrip.one > svg { flex: none; }
.nstrip.one > b { flex: none; }
.nstrip.one .ns-names { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted, #806876); }
.nstrip.one .link-btn, .nstrip.one .button { flex: none; }
.nstrip.one .ns-names + .link-btn, .nstrip.one .ns-names + .button { margin-left: 4px; }
@media (max-width: 560px) { .nstrip.one > b + .link-btn, .nstrip.one > b + .ns-names + .link-btn, .nstrip.one > b + .ns-names + .button { margin-left: auto; } }
@media (max-width: 560px) { .nstrip.one { gap: 6px; padding: 5px 6px 5px 10px; } .nstrip.one .ns-names { display: none; } }
/* 直播间负责人：每行名字下面一个不显眼的“删除”（鼠标放上去才变红） */
.org-name .org-del { display: block; justify-self: start; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--faint, #b3a6ae); font-size: 12px; cursor: pointer; text-align: left; }
.org-name .org-del:hover, .org-name .org-del:focus-visible { color: var(--danger, #c92a2a); text-decoration: underline; }
.nstrip.bad { background: #fdecea; border-color: #f3c2bd; color: #8a1f17; }
.nstrip.bad .ns-names { color: #a8463d; }
.nstrip.bad.one { flex-wrap: wrap; white-space: normal; }
/* 每月应上班天数 */
.mw-list { display: grid; gap: 6px; }
.mw-row { display: grid; grid-template-columns: 1fr 130px auto; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line, #eadfe5); border-radius: 8px; }
.mw-row.on { border-color: #c98fb0; background: #fbf3f7; }
.mw-row small { margin-left: 6px; }
.hours-h .mw-h { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted, #806876); }
.nn-like { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nn-like .chip.on { background: #2f6fd6; color: #fff; border-color: #2f6fd6; }
.nn-row small { display: block; }
/* 知识库定期核查 */
.check-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; padding: 8px 12px; border: 1px solid var(--line, #eadfe5); border-radius: 10px; background: #f8f6f8; font-size: 13.5px; }
.check-box.due { background: var(--warn-soft, #fdf3dc); border-color: transparent; }
.check-box > span small { display: block; margin-top: 2px; }
.check-box .spacer { flex: 1; }
/* 资料移动到其他分类 */
.move-list { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; border: 1px solid var(--line, #eadfe5); border-radius: 8px; }
.move-item { text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line-soft, #f1eaee); background: #fff; font: inherit; cursor: pointer; white-space: pre; }
.move-item:hover { background: #f8f3f6; }
.move-item.on { background: #7a2e4f; color: #fff; }
.move-item.here small { color: var(--muted, #806876); margin-left: 6px; }
.move-item.on small { color: #f3dbe6; }
.cat-filter { gap: 8px; align-items: center; margin: 0 0 10px; }
/* 休假日历（人在左、日期横排，和团队原来的 Excel 一样） */
table.leave-cal { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
table.leave-cal th, table.leave-cal td { border-width: 0 1px 1px 0 !important; }
table.leave-cal tr > :first-child { border-left-width: 1px !important; }
table.leave-cal thead tr:first-child th { border-top-width: 1px !important; }
table.leave-cal th, table.leave-cal td { border: 1px solid #c9c2cf; text-align: center; padding: 0; height: 40px; }
table.leave-cal .lv-title th { background: #c9d8ff; font-size: 20px; font-weight: 700; height: 48px; }
table.leave-cal .lv-name { width: 110px; position: sticky; left: 0; z-index: 2; background: #fff; font-size: 15px; font-weight: 700; }
table.leave-cal .lv-name small { display: block; font-size: 10.5px; font-weight: 500; margin: 2px auto 0; width: fit-content; }
table.leave-cal .lv-dates th { font-weight: 600; background: #fff; }
table.leave-cal .lv-dates th.can { cursor: pointer; }
table.leave-cal .lv-dates th.can:hover { background: #f4eef2; }
table.leave-cal th i { display: block; font-style: normal; font-size: 10px; color: #c92a2a; }
table.leave-cal .lv-week th { font-weight: 500; font-size: 12px; background: #fff; }
table.leave-cal .lv-week th.weekend { color: #e03131; }
table.leave-cal th.today, table.leave-cal td.today { background: #fff7c2; }
table.leave-cal .lv-group th { background: #f3eef2; text-align: left; padding: 4px 10px; font-size: 12.5px; color: var(--muted, #806876); height: 26px; }
table.leave-cal td.no, table.leave-cal th.no { background: repeating-linear-gradient(135deg, #f1f1f1 0 6px, #e4e4e4 6px 12px); }
table.leave-cal td.can { cursor: pointer; }
table.leave-cal td.can:hover { box-shadow: inset 0 0 0 2px #2f6fd6; }
table.leave-cal tr.me .lv-name { background: #eef6ff; }
.lv-chip { display: inline-block; padding: 1px 7px; margin: 1px; border-radius: 10px; font-size: 12px; line-height: 18px; white-space: nowrap; }
.lv-chip.rest { background: #c6e264; color: #2b3b00; font-weight: 600; }
.lv-chip.wait { background: #ffe08a; color: #6b4b00; font-weight: 600; }
.lv-chip.ot { background: #d5e6ff; color: #1d4ed8; }
.lv-chip.leave { background: #e0e0e0; color: #444; }
.lv-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.lv-legend .spacer { flex: 1; }
.lv-no-demo { display: inline-block; width: 22px; height: 14px; border: 1px solid #ccc; background: repeating-linear-gradient(135deg, #f1f1f1 0 4px, #e4e4e4 4px 8px); vertical-align: middle; }
.lv-req.pending { background: #fffaf0; }
.lv-req small { display: block; }
table.leave-cal th.lv-name.can { cursor: pointer; }
table.leave-cal th.lv-name.can:hover { background: #f4eef2; text-decoration: underline dotted; }
table.leave-cal .lv-gh { display: flex; align-items: center; gap: 12px; position: sticky; left: 10px; width: max-content; }
.lv-tip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #f8f3f6; }
.lv-rules summary { cursor: pointer; color: var(--accent, #7a2e4f); }
.lv-rules[open] { flex-basis: 100%; }
.lv-hist { margin-top: 10px; }
.lv-hist summary { cursor: pointer; color: var(--muted, #806876); }
table.leave-cal .lv-name .lv-cnt { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted, #806876); margin-top: 2px; }
table.leave-cal .lv-name .lv-cnt.over { color: #c92a2a; font-weight: 700; }

/* 场控表：全职 / 兼职分组、名字和备注分开显示 */
table.roster tr.grp-row th, table.roster tr.grp-row td { height: auto; padding: 3px 8px; background: #f1f3f5; font-size: 12px; font-weight: 600; color: #495057; text-align: left; border-top: 2px solid #adb5bd; }
table.roster tr.grp-row.part th, table.roster tr.grp-row.part td { background: #f3effc; }
table.roster tr.grp-row td .faint { font-weight: 400; }
table.roster .rshift .rt { white-space: nowrap; }
table.roster .rshift .rn { font-weight: 700; margin-left: 2px; }
table.roster .rshift small.rnote { display: block; font-size: 11px; color: #6b7078; font-weight: 400; line-height: 1.2; margin-top: 1px; }
table.roster th.who .who-tag { display: block; font-size: 10.5px; font-weight: 500; color: #7048e8; }
.ctl-bar .ctl-warn { color: #b35c00; display: inline-flex; align-items: center; gap: 3px; }
.ctl-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: #f8f9fa; border-radius: 8px; margin-bottom: 10px; }
.ctl-add [data-addname] { width: 160px; }
.ctl-filter { margin-bottom: 8px; gap: 10px; }
.ctl-table td { vertical-align: middle; }
.ctl-table .ctl-rooms { gap: 4px; }
.ctl-table td small { display: block; }
.ctl-table tr.left td { opacity: .55; }
.ctl-org { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ctl-room { border: 1px solid var(--line, #e3e4e8); border-radius: 10px; padding: 10px 12px; }
.ctl-room h3 { font-size: 16px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.ctl-room h3 small { font-size: 12px; font-weight: 400; }
.ctl-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.ctl-line > b { font-size: 12px; color: #6b7078; width: 30px; }
.ctl-member { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 12px; background: #eef2ff; font-size: 13px; }
.ctl-member.paused { background: #f1f3f5; color: #868e96; }
.ctl-member small { font-size: 10.5px; }
.cl-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.cl-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line, #e3e4e8); border-radius: 8px; }
.cl-raw b { display: block; font-size: 14px; }
.cl-raw small { display: block; font-size: 11.5px; }
.cl-raw .cl-why { color: #b35c00; }
.cl-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cl-act > span { display: inline-flex; gap: 6px; align-items: center; }
.cl-act > span[hidden] { display: none; }
.cl-act input.small { width: 120px; }
.cl-act .cl-n input.small { width: 180px; }
@media (max-width: 640px) { .cl-row { grid-template-columns: 1fr; } }
/* 休假日历：格子底色 */
.lv-fills { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 8px 6px; max-width: 220px; }
.lv-fills.big { max-width: none; gap: 6px; padding: 0; }
.lv-sw { width: 22px; height: 22px; border-radius: 5px; border: 1px solid #0000002a !important; padding: 0 !important; cursor: pointer; }
.lv-fills.big .lv-sw { width: 30px; height: 30px; }
.lv-sw.on { box-shadow: 0 0 0 2px var(--accent, #1c7ed6); }
.lv-sw.none { background: #fff; color: #868e96; font-size: 13px; line-height: 1; }
.ctx-menu .lv-sw { width: 22px; min-width: 0; }
.ctl-table .seg { flex-wrap: nowrap; }
.ctl-table .seg button { white-space: nowrap; padding: 3px 9px; }
.ctl-table [data-f=name] { width: 84px; }
.ctl-table [data-f=note] { width: 120px; }
.ctl-table select.input.small { max-width: 132px; }
.ctl-table .ctl-rooms { display: flex; flex-wrap: wrap; gap: 4px; min-width: 160px; }
.ctl-table .ctl-rooms .chip { padding: 2px 8px; }
.ctl-table select.input.small { max-width: 116px; }
.ctl-table [data-f=note] { width: 104px; }
.who-can { margin-top: 10px; padding: 8px 10px; background: #f8f9fa; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
/* 场控库：筛选、批量、可能认错 / 重复、删除 */
.ctl-table th.ck, .ctl-table td.ck { width: 30px; text-align: center; padding-left: 6px; padding-right: 0; }
.ctl-table tr.picked td { background: #eef4ff; }
.ctl-table tr.bad td { background: #fff8f0; }
.ctl-table tr.bad.picked td { background: #eef4ff; }
.ctl-table small.ctl-bad { display: block; color: #c2410c; font-size: 11.5px; margin-top: 3px; max-width: 220px; white-space: normal; }
.ctl-table small.ctl-dup { display: block; color: #9a6700; font-size: 11.5px; margin-top: 3px; max-width: 240px; white-space: normal; }
.ctl-table small.ctl-dup .link-btn { font-size: 11.5px; margin-left: 4px; }
.chip.warnchip { border-color: #f0b46a; color: #9a4a00; background: #fff6ea; }
.chip.warnchip.on { background: #c2410c; border-color: #c2410c; color: #fff; }
.ctl-flags { margin-bottom: 8px; }
.ctl-bulk { position: sticky; bottom: -1px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; background: #1f2328; color: #fff; border-radius: 10px; box-shadow: 0 6px 20px #0003; }
.ctl-bulk .button.secondary, .ctl-bulk .button.ghost { background: #ffffff1a; color: #fff; border-color: #ffffff33; }
.ctl-member { position: relative; }
.ctl-member .ctl-x { border: 0; background: transparent; color: #868e96; font-size: 15px; line-height: 1; padding: 0 0 0 4px; cursor: pointer; }
.ctl-member .ctl-x:hover { color: #c92a2a; }
.ctl-room .ctl-addsel { margin-top: 4px; width: 100%; max-width: 240px; }
.ctl-room.warn { border-color: #f0b46a; background: #fffaf2; }
.ctl-opt { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #e3e4e8); border-radius: 8px; cursor: pointer; }
.ctl-opt:has(input:checked) { border-color: var(--accent, #6b2737); background: #fbf3f5; }
.ctl-opt b { display: block; }
.ctl-opt small { display: block; color: #6b7078; font-size: 12px; margin-top: 2px; }
.ctl-opt select { margin-top: 6px; }
.ctl-warnbtn { color: #9a4a00 !important; border-color: #f0b46a !important; background: #fff6ea !important; }
.ctl-table td.c-name { min-width: 180px; }
.ctl-table td.c-name [data-f=name] { width: 100px; }
.ctl-table td.c-rooms { min-width: 168px; }
.ctl-table td.c-shifts { white-space: nowrap; }
.ctl-table td.c-shifts small { display: block; }
.ctl-member.flag { background: #fff1e0; color: #9a4a00; }
.ctl-member .ctl-fix { border: 0; background: transparent; color: #c2410c; padding: 0 3px 0 0; cursor: pointer; font-size: 12px; }

/* 休假日历（像 Excel）：顶部工具栏、冻结日期行和名字列、选中框 */
.lv-toolbar { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding: 6px 8px; margin-bottom: 10px; background: #f7f7f9; border: 1px solid var(--line, #e3e4e8); border-radius: 10px; }
.lv-toolbar .tb-group { display: flex; align-items: center; gap: 2px; padding-right: 8px; margin-right: 4px; border-right: 1px solid #dcdde2; }
.lv-toolbar .tb-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 44px; height: 44px; padding: 2px 6px; border: 0; border-radius: 6px; background: transparent; color: #343a40; font-size: 11.5px; cursor: pointer; }
.lv-toolbar .tb-btn:hover:not(:disabled) { background: #e9ecef; }
.lv-toolbar .tb-btn:disabled { color: #b5b9be; cursor: default; }
.lv-toolbar .tb-btn.on { background: #dbe4ff; color: #1c4fbf; }
.lv-toolbar .tb-btn.tb-b b { font-size: 17px; font-family: Georgia, serif; }
.lv-toolbar .tb-btn[data-tb=fc], .lv-toolbar .tb-btn[data-tb=bg] { flex-direction: row; gap: 2px; min-width: 40px; font-size: 10px; }
.lv-toolbar .tb-a { display: inline-flex; flex-direction: column; align-items: center; font-size: 16px; font-weight: 600; line-height: 1; }
.lv-toolbar .tb-a i, .lv-toolbar .tb-fill i { display: block; width: 18px; height: 4px; margin-top: 2px; border-radius: 1px; }
.lv-toolbar .tb-fill { display: inline-flex; flex-direction: column; align-items: center; }
.lv-toolbar .tb-fill::before { content: ''; width: 14px; height: 12px; border: 2px solid #343a40; border-radius: 2px 2px 4px 4px; }
.lv-toolbar .chip-row { gap: 4px; }
.lv-toolbar .wk { min-width: 84px; text-align: center; font-size: 14px; }
.lv-wrap { max-height: calc(100vh - 230px); overflow: auto; border-radius: 8px; }
.lv-wrap.all { max-height: none; }
.lv-sheet + .lv-sheet { margin-top: 14px; }
table.leave-cal thead .lv-dates th { position: sticky; top: 0; z-index: 3; }
table.leave-cal thead .lv-week th { position: sticky; top: 40px; z-index: 3; }
table.leave-cal thead th.lv-name { z-index: 5; }
.lv-wrap.all table.leave-cal thead th { position: static; }
.lv-wrap.all table.leave-cal thead th.lv-name, .lv-wrap.all table.leave-cal tbody th.lv-name { position: sticky; left: 0; }
table.leave-cal [data-r] { cursor: cell; user-select: none; }
table.leave-cal .lv-sel { box-shadow: inset 0 0 0 9999px #1c7ed61f; }
table.leave-cal .lv-sel-a { outline: 2px solid #1c7ed6; outline-offset: -2px; }
table.leave-cal td.gone { background: repeating-linear-gradient(135deg, #f8f9fa 0 6px, #eceff1 6px 12px); }
.lv-chip.mark { background: #495057; color: #fff; }
.lv-menu { min-width: 150px; }
.lv-menu .lv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px 2px; }
.lv-menu .lv-opt { justify-content: center !important; font-weight: 600; border: 1px solid var(--line, #e3e4e8) !important; }
.lv-menu .lv-opt.rest { background: #f1f8dd; }
.lv-menu .lv-opt.ot { background: #eef4ff; }
.lv-menu .lv-opt.quit, .lv-menu .lv-opt.transfer { background: #f1f3f5; }
.lv-menu .lv-more { border-top: 1px solid var(--line, #e3e4e8); margin-top: 4px; padding-top: 4px; display: flex; flex-direction: column; }
.lv-menu .lv-more button { font-size: 12px; color: #6b7078; }
.lv-pal { padding: 8px; }
.lv-pal .lv-fills { max-width: 240px; padding: 0 0 6px; }
.lv-pal > button { justify-content: center !important; font-size: 12px; }
.ctl-table .ctl-fixes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ctl-table .ctl-fixes .button { padding: 2px 8px; font-size: 12px; min-height: 0; }
.ctl-table small.ctl-dup .link-btn.faint { color: #868e96; }
.ctl-tag { display: inline-block; margin-top: 3px; background: #f3d9fa; color: #862e9c; }
.cl-who { font-size: 12px; color: #9a4a00; }
/* 采购统计：筛选、总采购负责人、多维表格 */
.pur-sfilter select.input { width: auto; min-width: 120px; }
.pur-chief { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--line-soft); margin-bottom: 14px; }
.pur-chief.warn { background: #fdf1e3; color: #8a5a14; }
.pur-exp { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pur-gtools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 12px; }
.pur-gtools select.input { width: auto; margin-left: 6px; }
.pur-gtable td, .pur-gtable th { white-space: nowrap; }
.pur-gtable td.num { text-align: right; }
.pur-gtable tr.pur-ghead td { background: #fbf6f9; cursor: pointer; border-top: 2px solid #ecdfe6; }
.pur-gtable tr.pur-ghead td > * { margin-right: 10px; }
.pur-gcaret { display: inline-block; width: 14px; color: var(--muted); }
.pur-gtable tfoot td { border-top: 2px solid #e4d3dc; background: #fbf6f9; }
.tag.warn { background: #fdf1e3; color: #8a5a14; }
