:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #e4e9f1;
  --line-strong: #d7dee9;
  --text: #172033;
  --muted: #778196;
  --navy: #111827;
  --blue: #4f7cff;
  --blue-strong: #3868ef;
  --blue-soft: #eef4ff;
  --violet: #7c5cff;
  --amber: #e3a128;
  --cyan: #24a9c8;
  --green: #2aaa78;
  --pink: #d96393;
  --danger: #e75c68;
  --shadow: 0 10px 30px rgba(28, 41, 63, .07);
  --radius: 14px;
  --el-color-primary: #4f7cff;
  --el-border-radius-base: 8px;
  --el-font-size-base: 15px;
  --el-font-size-small: 14px;
  --el-font-size-extra-small: 13px;
  --el-font-size-medium: 17px;
  --el-font-size-large: 19px;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
a { color: var(--blue); cursor: pointer; text-decoration: none; }
.small { font-size: 14px; }.muted { color: var(--muted); }.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8b96a9; font-weight: 800; }
.hidden-file-input { display: none; }

/* Element Plus density */
.el-button { min-height: 32px; padding: 6px 12px; font-weight: 600; }
.el-button--small { min-height: 28px; padding: 4px 9px; }
.el-input__wrapper, .el-select__wrapper { min-height: 32px; box-shadow: 0 0 0 1px var(--line-strong) inset !important; }
.el-input-group__prepend { padding: 0 10px; color: #7a8496; background: #f7f9fc; }
.el-dialog { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 80px rgba(21, 31, 51, .22); }
.el-dialog__header { padding: 16px 18px 10px; margin: 0; }.el-dialog__body { padding: 12px 18px 16px; }.el-dialog__footer { padding: 10px 18px 16px; }
.el-drawer__header { margin-bottom: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }.el-drawer__body { padding: 16px; background: #f8fafc; }
.el-dropdown-menu__item { font-size: 14px; }
.el-progress-bar__outer { background: #eaf0f8; }
.el-segmented { --el-segmented-bg-color: #eef2f7; --el-segmented-item-selected-bg-color: #fff; }

.app-shell { min-height: 100vh; }
.panel-v2 { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(25, 38, 61, .025); }

/* Dashboard */
.topbar { height: 58px; padding: 0 24px; display: flex; align-items: center; background: #101827; color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16px; }.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg,#5d84ff,#7659f3); box-shadow: 0 8px 22px rgba(79,124,255,.3); }.brand-sub { margin-left: 7px; color: #8f9aae; font-size: 12px; font-weight: 500; }.topbar-spacer{flex:1}
.page-container { max-width: 1480px; margin: 0 auto; padding: 26px 28px 50px; }.page-title { margin: 0; font-size: 26px; }.page-desc { margin: 6px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 20px 0; }.metric-card { background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 17px;box-shadow:0 4px 18px rgba(35,48,72,.035)}.metric-label{font-size: 13px;color:var(--muted);font-weight:700}.metric-value{font-size: 27px;font-weight:800;margin-top:6px}
.project-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px }.project-card { position:relative; padding:18px; cursor:pointer; transition:.2s ease; }.project-card:hover{transform:translateY(-2px);border-color:#cfd9f3;box-shadow:var(--shadow)}.project-card-actions{position:absolute;right:10px;top:10px;display:flex}.project-card h3{margin:14px 0 6px;font-size: 19px}.project-card p{margin:0;min-height:38px;color:var(--muted);line-height:1.55}.card-tags{display:flex;gap:6px;padding-right:70px}.project-card-footer{display:flex;gap:14px;margin-top:15px;padding-top:12px;border-top:1px solid var(--line);font-size: 13px;color:#596579}.empty-state{padding:60px;text-align:center;color:var(--muted)}.empty-state h3{color:var(--text)}
.dashboard-logout.el-button.is-text { color:#d5dbea !important; }.dashboard-logout.el-button.is-text:hover { color:#fff !important; background:rgba(255,255,255,.09) !important; }

/* Workspace chrome */
.workspace-v2 { background: #f2f5fa; }
.workspace-topbar { height: 54px; padding: 0 18px; display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(90deg,#121b2d,#172237);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 1px 0 rgba(255,255,255,.05) inset; }
.workspace-brand-block,.workspace-top-actions{display:flex;align-items:center;gap:8px}.project-title-block{display:flex;flex-direction:column;line-height:1.15;border-left:1px solid rgba(255,255,255,.12);padding-left:13px}.project-title-block strong{font-size: 16px}.project-title-block span{font-size: 12px;color:#8f9ab0;margin-top:4px}.dark-ghost.el-button.is-text{color:#dbe3f2!important}.dark-ghost.el-button.is-text:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}.command-search{height:30px;display:flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#c9d2e2;border-radius:8px;padding:0 9px;cursor:pointer}.command-search:hover{background:rgba(255,255,255,.1);color:#fff}.command-search kbd{font-size: 11px;padding:2px 5px;border-radius:4px;background:rgba(255,255,255,.1);color:#8fa0ba}
.workflow-nav { height: 42px; display:flex;align-items:stretch;background:#fff;border-bottom:1px solid var(--line);padding:0 18px;position:sticky;top:54px;z-index:40; }.workflow-nav button{position:relative;border:0;background:transparent;color:#667185;padding:0 17px;font-weight:650;font-size: 14px;cursor:pointer;display:flex;align-items:center;gap:7px}.workflow-nav button span{width:20px;height:20px;display:grid;place-items:center;border-radius:6px;background:#f0f3f8;color:#778296;font-size: 12px}.workflow-nav button.active{color:var(--blue)}.workflow-nav button.active span{background:var(--blue-soft);color:var(--blue)}.workflow-nav button.active:after{content:"";position:absolute;bottom:-1px;left:14px;right:14px;height:2px;background:var(--blue);border-radius:2px 2px 0 0}.workflow-nav button:hover{color:var(--text)}
.workspace-main { min-height: calc(100vh - 96px); padding: 16px 18px 32px; }.page-stage{max-width:1680px;margin:0 auto}.stage-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:0 0 13px}.stage-head h2{margin:3px 0 4px;font-size: 22px}.stage-head p{margin:0;color:var(--muted);font-size: 14px}.stage-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}

/* Overview */
.overview-screen{max-width:1600px;margin:0 auto}.overview-hero{min-height:185px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;background:radial-gradient(circle at 78% 20%,rgba(95,124,255,.17),transparent 28%),linear-gradient(135deg,#fff,#f8fbff)}.overview-hero:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;right:-80px;bottom:-160px;border:48px solid rgba(79,124,255,.045)}.overview-hero-copy{max-width:720px;position:relative;z-index:2}.overview-hero h1{font-size: 32px;margin:7px 0 6px;letter-spacing:-.025em}.overview-hero p{font-size: 15px;color:#6d788c;margin:0 0 18px}.overview-actions{display:flex;gap:8px}.overview-ring{width:112px;height:112px;border:11px solid #eaf0ff;border-top-color:var(--blue);border-right-color:#7b62ef;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-right:55px;z-index:2;background:#fff;box-shadow:0 10px 30px rgba(79,124,255,.08)}.ring-value{font-size: 29px;font-weight:850}.ring-label{font-size: 12px;color:var(--muted)}
.overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.dashboard-metric{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 15px;overflow:hidden}.dashboard-metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#8aa0bf}.dashboard-metric span{display:block;font-size: 12px;color:#7c879a;font-weight:700}.dashboard-metric strong{display:block;font-size: 25px;margin:5px 0 2px;line-height:1}.dashboard-metric small{font-size: 12px;color:#9aa3b3}.dashboard-metric.accent-blue:before{background:var(--blue)}.dashboard-metric.accent-violet:before{background:var(--violet)}.dashboard-metric.accent-amber:before{background:var(--amber)}.dashboard-metric.accent-cyan:before{background:var(--cyan)}.dashboard-metric.accent-green:before{background:var(--green)}.dashboard-metric.accent-pink:before{background:var(--pink)}.dashboard-metric.accent-indigo:before{background:#5667d9}.dashboard-metric.accent-yellow:before{background:#cdb22f}
.overview-bottom-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:10px}.process-map,.recent-panel{padding:15px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-title h3{margin:2px 0 0;font-size: 16px}.process-track{display:flex;align-items:center}.process-track>div{flex:1;min-width:0;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:11px}.process-track b{font-size: 11px;color:var(--blue);display:block}.process-track strong{font-size: 14px;display:block;margin:3px 0}.process-track span{font-size: 11px;color:var(--muted)}.process-track i{width:16px;height:1px;background:#d7dfeb}.recent-source{width:100%;border:0;background:transparent;padding:8px 5px;display:grid;grid-template-columns:8px 1fr 20px;gap:9px;text-align:left;align-items:center;border-top:1px solid #f0f2f6;cursor:pointer}.recent-source:first-of-type{border-top:0}.recent-source:hover{background:#f8faff}.recent-source strong{display:block;font-size: 13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-source small{display:block;color:var(--muted);font-size: 11px;margin-top:3px}
.category-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex:none}.category-dot.large{width:10px;height:10px}.tone-violet{background:#7c5cff!important;color:#6b4deb}.tone-amber{background:#e3a128!important;color:#b97808}.tone-cyan{background:#22a8c7!important;color:#1786a1}.tone-slate{background:#9aa5b5!important;color:#718096}

/* Fetch table */
.fetch-progress{padding:10px 14px;margin-bottom:10px;display:grid;grid-template-columns:220px 1fr;gap:20px;align-items:center}.fetch-progress div{display:flex;flex-direction:column}.fetch-progress span{font-size: 12px;color:var(--muted);margin-top:3px}.table-panel{overflow:hidden}.table-toolbar{height:48px;padding:8px 12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.table-toolbar-left,.table-toolbar-right{display:flex;align-items:center;gap:8px}.table-toolbar-left .el-input{width:300px}.table-toolbar-left .el-select{width:130px}.table-toolbar-right span{font-size: 13px;color:var(--muted)}.source-table-v2{width:100%}.source-table-row{display:grid;grid-template-columns:34px 92px minmax(280px,2fr) 110px 135px 115px 155px;gap:8px;align-items:center;min-height:54px;padding:7px 12px;border-top:1px solid #edf0f5}.source-table-row:first-child{border-top:0}.source-table-head{min-height:34px;background:#f8fafc;color:#8791a2;font-size: 12px;font-weight:700}.source-table-row:not(.source-table-head):hover{background:#fbfcff}.source-title-cell{min-width:0}.source-title-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 13px}.source-title-cell small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8b95a7;font-size: 11px}.status-pill,.category-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-style:normal;font-size: 11px;background:#eef2f7;color:#657085}.status-success,.status-manual{background:#eaf8f1;color:#27865f}.status-failed{background:#fff0f1;color:#c94955}.status-partial{background:#fff7e6;color:#ad7616}.status-fetching,.status-queued{background:#edf3ff;color:#3d6bd7}.source-result{font-size: 12px;color:#687386}.source-result b{color:#344055}.source-result small{display:block;color:#c75460;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}.row-actions{display:flex;gap:2px}.table-empty{text-align:center;padding:70px;color:#98a2b3}

/* Process */
.process-layout{height:calc(100vh - 128px);display:grid;grid-template-columns:270px minmax(0,1fr);gap:10px;max-width:1800px;margin:0 auto}.source-tree-panel{display:flex;flex-direction:column;overflow:hidden}.source-tree-head{padding:12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.source-tree-head h3{margin:2px 0 0}.source-tree-panel>.el-input{margin:9px;width:calc(100% - 18px)}.source-tree-scroll{flex:1;overflow:auto;padding:0 7px 10px}.tree-group-title{height:31px;display:flex;align-items:center;gap:7px;padding:0 7px;color:#566176;font-size: 12px}.tree-group-title b{margin-left:auto;color:#a0a9b9}.tree-source-item{width:100%;border:0;background:transparent;border-radius:8px;padding:7px 9px;text-align:left;cursor:pointer;margin:1px 0}.tree-source-item:hover{background:#f4f7fc}.tree-source-item.active{background:#edf3ff;color:#315fd4}.tree-source-item span{display:block;font-size: 13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}.tree-source-item small{display:block;font-size: 11px;color:#929cad;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-source-item.active small{color:#6b86cb}.source-tree-footer{display:flex;gap:6px;padding:9px;border-top:1px solid var(--line)}.process-editor-panel{overflow:hidden}.source-editor-v2{height:100%;display:flex;flex-direction:column;overflow:auto}.source-editor-head{min-height:55px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:5}.source-editor-head h2{font-size: 16px;margin:2px 0 0;max-width:700px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-editor-actions{display:flex;align-items:center;gap:10px}.source-meta-grid{display:grid;grid-template-columns:1.7fr 135px 1fr 1fr;gap:7px;padding:9px 12px;border-bottom:1px solid var(--line);background:#fbfcfe}.source-meta-grid>*:nth-child(5){grid-column:1/2}.source-meta-grid>*:nth-child(6){grid-column:2/5}.source-note-row{padding:8px 12px 12px}.blank-detail{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9aa4b5;gap:6px}.blank-orb{width:46px;height:46px;border-radius:15px;background:#edf3ff;color:var(--blue);display:grid;place-items:center;font-size: 20px;font-weight:800}.blank-detail strong{color:#5a6578}

/* Markdown editor */
.md-editor{display:flex;flex-direction:column;border-top:1px solid var(--line);background:#fff;min-height:0}.md-editor.is-fullscreen{position:fixed;inset:0;z-index:3000;background:#fff}.md-toolbar{height:38px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background:#fbfcfe;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:6}.md-toolbar-group{display:flex;align-items:center;gap:2px}.md-toolbar button{height:27px;min-width:28px;padding:0 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#566176;font-size: 12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px}.md-toolbar button:hover,.md-toolbar button.active{background:#edf3ff;color:#3565db;border-color:#dbe6ff}.md-toolbar button:disabled{opacity:.4}.md-count{font-size: 11px;color:#9aa4b5;margin-right:5px}.md-body{flex:1;display:grid;grid-template-columns:1fr;min-height:0}.md-editor.mode-split .md-body{grid-template-columns:1fr 1fr}.md-editor.mode-split .md-textarea{border-right:1px solid var(--line)}.md-textarea{width:100%;height:100%;min-height:inherit;border:0;outline:0;resize:none;padding:18px 22px;font-family:"Microsoft YaHei",ui-sans-serif,sans-serif;font-size: 15px;line-height:1.78;color:#243044;background:#fff;overflow:auto}.md-textarea::placeholder{color:#b2bac7}.md-visual-editor{width:100%;height:100%;min-height:inherit;padding:18px 22px;outline:0;overflow:auto;background:#fff;cursor:text}.md-visual-editor:empty::before{content:attr(data-placeholder);color:#b2bac7;pointer-events:none}.md-visual-editor img{cursor:default;box-shadow:0 1px 3px rgba(15,23,42,.08)}.md-visual-editor video{cursor:default;outline:none}.md-video-block{margin:14px 0}.md-visual-editor:focus{box-shadow:inset 0 0 0 1px #dce7ff}.md-preview{padding:18px 24px;overflow:auto;background:#fff}.md-editor.is-fullscreen .md-body{min-height:calc(100vh - 38px)!important}.md-editor.is-fullscreen .md-textarea,.md-editor.is-fullscreen .md-preview,.md-editor.is-fullscreen .md-visual-editor{min-height:calc(100vh - 38px)}

.markdown-render{font-size: 15px;line-height:1.78;color:#253146;word-break:break-word}.markdown-render h1{font-size: 26px;margin:28px 0 13px}.markdown-render h2{font-size: 21px;margin:24px 0 11px;padding-bottom:6px;border-bottom:1px solid #edf0f5}.markdown-render h3{font-size: 17px;margin:20px 0 8px}.markdown-render p{margin:9px 0}.markdown-render img{display:block;max-width:min(100%,960px);height:auto;margin:14px auto;border-radius:8px}.markdown-render video{display:block;width:min(100%,960px);max-width:100%;height:auto;max-height:72vh;margin:14px auto;border-radius:8px;background:#05070b;box-shadow:0 2px 10px rgba(15,23,42,.14)}.markdown-render blockquote{margin:12px 0;padding:8px 13px;border-left:3px solid #9bb3ff;background:#f7f9ff;color:#58657a}.markdown-render pre{background:#101827;color:#e9eef7;border-radius:8px;padding:12px;overflow:auto}.markdown-render table{border-collapse:collapse;width:100%;margin:12px 0}.markdown-render th,.markdown-render td{border:1px solid #e0e5ed;padding:6px 8px}.markdown-render a{color:#416fe0}.research-highlight{background:linear-gradient(transparent 54%,#ffec88 54%);padding:0 1px;color:inherit}

/* Preliminary */
.preliminary-stage{max-width:1800px}.category-lane{margin-bottom:10px;padding:12px 13px}.lane-title>div{display:flex;align-items:flex-start;gap:9px}.lane-title h3{margin:0;font-size: 15px}.lane-title h3 b{margin-left:4px;color:#929cad}.lane-title p{margin:3px 0 8px;color:#8a95a6;font-size: 12px}.card-lane{display:flex;align-items:stretch;min-height:116px;overflow-x:auto;padding-bottom:3px}.drop-slot{width:7px;flex:none;border-radius:6px;transition:.15s}.drop-slot:hover{width:16px;background:#dce7ff}.drop-slot.tail{width:24px}.material-card{width:250px;min-width:250px;height:108px;border:1px solid #e1e6ee;border-radius:10px;padding:9px 10px;background:#fff;cursor:grab;transition:.16s;box-shadow:0 3px 10px rgba(30,44,68,.03)}.material-card:hover{border-color:#bfd0f8;box-shadow:0 9px 25px rgba(42,62,98,.10);transform:translateY(-2px)}.material-card:active{cursor:grabbing}.material-card-top{display:flex;justify-content:space-between;align-items:center;height:18px;color:#a1a9b8;font-size: 11px}.material-card h4{font-size: 13px;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-card p{height:34px;overflow:hidden;margin:0;color:#758094;font-size: 11px;line-height:1.8}.material-card footer{display:flex;justify-content:space-between;color:#9ba4b4;font-size: 10px;margin-top:5px}.lane-empty{height:80px;min-width:240px;display:grid;place-items:center;border:1px dashed #d9e0eb;border-radius:10px;color:#a4adba}.source-preview-popper{padding:0!important;overflow:hidden;border-radius:12px!important}.popover-preview-head{padding:11px 13px;border-bottom:1px solid var(--line);display:flex;flex-direction:column}.popover-preview-head span{font-size: 11px;color:var(--muted);margin-top:3px}.compact-preview{max-height:420px;overflow:auto;padding:12px 14px;font-size: 13px}.compact-preview img{max-height:260px}

/* Detailed */
.detailed-layout{height:calc(100vh - 128px);display:grid;grid-template-columns:minmax(430px,43%) minmax(0,57%);gap:10px;max-width:1900px;margin:0 auto}.detail-source-side,.detail-final-side{min-height:0;overflow:hidden;display:flex;flex-direction:column}.detail-source-head,.detail-final-head{min-height:55px;padding:10px 12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.detail-source-head h3,.detail-final-head h3{margin:2px 0 0;font-size: 15px}.detail-final-head p{margin:3px 0 0;font-size: 11px;color:var(--muted)}.detail-final-head>div:last-child{display:flex;align-items:center;gap:8px}.save-indicator{font-size: 11px;color:#7e899b}.save-indicator.saving{color:var(--blue)}.detail-source-tree{flex:none;max-height:175px;overflow:auto;padding:6px 8px;border-bottom:1px solid var(--line);background:#fafbfd}.detail-source-tree details{margin:2px 0}.detail-source-tree summary{list-style:none;height:28px;display:flex;align-items:center;gap:6px;font-size: 12px;font-weight:750;color:#596579;cursor:pointer}.detail-source-tree summary::-webkit-details-marker{display:none}.detail-source-tree summary b{margin-left:auto;color:#a0a9b7}.detail-source-tree button{display:block;width:100%;border:0;background:transparent;text-align:left;border-radius:6px;padding:5px 8px 5px 20px;font-size: 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.detail-source-tree button:hover{background:#f0f4fa}.detail-source-tree button.active{background:#eaf1ff;color:#3565d5}.detail-source-content{flex:1;min-height:0;overflow:auto}.detail-source-meta{position:sticky;top:0;z-index:2;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);padding:9px 12px;border-bottom:1px solid var(--line)}.detail-source-meta strong{display:block;font-size: 13px}.detail-source-meta-main>span{font-size: 11px;color:var(--muted)}.source-reading{padding:13px 17px;font-size: 13px;line-height:1.75}.source-reading img{max-height:560px}.detail-final-side .md-editor{flex:1;min-height:0}.detail-final-side .md-body{min-height:0!important;height:100%}.detail-final-side .md-textarea,.detail-final-side .md-preview{min-height:0!important;height:100%}

/* Final */
.final-stage{max-width:1380px;margin:0 auto}.final-head{margin-bottom:10px}.final-document-shell{min-height:calc(100vh - 165px);overflow:hidden}.final-reader-wrap{max-width:980px;margin:0 auto;background:#fff}.final-reader-meta{height:40px;display:flex;align-items:center;justify-content:center;gap:22px;border-bottom:1px solid var(--line);color:#8b95a6;font-size: 11px;position:sticky;top:0;background:#fff;z-index:2}.final-reader{padding:34px 54px 80px;font-size: 16px;line-height:1.85}.final-reader h1{font-size: 31px}.final-reader h2{font-size: 23px}.highlight-selected-text{max-height:160px;overflow:auto;padding:10px 12px;background:#fff9d9;border:1px solid #f3e292;border-radius:8px;margin-bottom:10px;line-height:1.7}.highlight-selected-text+.el-input{margin-bottom:8px}

/* Drawers, search */
.drawer-tip{padding:10px 12px;border-radius:8px;background:#eef4ff;color:#607194;font-size: 12px;margin-bottom:10px}.trash-list article{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:7px;display:flex;justify-content:space-between;align-items:center;gap:10px}.trash-list strong{display:block;font-size: 13px}.trash-list span{display:block;font-size: 11px;color:var(--muted);margin-top:3px}.drawer-empty{padding:80px 20px;display:flex;flex-direction:column;align-items:center;color:#9aa4b4;gap:7px}.drawer-empty .el-icon{font-size: 30px}.highlight-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:var(--muted);font-size: 12px}.highlight-list article{background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px;margin-bottom:8px}.highlight-list header{display:grid;grid-template-columns:28px 1fr auto;gap:7px;align-items:center}.highlight-list header b{color:#9aa4b5;font-size: 11px}.highlight-list header strong{font-size: 13px}.highlight-list blockquote{margin:9px 0;padding:8px 10px;background:#fff9d9;border-left:3px solid #f0cf48;font-size: 13px;line-height:1.65}.highlight-list p{font-size: 12px;color:#687386}.highlight-list small{font-size: 10px;color:#9ca5b4}
.command-dialog .el-dialog__header{display:none}.command-dialog .el-dialog__body{padding:0}.command-input{height:58px;display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--line)}.command-input .el-icon{font-size: 20px;color:#778296}.command-input input{flex:1;border:0;outline:0;font-size: 17px;color:var(--text)}kbd{font-family:inherit}.command-input kbd,.command-hint kbd{padding:3px 6px;border-radius:5px;background:#f0f2f6;color:#8993a3;font-size: 11px}.command-results{max-height:520px;overflow:auto;padding:7px}.command-results button{width:100%;border:0;background:transparent;border-radius:9px;display:grid;grid-template-columns:58px 1fr;gap:8px;text-align:left;padding:9px;cursor:pointer}.command-results button:hover{background:#f2f6ff}.search-kind{align-self:start;display:inline-flex;justify-content:center;padding:3px 5px;background:#eef3ff;color:#4c6ec4;border-radius:5px;font-size: 10px}.command-results strong{font-size: 13px}.command-results p{margin:3px 0 0;font-size: 11px;color:#7d8798;line-height:1.6}.command-empty,.command-hint{padding:70px 20px;text-align:center;color:#9ba4b3}.dialog-intro{display:flex;gap:10px;padding:11px;background:#f5f8ff;border-radius:9px;margin-bottom:10px}.dialog-intro .el-icon{font-size: 24px;color:var(--blue)}.dialog-intro strong{font-size: 13px}.dialog-intro p{font-size: 11px;color:var(--muted);margin:3px 0 0}.dialog-options{margin-top:9px;display:flex;align-items:center;gap:10px}.dialog-options .el-select{width:190px}.dialog-options span{color:var(--muted);font-size: 11px}

/* Login fallback */
.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#eef3ff,transparent 30%),#f6f8fc}.login-card{width:min(420px,calc(100vw - 30px));background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:var(--shadow)}

@media (max-width: 1200px) {
  .project-grid{grid-template-columns:repeat(2,1fr)}
  .overview-metrics{grid-template-columns:repeat(4,1fr)}
  .source-table-row{grid-template-columns:30px 85px minmax(220px,1fr) 100px 110px 100px 135px}
  .detailed-layout{grid-template-columns:42% 58%}
}
@media (max-width: 900px) {
  .workspace-topbar{position:static}.workflow-nav{top:0;overflow-x:auto}.workspace-top-actions .command-search span,.workspace-top-actions .dark-ghost span{display:none}.overview-metrics{grid-template-columns:repeat(2,1fr)}.overview-bottom-grid{grid-template-columns:1fr}.process-layout,.detailed-layout{height:auto;grid-template-columns:1fr}.source-tree-panel{height:320px}.process-editor-panel{min-height:700px}.detail-source-side{height:700px}.detail-final-side{min-height:760px}.source-table-v2{overflow-x:auto}.source-table-row{min-width:1000px}.final-reader{padding:28px 22px}.md-toolbar{height:auto;flex-wrap:wrap;gap:4px}.md-toolbar-right{margin-left:auto}.project-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}
}

/* Compatibility helpers for dashboard/login */
.panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 2px 8px rgba(25,38,61,.025); }
.login-brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#5d84ff,#7659f3);color:#fff;display:grid;place-items:center;font-size: 20px;font-weight:800;box-shadow:0 10px 28px rgba(79,124,255,.25)}
.login-card h1{font-size: 24px;margin:16px 0 5px}.login-card>p{color:var(--muted);margin:0 0 18px}.login-card>.el-input{margin-bottom:10px}.login-card>.el-button{width:100%}.login-tip{font-size: 11px;color:#9aa4b4;margin-top:12px;text-align:center}

/* Category tone: dots stay solid; chips use calm tinted surfaces. */
.category-dot.tone-violet{background:#7c5cff!important;color:transparent!important}
.category-dot.tone-amber{background:#e3a128!important;color:transparent!important}
.category-dot.tone-cyan{background:#22a8c7!important;color:transparent!important}
.category-dot.tone-slate{background:#9aa5b5!important;color:transparent!important}
.category-chip.tone-violet{background:#f0ecff!important;color:#654bd2!important}
.category-chip.tone-amber{background:#fff4dc!important;color:#9b660a!important}
.category-chip.tone-cyan{background:#e8f8fc!important;color:#147f96!important}
.category-chip.tone-slate{background:#eef1f5!important;color:#667286!important}

/* Final-reader selection action */
.floating-highlight-action{position:fixed;z-index:3000;border:0;border-radius:8px;padding:6px 10px;background:#1f2a44;color:#fff;font-size: 13px;font-weight:750;box-shadow:0 8px 24px rgba(20,31,52,.22);cursor:pointer;animation:floatIn .12s ease-out}
.floating-highlight-action:hover{background:#365fc8}
@keyframes floatIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
.detail-source-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.detail-source-meta>div{min-width:0}.detail-source-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* v2.0.2 project deletion UX */
.project-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; min-height:28px; }
.project-delete-button.el-button { opacity:.7; padding:4px 6px !important; height:26px !important; }
.project-card:hover .project-delete-button.el-button { opacity:1; }
.project-delete-button.el-button:hover { background:#fff1f2 !important; color:#d93b4d !important; }
.el-dropdown-menu__item.danger-dropdown-item { color:#d93b4d !important; }
.el-dropdown-menu__item.danger-dropdown-item:hover { background:#fff1f2 !important; color:#c92f43 !important; }

/* v2.0.4 theme system */
.theme-toggle-topbar.el-button {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  color: #dbe3f2 !important;
  border-radius: 8px !important;
}
.theme-toggle-topbar.el-button:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
}

html[data-theme="dark"] {
  --bg: #121722;
  --panel: #1a2230;
  --panel-soft: #202a3a;
  --line: #354156;
  --line-strong: #46546b;
  --text: #edf2f8;
  --muted: #a7b2c4;
  --navy: #0d1420;
  --blue: #7fa2ff;
  --blue-strong: #95b1ff;
  --blue-soft: #233558;
  --shadow: 0 14px 36px rgba(0, 0, 0, .24);

  --el-bg-color: #1a2230;
  --el-bg-color-page: #121722;
  --el-bg-color-overlay: #202a3a;
  --el-fill-color-blank: #1a2230;
  --el-fill-color: #222d3d;
  --el-fill-color-light: #263244;
  --el-fill-color-lighter: #2b3749;
  --el-fill-color-extra-light: #202a3a;
  --el-fill-color-dark: #151c28;
  --el-text-color-primary: #edf2f8;
  --el-text-color-regular: #d3dbe7;
  --el-text-color-secondary: #aab5c7;
  --el-text-color-placeholder: #7f8ba0;
  --el-border-color: #3a465b;
  --el-border-color-light: #354156;
  --el-border-color-lighter: #303b4e;
  --el-border-color-extra-light: #2a3445;
  --el-mask-color: rgba(5, 8, 14, .68);
  --el-box-shadow-light: 0 10px 30px rgba(0,0,0,.24);
}

html[data-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .workspace-v2 {
  background: var(--bg);
  color: var(--text);
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .workspace-topbar {
  background: linear-gradient(90deg,#08111f,#0e1a2d);
  border-color: #1c2a3e;
}
html[data-theme="dark"] .workflow-nav,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .panel-v2,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .dashboard-metric,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .material-card,
html[data-theme="dark"] .final-reader-wrap,
html[data-theme="dark"] .final-reader-meta,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .md-editor,
html[data-theme="dark"] .md-textarea,
html[data-theme="dark"] .md-visual-editor,
html[data-theme="dark"] .md-preview,
html[data-theme="dark"] .trash-list article,
html[data-theme="dark"] .highlight-list article {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="dark"] .overview-hero {
  background: radial-gradient(circle at 78% 20%,rgba(95,124,255,.14),transparent 28%),linear-gradient(135deg,#111a2a,#101a2b);
}
html[data-theme="dark"] .overview-ring {
  background: #111a2a;
  border-color: #22314a;
  border-top-color: var(--blue);
  border-right-color: #8b72ff;
}
html[data-theme="dark"] .overview-hero p,
html[data-theme="dark"] .project-card-footer,
html[data-theme="dark"] .tree-group-title,
html[data-theme="dark"] .source-result,
html[data-theme="dark"] .markdown-render,
html[data-theme="dark"] .source-reading,
html[data-theme="dark"] .detail-source-tree summary,
html[data-theme="dark"] .command-results p,
html[data-theme="dark"] .highlight-list p {
  color: #aab6c8;
}
html[data-theme="dark"] .workflow-nav button { color: #95a2b5; }
html[data-theme="dark"] .workflow-nav button:hover { color: #e6edf7; }
html[data-theme="dark"] .workflow-nav button span,
html[data-theme="dark"] .process-track>div,
html[data-theme="dark"] .source-table-head,
html[data-theme="dark"] .detail-source-tree,
html[data-theme="dark"] .md-toolbar,
html[data-theme="dark"] .drawer-tip,
html[data-theme="dark"] .dialog-intro,
html[data-theme="dark"] .command-input kbd,
html[data-theme="dark"] .command-hint kbd {
  background: var(--panel-soft);
  color: #9faabd;
  border-color: var(--line);
}
html[data-theme="dark"] .workflow-nav button.active span,
html[data-theme="dark"] .command-results button:hover,
html[data-theme="dark"] .recent-source:hover,
html[data-theme="dark"] .tree-source-item:hover,
html[data-theme="dark"] .detail-source-tree button:hover,
html[data-theme="dark"] .source-table-row:not(.source-table-head):hover {
  background: #17233a;
}
html[data-theme="dark"] .tree-source-item.active,
html[data-theme="dark"] .detail-source-tree button.active {
  background: #182b50;
  color: #8ca9ff;
}
html[data-theme="dark"] .source-table-row,
html[data-theme="dark"] .recent-source,
html[data-theme="dark"] .detail-source-head,
html[data-theme="dark"] .detail-final-head,
html[data-theme="dark"] .detail-source-tree,
html[data-theme="dark"] .final-reader-meta,
html[data-theme="dark"] .md-toolbar,
html[data-theme="dark"] .md-editor.mode-split .md-textarea {
  border-color: var(--line);
}
html[data-theme="dark"] .detail-source-meta {
  background: rgba(17,26,42,.96);
}
html[data-theme="dark"] .md-textarea,
html[data-theme="dark"] .md-visual-editor,
html[data-theme="dark"] .markdown-render {
  color: #dbe4f1;
}
html[data-theme="dark"] .md-toolbar button { color: #aeb9cb; }
html[data-theme="dark"] .md-toolbar button:hover,
html[data-theme="dark"] .md-toolbar button.active {
  background: #1a2c50;
  color: #8eabff;
  border-color: #294477;
}
html[data-theme="dark"] .markdown-render h2 { border-color: #27354a; }
html[data-theme="dark"] .markdown-render blockquote {
  background: #16233b;
  border-color: #5676d6;
  color: #b7c4d7;
}
html[data-theme="dark"] .markdown-render th,
html[data-theme="dark"] .markdown-render td { border-color: #2b394e; }
html[data-theme="dark"] .markdown-render pre { background: #07101d; color: #dbe5f3; }
html[data-theme="dark"] .final-reader-meta { color: #8794a8; }
html[data-theme="dark"] .highlight-selected-text,
html[data-theme="dark"] .highlight-list blockquote {
  background: #342f18;
  border-color: #78682c;
  color: #efe2aa;
}
html[data-theme="dark"] .research-highlight {
  background: linear-gradient(transparent 52%,#6f5d19 52%);
}
html[data-theme="dark"] .source-preview-popper,
html[data-theme="dark"] .el-popper,
html[data-theme="dark"] .el-dropdown__popper,
html[data-theme="dark"] .el-select__popper,
html[data-theme="dark"] .el-dialog,
html[data-theme="dark"] .el-drawer {
  background: var(--el-bg-color-overlay) !important;
  border-color: var(--line) !important;
  color: var(--text);
}
html[data-theme="dark"] .el-drawer__body { background: #0f1828; }
html[data-theme="dark"] .el-input-group__prepend { background: #182337; color: #9daabd; }
html[data-theme="dark"] .el-progress-bar__outer { background: #1c2940; }
html[data-theme="dark"] .el-segmented {
  --el-segmented-bg-color: #172236;
  --el-segmented-item-selected-bg-color: #24334c;
  --el-segmented-item-selected-color: #eef3fb;
}
html[data-theme="dark"] .el-input__inner,
html[data-theme="dark"] .el-textarea__inner,
html[data-theme="dark"] .el-select__selected-item,
html[data-theme="dark"] .command-input input {
  color: var(--text) !important;
}
html[data-theme="dark"] .el-textarea__inner,
html[data-theme="dark"] .command-input input { background: transparent !important; }
html[data-theme="dark"] .login-page {
  background: radial-gradient(circle at 20% 20%,rgba(60,91,170,.18),transparent 32%),#0b1220;
}
html[data-theme="dark"] .category-chip.tone-violet{background:#2b244a!important;color:#b8a7ff!important}
html[data-theme="dark"] .category-chip.tone-amber{background:#3b2d16!important;color:#e5b65e!important}
html[data-theme="dark"] .category-chip.tone-cyan{background:#15343d!important;color:#72cadb!important}
html[data-theme="dark"] .category-chip.tone-slate{background:#222d3e!important;color:#a9b5c8!important}
html[data-theme="dark"] .project-delete-button.el-button:hover,
html[data-theme="dark"] .el-dropdown-menu__item.danger-dropdown-item:hover {
  background: #3a1d25 !important;
  color: #ff8e99 !important;
}
.login-theme-toggle.el-button{position:fixed;right:20px;top:20px;z-index:20;width:34px;height:34px;padding:0;background:var(--panel);border-color:var(--line);color:var(--text);box-shadow:0 6px 20px rgba(20,31,52,.08)}
html[data-theme="dark"] .login-theme-toggle.el-button:hover{background:#1b2a42;color:#fff;border-color:#344764}


/* v2.0.5 dark-theme polish + readable density */
.el-button, .el-input, .el-select, .el-textarea, .el-checkbox, .el-radio, .el-dropdown, .el-dialog, .el-drawer { font-size: 15px; }
.el-button--small, .el-tag, .el-dropdown-menu__item { font-size: 14px; }

html[data-theme="dark"] .source-editor-v2,
html[data-theme="dark"] .source-editor-head,
html[data-theme="dark"] .source-tree-head,
html[data-theme="dark"] .source-tree-footer,
html[data-theme="dark"] .process-editor-panel,
html[data-theme="dark"] .md-editor.is-fullscreen {
  background: var(--panel) !important;
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="dark"] .source-meta-grid {
  background: var(--panel-soft) !important;
  border-color: var(--line);
}
html[data-theme="dark"] .source-editor-head {
  box-shadow: 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .blank-orb { background:#263956; color:#9bb6ff; }
html[data-theme="dark"] .blank-detail strong,
html[data-theme="dark"] .source-editor-head h2,
html[data-theme="dark"] .source-result b,
html[data-theme="dark"] .source-title-cell strong,
html[data-theme="dark"] .tree-source-item span,
html[data-theme="dark"] .material-card h4,
html[data-theme="dark"] .detail-source-meta strong,
html[data-theme="dark"] .section-title h3,
html[data-theme="dark"] .stage-head h2 { color: var(--text) !important; }
html[data-theme="dark"] .source-title-cell small,
html[data-theme="dark"] .tree-source-item small,
html[data-theme="dark"] .lane-title p,
html[data-theme="dark"] .material-card p,
html[data-theme="dark"] .material-card footer,
html[data-theme="dark"] .source-result,
html[data-theme="dark"] .save-indicator { color: var(--muted) !important; }
html[data-theme="dark"] .tree-source-item.active small { color:#9bb4ef !important; }

html[data-theme="dark"] .el-input__wrapper,
html[data-theme="dark"] .el-select__wrapper,
html[data-theme="dark"] .el-textarea__inner {
  background: #182130 !important;
  box-shadow: 0 0 0 1px var(--line-strong) inset !important;
}
html[data-theme="dark"] .el-input__wrapper:hover,
html[data-theme="dark"] .el-select__wrapper:hover,
html[data-theme="dark"] .el-textarea__inner:hover {
  box-shadow: 0 0 0 1px #5a6881 inset !important;
}
html[data-theme="dark"] .el-input__wrapper.is-focus,
html[data-theme="dark"] .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--blue) inset !important;
}
html[data-theme="dark"] .el-input-group__prepend {
  background: #222d3d !important;
  color: #b3bfd0 !important;
  border-color: var(--line);
}
html[data-theme="dark"] .el-button:not(.el-button--primary):not(.el-button--danger):not(.is-text):not(.is-link) {
  background: #222d3d;
  border-color: #46546b;
  color: #dce4ef;
}
html[data-theme="dark"] .el-button:not(.el-button--primary):not(.el-button--danger):not(.is-text):not(.is-link):hover {
  background: #2b384b;
  border-color: #61718c;
  color: #fff;
}
html[data-theme="dark"] .el-checkbox__label,
html[data-theme="dark"] .el-radio__label,
html[data-theme="dark"] .el-form-item__label { color:#cbd5e2; }

html[data-theme="dark"] .md-editor,
html[data-theme="dark"] .md-textarea,
html[data-theme="dark"] .md-visual-editor,
html[data-theme="dark"] .md-preview { background:#182130 !important; }
html[data-theme="dark"] .md-toolbar { background:#202a3a !important; }
html[data-theme="dark"] .md-editor.mode-split .md-textarea { border-right-color:#3d4a60; }
html[data-theme="dark"] .md-visual-editor:focus { box-shadow:inset 0 0 0 1px #4e6aa4; }
html[data-theme="dark"] .markdown-render { color:#e2e9f2 !important; }
html[data-theme="dark"] .markdown-render a { color:#91afff; }
html[data-theme="dark"] .markdown-render h1,
html[data-theme="dark"] .markdown-render h2,
html[data-theme="dark"] .markdown-render h3,
html[data-theme="dark"] .markdown-render strong { color:#f4f7fb; }

html[data-theme="dark"] .source-editor-head,
html[data-theme="dark"] .source-meta-grid,
html[data-theme="dark"] .md-toolbar,
html[data-theme="dark"] .source-tree-footer { border-color:#354156; }
html[data-theme="dark"] .source-table-row { border-top-color:#303b4e; }
html[data-theme="dark"] .recent-source { border-top-color:#303b4e; }
html[data-theme="dark"] .material-card:hover { border-color:#5972a8; box-shadow:0 10px 24px rgba(0,0,0,.22); }
html[data-theme="dark"] .drop-slot:hover { background:#2d426d; }
html[data-theme="dark"] .lane-empty { border-color:#46546b; color:#93a0b4; }
html[data-theme="dark"] .drawer-tip,
html[data-theme="dark"] .dialog-intro { background:#21314d; color:#b8c8e3; }
html[data-theme="dark"] .search-kind { background:#263a62; color:#a9c0ff; }
html[data-theme="dark"] .command-results button:hover { background:#26344a; }
html[data-theme="dark"] .floating-highlight-action { background:#314b80; }
html[data-theme="dark"] .floating-highlight-action:hover { background:#4264a7; }

/* v2.0.6 process tabs, resizable material rail, image zoom and investigative chrome */
.workspace-topbar {
  background:
    radial-gradient(circle at 82% 0%, rgba(72,120,255,.22), transparent 26%),
    linear-gradient(92deg, #10192b 0%, #17233b 48%, #192642 100%);
  border-bottom: 1px solid rgba(129,158,221,.16);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 8px 24px rgba(20,32,56,.08);
}
.workflow-nav {
  background: linear-gradient(180deg, #f4f7fc 0%, #edf2f9 100%);
  border-bottom-color: #dce4ef;
  box-shadow: 0 5px 16px rgba(38,55,83,.035);
}
.workflow-nav button { color:#657187; }
.workflow-nav button:hover { background:rgba(79,124,255,.045); }
.workflow-nav button.active { color:#3f69d8; }
.workflow-nav button.active span { background:#dfe9ff; color:#3563d4; box-shadow:inset 0 0 0 1px rgba(79,124,255,.13); }
.workflow-nav button.active:after { background:linear-gradient(90deg,#4f7cff,#7b68ee); height:3px; }

.process-layout {
  grid-template-columns: var(--process-tree-width, 300px) 7px minmax(0, 1fr);
  gap:0;
  max-width:1900px;
}
.source-tree-panel {
  border-radius:14px 0 0 14px;
  background:linear-gradient(180deg,#eef3f9 0%,#e9eff7 100%);
  border-color:#d7e0ec;
  box-shadow: inset -1px 0 0 rgba(116,135,166,.08);
}
.source-tree-head {
  padding:11px 12px 9px;
  background:linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,.42));
  border-bottom-color:#d8e1ed;
}
.source-tree-head h3 { font-size:16px; }
.source-tree-tools { padding:9px 9px 7px; border-bottom:1px solid #d8e1ed; }
.source-tree-tools>.el-input { width:100%; margin:0 0 8px; }
.source-category-tabs {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
}
.source-category-tabs button {
  min-width:0;
  height:31px;
  border:1px solid rgba(128,146,175,.22);
  border-radius:8px;
  background:rgba(255,255,255,.58);
  color:#5f6c81;
  padding:0 7px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.16s ease;
}
.source-category-tabs button:last-child { grid-column:1 / -1; }
.source-category-tabs button b {
  min-width:20px;
  height:19px;
  padding:0 5px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#e4eaf3;
  color:#78869c;
  font-size:11px;
}
.source-category-tabs button:hover { background:#fff; border-color:#bdcbe0; transform:translateY(-1px); }
.source-category-tabs button.active {
  background:linear-gradient(135deg,#eef4ff,#e8efff);
  border-color:#a9bff1;
  color:#315fcf;
  box-shadow:0 4px 12px rgba(55,91,167,.08);
}
.source-category-tabs button.active b { background:#d6e3ff; color:#315fcf; }
.source-category-tabs button.attention:not(.active) { border-color:#e7c882; background:#fff8e9; color:#87621c; }
.source-tree-scroll { padding:7px 7px 10px; }
.source-tab-caption {
  height:31px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 7px;
  color:#5b687d;
  font-size:12px;
}
.source-tab-caption strong { font-size:12px; }
.source-tab-caption small { margin-left:auto; color:#8d98aa; }
.source-tab-empty { padding:38px 12px; text-align:center; color:#929daf; font-size:12px; }
.tree-source-item {
  background:rgba(255,255,255,.28);
  border:1px solid transparent;
  padding:8px 9px;
}
.tree-source-item:hover { background:rgba(255,255,255,.78); border-color:#d7e1ef; }
.tree-source-item.active {
  background:linear-gradient(135deg,#dfe9fb,#e8effd);
  border-color:#bfd0ef;
  color:#2f5fc7;
  box-shadow:0 3px 10px rgba(45,78,142,.07);
}
.tree-source-item small em { font-style:normal; color:#7d8aa0; }
.source-tree-footer { background:rgba(255,255,255,.42); border-top-color:#d8e1ed; }
.process-resizer {
  position:relative;
  cursor:col-resize;
  touch-action:none;
  background:transparent;
  z-index:4;
}
.process-resizer:before {
  content:"";
  position:absolute;
  left:3px;
  top:9px;
  bottom:9px;
  width:1px;
  background:#cbd6e5;
  transition:.15s ease;
}
.process-resizer span {
  position:absolute;
  left:1px;
  top:50%;
  width:5px;
  height:42px;
  transform:translateY(-50%);
  border-radius:4px;
  background:linear-gradient(180deg,#c8d4e6,#aebed7,#c8d4e6);
  opacity:.45;
}
.process-resizer:hover:before,
.process-layout.is-resizing .process-resizer:before { width:2px; left:2px; background:#6e8ed5; }
.process-resizer:hover span,
.process-layout.is-resizing .process-resizer span { opacity:.9; background:#6e8ed5; }
.process-layout.is-resizing, .process-layout.is-resizing * { cursor:col-resize !important; user-select:none !important; }
.process-editor-panel {
  border-radius:0 14px 14px 0;
  border-left-color:#e3e9f2;
  box-shadow:0 5px 18px rgba(26,42,70,.035);
}
.source-editor-head { background:linear-gradient(180deg,#fff,#fbfcfe); }
.source-editor-actions .el-button--primary { box-shadow:0 5px 14px rgba(79,124,255,.14); }

.md-visual-editor img,
.md-preview img { cursor:zoom-in; transition:box-shadow .16s ease, transform .16s ease; }
.md-visual-editor img:hover,
.md-preview img:hover { box-shadow:0 8px 26px rgba(22,34,56,.14); }

html[data-theme="dark"] .workspace-topbar {
  background:
    radial-gradient(circle at 80% -20%, rgba(74,123,255,.24), transparent 32%),
    radial-gradient(circle at 20% 120%, rgba(98,70,176,.12), transparent 28%),
    linear-gradient(92deg,#0b1423 0%,#101c31 48%,#14213a 100%);
  border-bottom-color:#263754;
  box-shadow:0 1px 0 rgba(133,160,216,.06) inset,0 8px 28px rgba(0,0,0,.16);
}
html[data-theme="dark"] .workflow-nav {
  background:linear-gradient(180deg,#151f30 0%,#111a29 100%);
  border-bottom-color:#29364a;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
html[data-theme="dark"] .workflow-nav button { color:#9ba9bd; }
html[data-theme="dark"] .workflow-nav button:hover { background:rgba(114,147,220,.07); color:#e9eff8; }
html[data-theme="dark"] .workflow-nav button.active { color:#9bb7ff; }
html[data-theme="dark"] .workflow-nav button span { background:#202c3e; color:#93a0b3; border:1px solid #29384e; }
html[data-theme="dark"] .workflow-nav button.active span { background:#243858; color:#a5bdff; border-color:#385582; }
html[data-theme="dark"] .workflow-nav button.active:after { background:linear-gradient(90deg,#6e99ff,#8d73f4); }
html[data-theme="dark"] .source-tree-panel {
  background:linear-gradient(180deg,#121d2c 0%,#101927 100%) !important;
  border-color:#2c3a4f;
  box-shadow:inset -1px 0 0 rgba(120,146,190,.08);
}
html[data-theme="dark"] .source-tree-head {
  background:linear-gradient(180deg,rgba(31,44,63,.9),rgba(20,31,47,.78)) !important;
  border-color:#2c3a4f;
}
html[data-theme="dark"] .source-tree-tools { border-color:#29384d; }
html[data-theme="dark"] .source-category-tabs button {
  background:#182536;
  border-color:#304057;
  color:#a9b5c7;
}
html[data-theme="dark"] .source-category-tabs button b { background:#233249; color:#9ba9bc; }
html[data-theme="dark"] .source-category-tabs button:hover { background:#1d2d42; border-color:#465d7d; }
html[data-theme="dark"] .source-category-tabs button.active {
  background:linear-gradient(135deg,#1d3150,#243a5c);
  border-color:#45679a;
  color:#a9c1ff;
  box-shadow:0 6px 16px rgba(0,0,0,.14);
}
html[data-theme="dark"] .source-category-tabs button.active b { background:#31517d; color:#c5d4ff; }
html[data-theme="dark"] .source-category-tabs button.attention:not(.active) { background:#342b1b; border-color:#66512a; color:#dfbd73; }
html[data-theme="dark"] .source-tab-caption { color:#aeb9ca; }
html[data-theme="dark"] .source-tab-caption small { color:#7f8ca0; }
html[data-theme="dark"] .tree-source-item { background:rgba(30,43,61,.34); }
html[data-theme="dark"] .tree-source-item:hover { background:#1a2a3e; border-color:#30445f; }
html[data-theme="dark"] .tree-source-item.active {
  background:linear-gradient(135deg,#1b3152,#203a61);
  border-color:#3a5d91;
  color:#a8c1ff;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}
html[data-theme="dark"] .tree-source-item small em { color:#8e9cb0; }
html[data-theme="dark"] .source-tree-footer { background:#121d2c !important; border-color:#2b394d; }
html[data-theme="dark"] .process-resizer:before { background:#33445d; }
html[data-theme="dark"] .process-resizer span { background:linear-gradient(180deg,#344760,#526b8f,#344760); }
html[data-theme="dark"] .process-resizer:hover:before,
html[data-theme="dark"] .process-layout.is-resizing .process-resizer:before,
html[data-theme="dark"] .process-resizer:hover span,
html[data-theme="dark"] .process-layout.is-resizing .process-resizer span { background:#6689c9; }
html[data-theme="dark"] .process-editor-panel { border-left-color:#2d3a4f; box-shadow:0 6px 22px rgba(0,0,0,.11); }
html[data-theme="dark"] .source-editor-head { background:linear-gradient(180deg,#1c2635,#192330) !important; }
html[data-theme="dark"] .md-visual-editor img:hover,
html[data-theme="dark"] .md-preview img:hover { box-shadow:0 8px 28px rgba(0,0,0,.32); }

@media (max-width: 900px) {
  .process-layout { grid-template-columns:1fr !important; gap:10px; }
  .process-resizer { display:none; }
  .source-tree-panel,.process-editor-panel { border-radius:14px; }
  .source-category-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .source-category-tabs button:last-child { grid-column:auto; }
}

/* v2.0.6 editor navigation helpers */
.md-toolbar .md-edge-button { color:#66768f; }
.md-toolbar .md-edge-button + .md-edge-button { margin-right:4px; }
html[data-theme="dark"] .md-toolbar .md-edge-button { color:#a9b8ce; }

/* v2.0.7 — 资料处理跨分类全文搜索 */
.source-category-tabs.is-searching { opacity:.62; }
.source-category-tabs.is-searching:after {
  content:'搜索时自动跨全部分类';
  grid-column:1 / -1;
  color:#6f7f96;
  font-size:11px;
  line-height:1.2;
  padding:1px 3px 0;
}
.source-tab-caption.search-caption {
  margin:1px 2px 5px;
  padding:0 8px;
  border-radius:8px;
  background:linear-gradient(90deg,rgba(72,114,230,.10),rgba(82,193,210,.06));
  color:#385fbb;
}
.search-scope-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#4d7be8;
  box-shadow:0 0 0 4px rgba(77,123,232,.10),0 0 12px rgba(77,123,232,.30);
  flex:0 0 auto;
}
.tree-source-item small { display:flex; align-items:center; gap:3px; min-width:0; }
.tree-source-item small .search-hit-count {
  margin-left:auto;
  flex:0 0 auto;
  color:#426fd4;
  font-size:10px;
  font-weight:700;
  background:rgba(66,111,212,.09);
  padding:1px 5px;
  border-radius:8px;
}
.tree-source-match {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin-top:4px;
  color:#68768a;
  font-size:11px;
  line-height:1.45;
  font-style:normal;
  white-space:normal;
}
.tree-source-item.active .tree-source-match { color:#5f76ad; }
html[data-theme="dark"] .source-category-tabs.is-searching:after { color:#7f90a7; }
html[data-theme="dark"] .source-tab-caption.search-caption {
  background:linear-gradient(90deg,rgba(69,109,205,.18),rgba(49,149,169,.09));
  color:#a9c0ff;
}
html[data-theme="dark"] .search-scope-dot {
  background:#7da1ff;
  box-shadow:0 0 0 4px rgba(125,161,255,.10),0 0 12px rgba(125,161,255,.28);
}
html[data-theme="dark"] .tree-source-item small .search-hit-count {
  color:#adc2ff;
  background:rgba(93,132,225,.15);
}
html[data-theme="dark"] .tree-source-match { color:#8f9db0; }
html[data-theme="dark"] .tree-source-item.active .tree-source-match { color:#a8b9df; }

/* v2.0.9 - detailed integration duplicate detection */
.md-duplicate-tools{display:flex;align-items:center;gap:2px;margin-right:4px;padding-right:5px;border-right:1px solid var(--line)}
.md-toolbar .md-duplicate-status{min-width:auto;padding:0 8px;border-color:#dfe6ef;background:#f7f9fc;color:#718096;font-weight:700}
.md-toolbar .md-duplicate-status:hover{background:#eef3fa;color:#4c5c72;border-color:#d3ddea}
.md-toolbar .md-duplicate-status.has-duplicates{background:#fff3e7;border-color:#ffc88e;color:#b96018;box-shadow:0 0 0 1px rgba(255,157,70,.06) inset}
.md-toolbar .md-duplicate-status.has-duplicates:hover{background:#ffead3;border-color:#ffb86f;color:#a84e0b}
.md-toolbar .md-duplicate-nav{min-width:25px!important;width:25px;padding:0!important;color:#a35b21;background:#fffaf4;border-color:#f2dcc5}
.md-toolbar .md-duplicate-nav:hover{background:#fff0df!important;border-color:#ffc489!important;color:#a84e0b!important}
.md-visual-editor .md-duplicate-hit,.md-preview .md-duplicate-hit{border-radius:6px;padding-left:7px;padding-right:5px;outline:1px solid rgba(232,143,55,.28);box-decoration-break:clone;-webkit-box-decoration-break:clone;transition:background .16s ease,outline-color .16s ease,box-shadow .16s ease}
.md-visual-editor .md-duplicate-tone-0,.md-preview .md-duplicate-tone-0{background:rgba(255,177,90,.17);box-shadow:inset 3px 0 0 #e89a43}
.md-visual-editor .md-duplicate-tone-1,.md-preview .md-duplicate-tone-1{background:rgba(255,126,139,.13);box-shadow:inset 3px 0 0 #df7280}
.md-visual-editor .md-duplicate-tone-2,.md-preview .md-duplicate-tone-2{background:rgba(128,144,255,.12);box-shadow:inset 3px 0 0 #7585e5}
.md-visual-editor .md-duplicate-tone-3,.md-preview .md-duplicate-tone-3{background:rgba(69,187,167,.13);box-shadow:inset 3px 0 0 #38a990}
.md-visual-editor .md-duplicate-current,.md-preview .md-duplicate-current{outline:2px solid #ff8c3b!important;box-shadow:0 0 0 4px rgba(255,140,59,.14),inset 4px 0 0 #ff8c3b!important}
html[data-theme="dark"] .md-duplicate-tools{border-right-color:#354257}
html[data-theme="dark"] .md-toolbar .md-duplicate-status{background:#1b2534;border-color:#354359;color:#99a8bc}
html[data-theme="dark"] .md-toolbar .md-duplicate-status:hover{background:#243248;color:#d4deeb;border-color:#445470}
html[data-theme="dark"] .md-toolbar .md-duplicate-status.has-duplicates{background:rgba(161,82,23,.25);border-color:#8f5a2f;color:#ffc083}
html[data-theme="dark"] .md-toolbar .md-duplicate-status.has-duplicates:hover{background:rgba(181,91,26,.32);border-color:#a96936;color:#ffd0a2}
html[data-theme="dark"] .md-toolbar .md-duplicate-nav{background:#252d39;border-color:#574736;color:#e3ad7b}
html[data-theme="dark"] .md-toolbar .md-duplicate-nav:hover{background:#34302d!important;border-color:#8c633d!important;color:#ffd1a2!important}
html[data-theme="dark"] .md-visual-editor .md-duplicate-tone-0,html[data-theme="dark"] .md-preview .md-duplicate-tone-0{background:rgba(216,135,57,.18);outline-color:rgba(232,154,67,.35)}
html[data-theme="dark"] .md-visual-editor .md-duplicate-tone-1,html[data-theme="dark"] .md-preview .md-duplicate-tone-1{background:rgba(215,95,112,.16);outline-color:rgba(223,114,128,.32)}
html[data-theme="dark"] .md-visual-editor .md-duplicate-tone-2,html[data-theme="dark"] .md-preview .md-duplicate-tone-2{background:rgba(101,116,214,.17);outline-color:rgba(117,133,229,.32)}
html[data-theme="dark"] .md-visual-editor .md-duplicate-tone-3,html[data-theme="dark"] .md-preview .md-duplicate-tone-3{background:rgba(50,156,137,.16);outline-color:rgba(56,169,144,.32)}

/* v2.0.10 - detailed integration source list + highlight UX */
.detail-source-head{
  gap:10px;
  background:linear-gradient(180deg,#f8fbff,#f3f7fd);
}
.detail-source-title{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  flex:1 1 auto;
}
.detail-source-title .eyebrow{
  flex:none;
  color:#6f86ad;
}
.detail-source-title h3{
  margin:0!important;
  white-space:nowrap;
  flex:none;
}
.detail-category-select{
  width:132px!important;
  flex:0 0 132px;
}
.detail-source-tree{
  background:linear-gradient(180deg,#eaf3ff 0%,#e3efff 100%)!important;
  border-bottom-color:#c9dcf8!important;
  box-shadow:inset 0 -1px 0 rgba(69,112,184,.06);
}
.detail-source-tree summary{
  color:#42608c!important;
}
.detail-source-tree summary b{
  color:#728eb7!important;
}
.detail-source-tree button{
  color:#405574;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.detail-source-tree button:hover{
  background:#d5e6ff!important;
  color:#284f91;
}
.detail-source-tree button.active{
  background:linear-gradient(135deg,#4f7cff,#3c69db)!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(61,105,219,.22);
}
.detail-source-tree button.active:hover{ color:#fff!important; }
.detail-source-content{
  background:var(--panel);
}
.detail-final-head>div:last-child{
  flex-wrap:wrap;
  justify-content:flex-end;
}

html[data-theme="dark"] .detail-source-head{
  background:linear-gradient(180deg,#14213a,#111d32)!important;
  border-bottom-color:#263956!important;
}
html[data-theme="dark"] .detail-source-title .eyebrow{ color:#7896c7!important; }
html[data-theme="dark"] .detail-source-title h3{ color:#e9f1ff!important; }
html[data-theme="dark"] .detail-source-tree{
  background:linear-gradient(180deg,#102542 0%,#0e2039 100%)!important;
  border-bottom-color:#29466d!important;
}
html[data-theme="dark"] .detail-source-tree summary{ color:#a9c4ed!important; }
html[data-theme="dark"] .detail-source-tree summary b{ color:#6689b9!important; }
html[data-theme="dark"] .detail-source-tree button{ color:#bed0e8!important; }
html[data-theme="dark"] .detail-source-tree button:hover{
  background:#17365f!important;
  color:#e2edff!important;
}
html[data-theme="dark"] .detail-source-tree button.active{
  background:linear-gradient(135deg,#365fbd,#2d4f9e)!important;
  color:#fff!important;
  box-shadow:0 4px 14px rgba(20,51,113,.42);
}


/* v2.0.12 - detailed integration tabs, second-pass progress, warmer highlights */
.detail-tab-head{align-items:center!important;gap:12px!important}
.detail-pane-tabs{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #d8e1ee;border-radius:9px;background:#edf2f8}
.detail-pane-tabs button{height:29px;border:0;border-radius:6px;padding:0 11px;background:transparent;color:#66758a;font-size:12px;font-weight:750;cursor:pointer;transition:.15s;white-space:nowrap}
.detail-pane-tabs button b{margin-left:4px;font-size:10px;font-weight:800;color:#8b98aa}
.detail-pane-tabs button:hover:not(:disabled){background:rgba(255,255,255,.72);color:#34445d}
.detail-pane-tabs button.active{background:#fff;color:#3f315f;box-shadow:0 1px 4px rgba(34,45,68,.10)}
.detail-pane-tabs button:disabled{opacity:.42;cursor:not-allowed}
.detail-source-list-pane{display:flex;flex:1;min-height:0;flex-direction:column;background:linear-gradient(180deg,#eef4fb 0%,#e8eff7 100%)}
.detail-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;border-bottom:1px solid #d6e0ed;background:rgba(240,246,253,.86)}
.detail-category-tabs button{height:38px;border:1px solid #d7e1ee;border-radius:8px;background:rgba(255,255,255,.64);display:flex;align-items:center;justify-content:center;gap:6px;color:#596b83;cursor:pointer;font-size:12px;transition:.15s}
.detail-category-tabs button strong{font-size:12px;white-space:nowrap}
.detail-category-tabs button em{font-style:normal;font-size:10px;color:#8a98aa;background:#e7edf5;border-radius:999px;padding:2px 6px}
.detail-category-tabs button:hover{background:#fff;border-color:#c9d6e6;transform:translateY(-1px)}
.detail-category-tabs button.active{background:linear-gradient(135deg,#493763,#604778);border-color:#604778;color:#fff;box-shadow:0 5px 14px rgba(76,55,99,.18)}
.detail-category-tabs button.active em{background:rgba(255,255,255,.16);color:#eee7f7}
.detail-source-list{flex:1;min-height:0;overflow:auto;padding:7px 8px 10px}
.detail-source-list-item{width:100%;min-height:51px;border:1px solid transparent;border-radius:8px;background:rgba(255,255,255,.42);padding:7px 8px 7px 10px;margin-bottom:5px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;transition:.14s;color:#334056}
.detail-source-list-item:hover{background:rgba(255,255,255,.86);border-color:#d4deeb;transform:translateX(2px)}
.detail-source-list-item.active{background:#f4eff8;border-color:#cdbdde;box-shadow:inset 3px 0 0 #77568f;color:#3f3151}
.detail-source-list-item.processed{border-color:rgba(78,151,111,.22)}
.detail-source-list-main{flex:1;min-width:0}
.detail-source-list-main strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-source-list-main small{display:block;margin-top:3px;font-size:10px;color:#8a95a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-source-state{flex:none;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:800;white-space:nowrap}
.detail-source-state.done{background:#e8f6ed;color:#337d54;border:1px solid #cce7d6}
.detail-source-state.pending{background:#f1f3f6;color:#8b95a4;border:1px solid #e2e6ec}
.detail-list-empty{padding:60px 20px;text-align:center;color:#8d99aa;font-size:12px}
.detail-list-footer{height:38px;flex:none;padding:0 10px;border-top:1px solid #d6e0ed;background:rgba(235,242,250,.9);display:flex;align-items:center;justify-content:space-between;color:#627187;font-size:11px}
.detail-list-footer small{color:#8b98aa;font-size:10px}
.detail-source-detail-pane{background:var(--panel)}
.detail-source-meta{display:flex;align-items:center;gap:10px}
.detail-source-meta-main{flex:1;min-width:0}
.detail-source-meta-actions{display:flex;align-items:center;gap:5px;flex:none;flex-wrap:wrap;justify-content:flex-end}
.detail-source-meta-actions .detail-category-select{width:118px!important;flex:0 0 118px}

/* 高光使用暖琥珀色，避免与蓝色文本选择状态混淆 */
.research-highlight{background:linear-gradient(transparent 45%,rgba(255,205,73,.68) 45%)!important;box-shadow:inset 0 -1px 0 rgba(194,132,22,.24);border-radius:2px;padding:0 1px;color:inherit}
.floating-highlight-action{background:#9a6421!important;color:#fff9ed!important;box-shadow:0 8px 24px rgba(100,61,15,.24)!important}
.floating-highlight-action:hover{background:#b27627!important}

html[data-theme="dark"] .detail-pane-tabs{background:#111b29;border-color:#2e3c50}
html[data-theme="dark"] .detail-pane-tabs button{color:#95a5ba}
html[data-theme="dark"] .detail-pane-tabs button:hover:not(:disabled){background:#1b293a;color:#d8e2ef}
html[data-theme="dark"] .detail-pane-tabs button.active{background:#2d2538;color:#efe5fa;box-shadow:0 1px 5px rgba(0,0,0,.28)}
html[data-theme="dark"] .detail-source-list-pane{background:linear-gradient(180deg,#101d2d 0%,#0e1927 100%)}
html[data-theme="dark"] .detail-category-tabs{background:#111f30;border-color:#29384d}
html[data-theme="dark"] .detail-category-tabs button{background:#172538;border-color:#2b3b51;color:#aebed2}
html[data-theme="dark"] .detail-category-tabs button:hover{background:#1d2d42;border-color:#41546f}
html[data-theme="dark"] .detail-category-tabs button em{background:#233249;color:#9faec2}
html[data-theme="dark"] .detail-category-tabs button.active{background:linear-gradient(135deg,#473653,#5c436c);border-color:#735b82;color:#f6edff;box-shadow:0 5px 16px rgba(0,0,0,.26)}
html[data-theme="dark"] .detail-source-list-item{background:rgba(28,42,59,.38);color:#c2cfdf}
html[data-theme="dark"] .detail-source-list-item:hover{background:#1b2b3f;border-color:#30445f}
html[data-theme="dark"] .detail-source-list-item.active{background:#2b2534;border-color:#5f4b70;box-shadow:inset 3px 0 0 #a07ab8;color:#f0e5f7}
html[data-theme="dark"] .detail-source-list-main small{color:#8594a8}
html[data-theme="dark"] .detail-source-state.done{background:#173526;color:#9ed2b1;border-color:#28563b}
html[data-theme="dark"] .detail-source-state.pending{background:#202b3a;color:#8795a8;border-color:#303d50}
html[data-theme="dark"] .detail-list-footer{background:#101c2a;border-color:#29384d;color:#91a2b7}
html[data-theme="dark"] .detail-list-footer small{color:#75859a}
html[data-theme="dark"] .research-highlight{background:linear-gradient(transparent 42%,rgba(166,112,25,.62) 42%)!important;box-shadow:inset 0 -1px 0 rgba(239,181,67,.28)}
html[data-theme="dark"] .floating-highlight-action{background:#8b5d22!important;color:#fff3d4!important}
html[data-theme="dark"] .floating-highlight-action:hover{background:#a7702b!important}

@media(max-width:900px){
  .detail-pane-tabs{margin-left:auto}
  .detail-category-tabs{grid-template-columns:1fr}
  .detail-source-meta{align-items:flex-start;flex-direction:column}
  .detail-source-meta-actions{width:100%;justify-content:flex-start}
}

/* v2.0.13 - draggable detailed integration split */
.detailed-layout{
  grid-template-columns:minmax(340px,var(--detail-left,43%)) 8px minmax(0,1fr)!important;
  gap:0!important;
}
.detail-split-resizer{
  position:relative;
  min-width:8px;
  cursor:col-resize;
  touch-action:none;
  display:flex;
  align-items:stretch;
  justify-content:center;
  z-index:8;
}
.detail-split-resizer::before{
  content:"";
  position:absolute;
  inset:0 2px;
  border-radius:999px;
  background:transparent;
  transition:background .14s ease,box-shadow .14s ease;
}
.detail-split-resizer span{
  position:relative;
  width:2px;
  height:100%;
  min-height:160px;
  border-radius:999px;
  background:#cbd7e6;
  transition:width .14s ease,background .14s ease,box-shadow .14s ease;
}
.detail-split-resizer:hover::before,
.detailed-layout.is-resizing .detail-split-resizer::before{
  background:rgba(74,113,181,.10);
}
.detail-split-resizer:hover span,
.detailed-layout.is-resizing .detail-split-resizer span{
  width:3px;
  background:#6685bd;
  box-shadow:0 0 0 1px rgba(102,133,189,.08),0 0 14px rgba(74,113,181,.22);
}
.detailed-layout.is-resizing,
.detailed-layout.is-resizing *{
  cursor:col-resize!important;
  user-select:none!important;
}
html[data-theme="dark"] .detail-split-resizer span{background:#33455d}
html[data-theme="dark"] .detail-split-resizer:hover::before,
html[data-theme="dark"] .detailed-layout.is-resizing .detail-split-resizer::before{background:rgba(91,126,187,.14)}
html[data-theme="dark"] .detail-split-resizer:hover span,
html[data-theme="dark"] .detailed-layout.is-resizing .detail-split-resizer span{background:#6f8fc8;box-shadow:0 0 14px rgba(83,121,184,.28)}
@media(max-width:900px){
  .detailed-layout{grid-template-columns:1fr!important;gap:10px!important}
  .detail-split-resizer{display:none!important}
}

/* v2.0.15 - semantic button contrast + inheritance guard --------------------------
   Root-cause fix: Element Plus renders button labels in an inner <span>. Several
   page-level selectors also style spans (for metadata/muted text), which can
   accidentally override the label color even when the button itself is white.
   Force button descendants to inherit the button foreground, then use an AA-level
   palette for solid semantic actions in both themes. */
.el-button > span,
.el-button > span *,
.el-button .el-icon,
.el-button .el-icon * {
  color:inherit!important;
}

.el-button--primary:not(.is-plain):not(.is-link):not(.is-text) {
  --el-button-text-color:#fff;
  --el-button-bg-color:#3563d4;
  --el-button-border-color:#3563d4;
  --el-button-hover-text-color:#fff;
  --el-button-hover-bg-color:#2b53b8;
  --el-button-hover-border-color:#2b53b8;
  --el-button-active-text-color:#fff;
  --el-button-active-bg-color:#24489f;
  --el-button-active-border-color:#24489f;
  color:#fff!important;background:#3563d4!important;border-color:#3563d4!important;
}
.el-button--primary:not(.is-plain):not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#2b53b8!important;border-color:#2b53b8!important;
}
.el-button--primary.is-plain:not(.is-link):not(.is-text) {
  color:#2756c5!important;background:#edf3ff!important;border-color:#aabff3!important;
}
.el-button--primary.is-plain:not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#3563d4!important;border-color:#3563d4!important;
}

.el-button--success:not(.is-plain):not(.is-link):not(.is-text) {
  --el-button-text-color:#fff;
  --el-button-bg-color:#18764f;
  --el-button-border-color:#18764f;
  color:#fff!important;background:#18764f!important;border-color:#18764f!important;
}
.el-button--success:not(.is-plain):not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#145f41!important;border-color:#145f41!important;
}
.el-button--success.is-plain:not(.is-link):not(.is-text) {
  color:#176044!important;background:#eaf7f0!important;border-color:#9ecfb7!important;
}
.el-button--success.is-plain:not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#18764f!important;border-color:#18764f!important;
}

.el-button--warning:not(.is-plain):not(.is-link):not(.is-text) {
  color:#fff!important;background:#8a5a0a!important;border-color:#8a5a0a!important;
}
.el-button--warning:not(.is-plain):not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#724906!important;border-color:#724906!important;
}
.el-button--warning.is-plain:not(.is-link):not(.is-text) {
  color:#7c5109!important;background:#fff5df!important;border-color:#d9b56a!important;
}
.el-button--warning.is-plain:not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#8a5a0a!important;border-color:#8a5a0a!important;
}

.el-button--danger:not(.is-plain):not(.is-link):not(.is-text) {
  color:#fff!important;background:#b93443!important;border-color:#b93443!important;
}
.el-button--danger:not(.is-plain):not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#9d2b38!important;border-color:#9d2b38!important;
}
.el-button--danger.is-plain:not(.is-link):not(.is-text) {
  color:#a42f3d!important;background:#fff0f2!important;border-color:#e5aab1!important;
}
.el-button--danger.is-plain:not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#b93443!important;border-color:#b93443!important;
}

/* Detailed integration: processed state is semantic green, never selection blue. */
.integration-processed-button.el-button--success:not(.is-plain) {
  color:#fff!important;background:#18764f!important;border-color:#18764f!important;
  box-shadow:0 5px 14px rgba(24,118,79,.18);
}
.integration-processed-button.el-button--success.is-plain {
  color:#176044!important;background:#eaf7f0!important;border-color:#9ecfb7!important;
}

html[data-theme="dark"] .el-button--primary:not(.is-plain):not(.is-link):not(.is-text) {
  color:#fff!important;background:#3563d4!important;border-color:#3563d4!important;
}
html[data-theme="dark"] .el-button--primary:not(.is-plain):not(.is-link):not(.is-text):hover {
  color:#fff!important;background:#4773df!important;border-color:#4773df!important;
}
html[data-theme="dark"] .el-button--primary.is-plain:not(.is-link):not(.is-text) {
  color:#c8d5ff!important;background:#1c2b47!important;border-color:#48659a!important;
}
html[data-theme="dark"] .el-button--success:not(.is-plain):not(.is-link):not(.is-text) {
  color:#fff!important;background:#18764f!important;border-color:#18764f!important;
}
html[data-theme="dark"] .el-button--success.is-plain:not(.is-link):not(.is-text) {
  color:#b9e5cb!important;background:#153326!important;border-color:#3a7658!important;
}
html[data-theme="dark"] .el-button--warning:not(.is-plain):not(.is-link):not(.is-text) {
  color:#fff!important;background:#8a5a0a!important;border-color:#8a5a0a!important;
}
html[data-theme="dark"] .el-button--warning.is-plain:not(.is-link):not(.is-text) {
  color:#efd08f!important;background:#352917!important;border-color:#735927!important;
}
html[data-theme="dark"] .el-button--danger:not(.is-plain):not(.is-link):not(.is-text) {
  color:#fff!important;background:#b93443!important;border-color:#b93443!important;
}
html[data-theme="dark"] .el-button--danger.is-plain:not(.is-link):not(.is-text) {
  color:#ffc1c8!important;background:#3a2025!important;border-color:#7d4650!important;
}

/* Disabled buttons stay legible without looking enabled. */
.el-button.is-disabled,
.el-button.is-disabled:hover {
  opacity:.58;
}



/* v2.0.16 - detailed source metadata compact layout
   Keep article identity on its own row and actions on the next row so
   narrow source panes never squeeze author/source text into vertical glyphs. */
.detail-source-meta{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:7px!important;
}
.detail-source-meta-main{
  display:flex!important;
  align-items:baseline!important;
  gap:10px!important;
  width:100%;
  min-width:0;
}
.detail-source-meta-main>strong{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap!important;
  word-break:normal!important;
}
.detail-source-meta-main>.detail-source-origin{
  flex:0 1 42%;
  min-width:0;
  max-width:42%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap!important;
  word-break:keep-all!important;
  writing-mode:horizontal-tb!important;
  line-height:1.35;
}
.detail-source-meta-actions{
  width:100%;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
.detail-source-meta-actions .el-button{margin-left:0!important}
.detail-source-meta-actions .el-button>span{white-space:nowrap!important}
.detail-source-meta-actions .detail-category-select{width:118px!important;flex:0 0 118px!important}

/* unknown author is intentionally omitted; real author/source metadata stays compact */
@media(max-width:700px){
  .detail-source-meta-main{align-items:flex-start;flex-direction:column;gap:2px!important}
  .detail-source-meta-main>.detail-source-origin{max-width:100%;width:100%;flex:none}
}


/* v2.0.17 - detailed integration full-text search */
.detail-source-search{
  flex:none;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 8px 6px;
  background:rgba(240,246,253,.92);
  border-bottom:1px solid #d6e0ed;
}
.detail-source-search .el-input{flex:1;min-width:0}
.detail-source-search .el-input__wrapper{
  min-height:34px;
  background:rgba(255,255,255,.88);
  box-shadow:0 0 0 1px #d4deeb inset!important;
}
.detail-search-status{
  flex:none;
  color:#5b6f8c;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}
.detail-category-tabs.muted{
  opacity:.72;
}
.detail-category-tabs.muted::after{
  content:"搜索中 · 点击分类可退出搜索";
  grid-column:1/-1;
  text-align:center;
  color:#8a98aa;
  font-size:10px;
  line-height:1;
  margin-top:1px;
}
.detail-source-list-item.searching{
  align-items:flex-start;
  min-height:72px;
}
.detail-source-list-title-row{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.detail-source-list-title-row>strong{
  flex:1;
  min-width:0;
}
.detail-search-category{
  flex:none;
  font-style:normal;
  font-size:9px;
  line-height:1;
  padding:3px 5px;
  border-radius:999px;
  color:#526985;
  background:#e8eef7;
  border:1px solid #d4dfed;
  white-space:nowrap;
}
.detail-search-snippet{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:5px;
  padding:5px 6px;
  border-radius:6px;
  background:rgba(230,238,249,.72);
  color:#66768c;
  font-size:10px;
  line-height:1.45;
  word-break:break-word;
}

html[data-theme="dark"] .detail-source-search{
  background:#111f30;
  border-bottom-color:#29384d;
}
html[data-theme="dark"] .detail-source-search .el-input__wrapper{
  background:#152336;
  box-shadow:0 0 0 1px #2d4059 inset!important;
}
html[data-theme="dark"] .detail-search-status{color:#9eb1ca}
html[data-theme="dark"] .detail-category-tabs.muted::after{color:#76879d}
html[data-theme="dark"] .detail-search-category{
  color:#a9bad0;
  background:#213149;
  border-color:#324760;
}
html[data-theme="dark"] .detail-search-snippet{
  background:rgba(29,45,66,.78);
  color:#93a5ba;
}

.md-preview .md-source-anchor-current {
  border-radius: 6px;
  background: color-mix(in srgb, var(--el-color-warning) 14%, transparent) !important;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--el-color-warning) 76%, transparent);
  transition: background-color .18s ease, box-shadow .18s ease;
}

/* v2.0.19 - cross-source duplicate annotations for preliminary/detailed integration */
.source-cross-duplicate{
  position:relative!important;
  padding-right:34px!important;
  border-left:2px solid rgba(196,132,32,.42);
}
.source-duplicate-badge{
  position:absolute;
  top:2px;
  right:2px;
  z-index:2;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border:1px solid #d6a44c;
  border-radius:999px;
  background:#fff7df;
  color:#7b5415;
  font:800 11px/20px ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  text-align:center;
  cursor:pointer;
  user-select:none;
  box-shadow:0 2px 7px rgba(94,64,14,.12);
}
.source-duplicate-badge:hover{
  background:#f7e2a6;
  border-color:#b77a1f;
  color:#573804;
}
.material-card{height:124px;position:relative}
.material-card-dup-summary{
  margin-top:4px;
  color:#9a6519;
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.detail-source-meta-main{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
  gap:3px!important;
}
.detail-source-meta-main>.detail-source-meta-subline{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.detail-source-meta-main>.detail-source-meta-subline>.detail-source-origin{
  flex:0 1 auto;
  min-width:0;
  max-width:58%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap!important;
  word-break:keep-all!important;
  writing-mode:horizontal-tb!important;
  color:var(--muted);
  font-size:11px;
}
.detail-dup-summary{
  flex:none;
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid #e3c88b;
  background:#fff8e7;
  color:#835d1d;
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
}
.source-duplicate-popover{
  position:fixed;
  z-index:5000;
  width:min(430px,calc(100vw - 24px));
  max-height:min(430px,calc(100vh - 24px));
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid #d9e0ea;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 50px rgba(31,44,66,.22);
  color:#273246;
}
.source-duplicate-popover>header{
  flex:none;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px 9px;
  border-bottom:1px solid #e7ebf1;
  background:linear-gradient(180deg,#fffaf0,#fff);
}
.source-duplicate-popover>header>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.source-duplicate-popover>header span{font-size:10px;font-weight:800;letter-spacing:.12em;color:#a16a17}
.source-duplicate-popover>header strong{font-size:13px;color:#253146}
.source-duplicate-popover-head-actions{flex:none;display:flex;flex-direction:row!important;align-items:center;gap:6px!important;min-width:auto!important}
.source-duplicate-popover-head-actions .el-button{margin-left:0!important;height:28px;padding:0 9px}
.source-duplicate-close{
  border:0;background:transparent;color:#7f8998;font-size:20px;line-height:1;cursor:pointer;padding:1px 3px
}
.source-duplicate-current{
  flex:none;
  max-height:88px;
  overflow:auto;
  padding:9px 12px;
  background:#faf7ef;
  border-bottom:1px solid #eee5d2;
  color:#5e513b;
  font-size:12px;
  line-height:1.55;
}
.source-duplicate-match-list{min-height:0;overflow:auto;padding:6px}
.source-duplicate-match-list>article{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:8px;
  border-radius:8px;
  border:1px solid transparent;
}
.source-duplicate-match-list>article:hover{background:#f7f9fc;border-color:#e1e7ef}
.source-duplicate-match-list>article.is-current-source{background:#fffaf0;border-color:#ead6a6}
.source-duplicate-match-list>article.is-current-source:hover{background:#fff6e5;border-color:#dfc488}
.source-duplicate-match-main{flex:1;min-width:0}
.source-duplicate-match-title{display:flex;align-items:center;gap:7px;min-width:0}
.source-duplicate-match-title>strong{display:block;flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duplicate-processed-state{flex:none;display:inline-flex;align-items:center;height:20px;padding:0 7px;border:1px solid #d8dee8;border-radius:999px;background:#f5f7fa;color:#6f7b8c;font-size:10px;font-weight:750;white-space:nowrap}
.duplicate-processed-state.is-processed{border-color:#9fcdb8;background:#edf8f3;color:#1d7452}
.duplicate-current-state{flex:none;display:inline-flex;align-items:center;height:20px;padding:0 7px;border:1px solid #e1bd68;border-radius:999px;background:#fff5d9;color:#8a6417;font-size:10px;font-weight:800;white-space:nowrap}
.source-duplicate-match-main>span{display:block;margin-top:2px;font-size:10px;color:#8994a4}
.source-duplicate-match-main>p{margin:4px 0 0;padding-left:7px;border-left:2px solid #e0bf76;color:#687488;font-size:11px;line-height:1.45}
.source-duplicate-match-actions{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:5px}
.source-duplicate-match-actions .el-button{margin-left:0!important;min-width:72px}

html[data-theme="dark"] .source-cross-duplicate{border-left-color:rgba(214,164,76,.52)}
html[data-theme="dark"] .source-duplicate-badge{
  background:#3a2b15;
  border-color:#80612b;
  color:#f0cf8a;
  box-shadow:0 2px 8px rgba(0,0,0,.24);
}
html[data-theme="dark"] .source-duplicate-badge:hover{background:#4b381b;border-color:#a47b34;color:#ffe0a0}
html[data-theme="dark"] .material-card-dup-summary{color:#d7ae62}
html[data-theme="dark"] .detail-dup-summary{background:#332815;border-color:#66512a;color:#e0bd79}
html[data-theme="dark"] .source-duplicate-popover{background:#111d2c;border-color:#304157;color:#dce6f2;box-shadow:0 20px 55px rgba(0,0,0,.45)}
html[data-theme="dark"] .source-duplicate-popover>header{background:linear-gradient(180deg,#2d2417,#172232);border-bottom-color:#304157}
html[data-theme="dark"] .source-duplicate-popover>header span{color:#d6ad64}
html[data-theme="dark"] .source-duplicate-popover>header strong{color:#f1f5fa}
html[data-theme="dark"] .source-duplicate-close{color:#9aabbe}
html[data-theme="dark"] .source-duplicate-current{background:#211d17;border-bottom-color:#3a3429;color:#d2c6ad}
html[data-theme="dark"] .source-duplicate-match-list>article:hover{background:#19283a;border-color:#2d4057}
html[data-theme="dark"] .source-duplicate-match-list>article.is-current-source{background:#251f16;border-color:#5d4a29}
html[data-theme="dark"] .source-duplicate-match-list>article.is-current-source:hover{background:#302719;border-color:#765c2d}
html[data-theme="dark"] .source-duplicate-match-title>strong{color:#e9f0f8}
html[data-theme="dark"] .duplicate-processed-state{border-color:#3a4c61;background:#172536;color:#9cabbc}
html[data-theme="dark"] .duplicate-processed-state.is-processed{border-color:#315f50;background:#16362c;color:#86d4b6}
html[data-theme="dark"] .duplicate-current-state{border-color:#765c2d;background:#342916;color:#e3bd6c}
html[data-theme="dark"] .source-duplicate-match-main>span{color:#8fa0b4}
html[data-theme="dark"] .source-duplicate-match-main>p{border-left-color:#806332;color:#adbbcb}

@media(max-width:700px){
  .detail-source-meta-main>.detail-source-meta-subline{align-items:flex-start;flex-direction:column;gap:3px}
  .detail-source-meta-main>.detail-source-meta-subline>.detail-source-origin{max-width:100%}
  .source-duplicate-popover{left:12px!important;right:12px!important;width:auto!important}
}

/* v2.0.23 - detailed integration: remove content already covered by processed sources */
.detail-source-meta-actions .detail-dedupe-button.el-button{
  background:#95510d;
  border-color:#95510d;
  color:#fff;
  font-weight:750;
}
.detail-source-meta-actions .detail-dedupe-button.el-button:hover,
.detail-source-meta-actions .detail-dedupe-button.el-button:focus-visible{
  background:#743c08;
  border-color:#743c08;
  color:#fff;
}
.detail-source-meta-actions .detail-dedupe-button.el-button.is-disabled,
.detail-source-meta-actions .detail-dedupe-button.el-button.is-disabled:hover{
  opacity:1;
  background:#f3eee8;
  border-color:#ddd3c7;
  color:#9a8d7f;
}
html[data-theme="dark"] .detail-source-meta-actions .detail-dedupe-button.el-button{
  background:#a65b12;
  border-color:#b56a20;
  color:#fff;
}
html[data-theme="dark"] .detail-source-meta-actions .detail-dedupe-button.el-button:hover,
html[data-theme="dark"] .detail-source-meta-actions .detail-dedupe-button.el-button:focus-visible{
  background:#c06a13;
  border-color:#d27c24;
  color:#fff;
}
html[data-theme="dark"] .detail-source-meta-actions .detail-dedupe-button.el-button.is-disabled,
html[data-theme="dark"] .detail-source-meta-actions .detail-dedupe-button.el-button.is-disabled:hover{
  background:#202832;
  border-color:#344152;
  color:#728095;
}

/* v2.0.24 详细整合：分屏默认 + Markdown 悬浮目录 + 选区删除 */
.md-body{position:relative}
.md-floating-toc{position:absolute;top:10px;right:10px;z-index:12;display:flex;align-items:flex-start;pointer-events:none}
.md-editor.mode-split .md-floating-toc{right:calc(50% + 10px)}
.md-floating-toc>*{pointer-events:auto}
.md-toc-toggle{height:30px!important;min-width:58px!important;padding:0 9px!important;border:1px solid #cbd6e7!important;border-radius:8px!important;background:rgba(248,250,253,.96)!important;color:#44536b!important;box-shadow:0 5px 18px rgba(25,40,66,.12)!important;backdrop-filter:blur(8px)}
.md-toc-toggle b{font-size:18px;line-height:1;font-weight:500;margin-left:3px}
.md-toc-panel{width:230px;max-height:min(62vh,520px);overflow:auto;margin-right:6px;border:1px solid #d7e0ed;border-radius:10px;background:rgba(251,252,254,.97);box-shadow:0 10px 30px rgba(24,37,59,.14);backdrop-filter:blur(10px)}
.md-toc-title{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border-bottom:1px solid #e4e9f1;background:rgba(251,252,254,.98);font-size:12px;font-weight:800;color:#344157}
.md-toc-title small{font-weight:600;color:#8b97a9}
.md-toc-item{display:block!important;width:100%!important;height:auto!important;min-height:29px!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:left!important;justify-content:flex-start!important;padding-top:5px!important;padding-bottom:5px!important;padding-right:9px!important;color:#59677d!important;font-size:12px!important;line-height:1.45!important}
.md-toc-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.md-toc-item:hover{background:#edf3fb!important;color:#244f9c!important}
.md-floating-toc.collapsed .md-toc-toggle{box-shadow:0 4px 14px rgba(25,40,66,.12)!important}
.floating-selection-actions{position:fixed;z-index:3000;display:flex;align-items:center;gap:5px;padding:4px;border-radius:10px;background:rgba(20,27,40,.92);box-shadow:0 8px 24px rgba(20,31,52,.22);backdrop-filter:blur(8px)}
.floating-selection-actions .floating-highlight-action,.floating-selection-actions .floating-delete-action{position:static!important;z-index:auto!important;box-shadow:none!important;animation:none!important;border:0;border-radius:7px;padding:6px 10px;font-size:13px;font-weight:750;cursor:pointer}
.floating-selection-actions .floating-highlight-action{background:#9a6421!important;color:#fff9ed!important}
.floating-selection-actions .floating-highlight-action:hover{background:#b27627!important}
.floating-delete-action{background:#963d46;color:#fff}
.floating-delete-action:hover{background:#b04752}
html[data-theme="dark"] .md-toc-toggle{border-color:#445168!important;background:rgba(28,35,47,.96)!important;color:#d9e2f0!important}
html[data-theme="dark"] .md-toc-panel{border-color:#3c485b;background:rgba(25,31,42,.97);box-shadow:0 12px 32px rgba(0,0,0,.28)}
html[data-theme="dark"] .md-toc-title{border-bottom-color:#3a4658;background:rgba(25,31,42,.98);color:#e1e8f3}
html[data-theme="dark"] .md-toc-title small{color:#8f9aad}
html[data-theme="dark"] .md-toc-item{color:#b8c2d2!important}
html[data-theme="dark"] .md-toc-item:hover{background:#303b4f!important;color:#eef4ff!important}
html[data-theme="dark"] .floating-selection-actions{background:rgba(13,18,27,.94)}
@media(max-width:900px){.md-floating-toc{display:none}}

/* v2.0.25 详细整合：原始资料正文轻量编辑 */
.source-inline-editing-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 14px;
  border-bottom:1px solid #d9e4f2;
  background:#eef5ff;
  color:#42556f;
  font-size:11px;
}
.source-inline-editing-note small{flex:none;color:#74849a;white-space:nowrap}
.source-inline-editor{
  outline:none;
  min-height:calc(100% - 42px);
  cursor:text;
  background:#fffdf8;
  box-shadow:inset 3px 0 0 #b9832f;
}
.source-inline-editor:focus{
  background:#fffefa;
  box-shadow:inset 3px 0 0 #9c6b20;
}
.source-inline-editor p:hover,
.source-inline-editor li:hover,
.source-inline-editor blockquote:hover,
.source-inline-editor h1:hover,
.source-inline-editor h2:hover,
.source-inline-editor h3:hover,
.source-inline-editor h4:hover,
.source-inline-editor h5:hover,
.source-inline-editor h6:hover{
  background:rgba(185,131,47,.065);
}
html[data-theme="dark"] .source-inline-editing-note{
  background:#15263b;
  border-bottom-color:#304157;
  color:#b8c6d8;
}
html[data-theme="dark"] .source-inline-editing-note small{color:#8fa0b5}
html[data-theme="dark"] .source-inline-editor,
html[data-theme="dark"] .source-inline-editor:focus{
  background:#151a1f;
  box-shadow:inset 3px 0 0 #c39243;
}
html[data-theme="dark"] .source-inline-editor p:hover,
html[data-theme="dark"] .source-inline-editor li:hover,
html[data-theme="dark"] .source-inline-editor blockquote:hover,
html[data-theme="dark"] .source-inline-editor h1:hover,
html[data-theme="dark"] .source-inline-editor h2:hover,
html[data-theme="dark"] .source-inline-editor h3:hover,
html[data-theme="dark"] .source-inline-editor h4:hover,
html[data-theme="dark"] .source-inline-editor h5:hover,
html[data-theme="dark"] .source-inline-editor h6:hover{
  background:rgba(195,146,67,.09);
}
@media(max-width:900px){
  .source-inline-editing-note{align-items:flex-start;flex-direction:column;gap:2px}
}

/* v2.0.30 - project completion and archive workflow */
.project-filter-bar {
  display:flex;
  align-items:center;
  gap:6px;
  margin: 0 0 14px;
  padding:4px;
  width:max-content;
  max-width:100%;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}
.project-filter-bar button {
  border:0;
  background:transparent;
  color:var(--muted);
  min-height:32px;
  padding:0 11px;
  border-radius:7px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}
.project-filter-bar button b {
  margin-left:5px;
  font-size:11px;
  color:#9aa4b5;
  font-weight:700;
}
.project-filter-bar button:hover { background:var(--panel-soft); color:var(--text); }
.project-filter-bar button.active { background:var(--blue-soft); color:var(--blue-strong); }
.project-filter-bar button.active b { color:inherit; }
.project-card-archived { opacity:.78; }
.project-card-archived:hover { opacity:1; }
.project-filter-empty { margin-top:0; padding:46px 24px; }
.project-title-line { display:flex; align-items:center; gap:8px; min-width:0; }
.workspace-project-status {
  flex:none;
  display:inline-flex;
  align-items:center;
  height:19px;
  padding:0 6px;
  border-radius:5px;
  font-size:10px;
  font-style:normal;
  font-weight:750;
  border:1px solid rgba(255,255,255,.12);
  color:#b8c5da;
  background:rgba(255,255,255,.06);
}
.workspace-project-status.project-status-done { color:#90e1b8; border-color:rgba(69,196,128,.22); background:rgba(42,170,120,.11); }
.workspace-project-status.project-status-archived { color:#b8c0cd; background:rgba(255,255,255,.04); }
.workspace-project-status.project-status-collecting { color:#9db7ff; border-color:rgba(111,145,255,.22); background:rgba(79,124,255,.10); }
.workspace-project-status.project-status-organizing { color:#f1c870; border-color:rgba(227,161,40,.22); background:rgba(227,161,40,.09); }
.workspace-project-status.project-status-pending { color:#d5b8ff; border-color:rgba(163,110,232,.28); background:rgba(133,83,196,.12); }
html[data-theme="dark"] .project-filter-bar { background:#151d2b; border-color:#2a3547; }
html[data-theme="dark"] .project-filter-bar button:hover { background:#202a3a; color:#eef3fb; }
html[data-theme="dark"] .project-filter-bar button.active { background:#20345e; color:#a9c3ff; }

/* v2.0.31 · 完整资料 → 最终资料双栏收口工作区 */
.final-production-stage{min-height:0}
.final-production-actions{flex-wrap:wrap;justify-content:flex-end}
.deliverable-status-pill,.deliverable-mini-state,.usage-count-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;font-size:11px;font-weight:800;line-height:1;padding:6px 9px;border:1px solid #d8dfeb;background:#f4f6fa;color:#67748a}
.deliverable-status-pill.is-draft{background:#fff8e9;border-color:#ead7a8;color:#8a6926}
.deliverable-status-pill.is-done,.deliverable-mini-state.is-done{background:#e8f6ed;border-color:#c8e5d3;color:#347a51}
.usage-count-badge{background:#f1f3f6;border-color:#d8dee7;color:#69768a}
.final-dual-workspace{--final-left:50%;display:grid;grid-template-columns:minmax(0,var(--final-left)) 8px minmax(0,1fr);gap:0;min-height:0;align-items:stretch}
.final-dual-workspace.is-resizing{cursor:col-resize;user-select:none}
.final-dual-panel{min-width:0;overflow:visible;padding:0;display:flex;flex-direction:column}
.final-dual-panel-head{min-height:92px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:13px 14px 11px;border-bottom:1px solid var(--line);background:var(--panel)}
.final-dual-panel-head>div:first-child{min-width:0;flex:1}
.final-dual-panel-head h3{margin:2px 0 4px;font-size:17px;color:var(--text)}
.final-dual-panel-head p{margin:0;max-width:620px;font-size:11px;line-height:1.55;color:var(--muted)}
.final-dual-panel-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:48%;font-size:11px;color:var(--muted)}
.final-dual-panel>.md-editor{border:0!important;border-radius:0 0 12px 12px!important;min-width:0}
.final-dual-panel>.md-editor .md-body{min-height:720px}
.final-dual-resizer{position:relative;display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;background:transparent}
.final-dual-resizer::before{content:"";position:absolute;top:0;bottom:0;left:3px;width:2px;border-radius:2px;background:#d9e1ec;transition:.15s}
.final-dual-resizer:hover::before,.final-dual-workspace.is-resizing .final-dual-resizer::before{left:2px;width:4px;background:#9aabc2}
.final-dual-resizer span{position:relative;z-index:1;display:grid;place-items:center;width:16px;height:34px;border:1px solid #d3dce8;border-radius:8px;background:var(--panel);color:#8592a4;font-size:17px;line-height:1}

/* v2.0.63 · “已阅”只记录阅读进度，不写入 Markdown 本身。
   读过的文字主动降权：不再用绿色强调，而是降低文字亮度，让未阅内容自然成为视觉重点。 */
::highlight(mrw-final-usage){background:rgba(100,116,139,.055);color:rgba(73,86,105,.58)}
html[data-theme="dark"] ::highlight(mrw-final-usage){background:rgba(100,116,139,.075);color:rgba(154,167,187,.64)}
/* 已阅范围如果恰好完全位于粗体中，不能再用灰色文字绘制，否则蓝底上的字会失去对比度。 */
::highlight(mrw-final-usage-bold){background:transparent;color:#163f7a}
html[data-theme="dark"] ::highlight(mrw-final-usage-bold){background:transparent;color:#ffffff}
.floating-usage-actions{position:fixed;z-index:4200;display:flex;gap:5px;padding:5px;border:1px solid #cfd9e8;border-radius:9px;background:rgba(250,252,255,.98);box-shadow:0 9px 28px rgba(24,38,63,.18);backdrop-filter:blur(9px)}
.floating-usage-actions button{height:30px;padding:0 10px;border:0;border-radius:6px;cursor:pointer;font-size:12px;font-weight:800;white-space:nowrap}
/* 这里的“标为高光”复用了全局 .floating-highlight-action。全局规则是 position:fixed，
   放进“已阅”组合浮层后会脱离 flex 布局并压到另一个按钮上，必须在组合浮层内恢复为普通按钮。 */
.floating-usage-actions .floating-highlight-action{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  flex:none;
  box-shadow:none!important;
  animation:none!important;
}
/* “已阅”是降权状态，不使用绿色成功色，避免和高光/完成混淆。 */
.floating-usage-toggle{background:#eef1f5;color:#536176}
.floating-usage-toggle:hover{background:#e1e6ed;color:#3e4c61}
html[data-theme="dark"] .floating-usage-actions{border-color:#3d4a60;background:rgba(26,33,45,.98);box-shadow:0 12px 30px rgba(0,0,0,.32)}
html[data-theme="dark"] .floating-usage-toggle{background:#293342;color:#a8b3c3}
html[data-theme="dark"] .floating-usage-toggle:hover{background:#344154;color:#c6cfdb}

/* 可视化编辑器图片工具 */
.md-visual-editor img.md-image-selected{outline:3px solid rgba(59,111,190,.62);outline-offset:3px;border-radius:2px}
.md-image-tool-popover{position:fixed;z-index:6000;display:flex;align-items:center;gap:5px;padding:6px;border:1px solid #cfd9e8;border-radius:9px;background:rgba(250,252,255,.98);box-shadow:0 10px 30px rgba(22,37,61,.2);backdrop-filter:blur(10px)}
.md-image-tool-popover button{height:31px;padding:0 9px;border:1px solid #d7dfeb;border-radius:6px;background:#fff;color:#40506a;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.md-image-tool-popover button:hover{border-color:#9db2d0;background:#eef4fc;color:#28579a}
.md-image-tool-popover button:disabled{opacity:.48;cursor:wait}
html[data-theme="dark"] .md-image-tool-popover{border-color:#3e4b61;background:rgba(25,32,43,.98);box-shadow:0 12px 34px rgba(0,0,0,.36)}
html[data-theme="dark"] .md-image-tool-popover button{border-color:#455369;background:#222d3d;color:#c6d4e7}
html[data-theme="dark"] .md-image-tool-popover button:hover{border-color:#60789b;background:#2a3a50;color:#eef5ff}

html[data-theme="dark"] .final-dual-panel-head{background:var(--panel)}
html[data-theme="dark"] .deliverable-status-pill,html[data-theme="dark"] .deliverable-mini-state{border-color:#3d495d;background:#202b39;color:#9eacbf}
html[data-theme="dark"] .deliverable-status-pill.is-draft{background:#3b321d;border-color:#5f512a;color:#e3c779}
html[data-theme="dark"] .deliverable-status-pill.is-done,html[data-theme="dark"] .deliverable-mini-state.is-done{background:#173626;border-color:#28563c;color:#9fd6b2}
html[data-theme="dark"] .usage-count-badge{background:#242d3a;border-color:#3a4658;color:#8f9caf}
html[data-theme="dark"] .final-dual-resizer::before{background:#334257}
html[data-theme="dark"] .final-dual-resizer:hover::before,html[data-theme="dark"] .final-dual-workspace.is-resizing .final-dual-resizer::before{background:#6780a3}
html[data-theme="dark"] .final-dual-resizer span{border-color:#425067;background:#1a2330;color:#90a0b5}

@media (max-width:1180px){
  .final-dual-panel-head{flex-direction:column;gap:8px}
  .final-dual-panel-meta{max-width:none;justify-content:flex-start}
}
@media (max-width:980px){
  .final-dual-workspace{display:flex;flex-direction:column;gap:12px}
  .final-dual-resizer{display:none}
  .final-dual-panel>.md-editor .md-body{min-height:580px}
}

/* v2.0.33 — 最终阶段：左右编辑器完全独立滚动，工具栏固定在各自编辑器顶部，并防止左右串栏 */
.final-production-stage{
  height:calc(100vh - 144px);
  height:calc(100dvh - 144px);
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.final-production-stage>.final-head{flex:none}
.final-production-stage>.final-dual-workspace{
  flex:1 1 0;
  min-height:0;
  overflow:hidden;
}
.final-production-stage .final-dual-panel{
  min-height:0;
  overflow:hidden;
}
.final-production-stage .final-dual-panel-head{flex:none}
.final-production-stage .final-dual-panel>.md-editor{
  flex:1 1 0;
  min-height:0;
  height:auto;
  overflow:hidden;
}
.final-production-stage .final-dual-panel>.md-editor .md-toolbar{
  position:sticky;
  top:0;
  z-index:12;
  width:100%;
  max-width:100%;
  height:auto;
  min-height:38px;
  flex-wrap:wrap;
  align-content:center;
  gap:3px 6px;
  overflow:hidden;
}
.final-production-stage .final-dual-panel>.md-editor .md-toolbar-group{
  min-width:0;
  flex-wrap:wrap;
}
.final-production-stage .final-dual-panel>.md-editor .md-toolbar-right{
  flex:1 1 420px;
  justify-content:flex-end;
  margin-left:auto;
}
.final-production-stage .final-dual-panel>.md-editor .md-toolbar button{
  height:26px;
  min-width:26px;
  padding:0 5px;
  font-size:11px;
}
.final-production-stage .final-dual-panel>.md-editor .md-count{font-size:10px}
.final-production-stage .final-dual-panel>.md-editor .md-body{
  flex:1 1 0;
  min-height:0!important;
  height:auto;
  overflow:hidden;
}
.final-production-stage .final-dual-panel>.md-editor .md-textarea,
.final-production-stage .final-dual-panel>.md-editor .md-visual-editor,
.final-production-stage .final-dual-panel>.md-editor .md-preview{
  min-height:0!important;
  height:100%;
  max-height:none;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

@media (max-width:980px){
  .final-production-stage{
    height:auto;
    min-height:0;
    overflow:visible;
  }
  .final-production-stage>.final-dual-workspace{
    flex:none;
    overflow:visible;
  }
  .final-production-stage .final-dual-panel{
    height:min(760px,calc(100dvh - 130px));
    min-height:560px;
  }
}


/* v2.0.36: 视频拖拽上传状态与整块编辑区接收拖拽 */
.md-body{position:relative}
.md-drop-overlay{position:absolute;inset:0;z-index:18;display:flex;align-items:center;justify-content:center;background:rgba(44,93,205,.08);border:2px dashed rgba(73,118,220,.62);border-radius:8px;pointer-events:none;backdrop-filter:blur(1px)}
.md-drop-overlay-card{display:flex;flex-direction:column;align-items:center;gap:7px;max-width:360px;padding:18px 24px;border:1px solid rgba(115,145,214,.45);border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 12px 36px rgba(31,45,80,.16);color:#34445d;text-align:center}
.md-drop-overlay-card .el-icon{font-size:28px;color:#3565db}
.md-drop-overlay-card strong{font-size:15px;color:#243044}
.md-drop-overlay-card span{font-size:12px;color:#748199}
html[data-theme="dark"] .md-drop-overlay{background:rgba(69,112,220,.12);border-color:rgba(103,143,235,.72)}
html[data-theme="dark"] .md-drop-overlay-card{background:rgba(27,36,52,.96);border-color:#40506b;color:#d8e2ef;box-shadow:0 16px 42px rgba(0,0,0,.28)}
html[data-theme="dark"] .md-drop-overlay-card strong{color:#eef3ff}
html[data-theme="dark"] .md-drop-overlay-card span{color:#9ca9be}

/* v2.0.37 — final step density + optional Wolai workspace */
.workspace-main.is-final-step{
  padding:6px 6px 8px;
}
.final-production-stage{
  width:100%;
  max-width:none;
  height:calc(100vh - 110px);
  height:calc(100dvh - 110px);
}
.final-head-compact{
  min-height:38px;
  margin:0 0 6px!important;
  align-items:center;
  gap:10px;
}
.final-head-title-row{
  min-width:0;
  display:flex;
  align-items:center;
}
.final-head-compact h2{
  margin:0;
  font-size:18px;
  line-height:1.2;
  white-space:nowrap;
}
.final-head-compact .final-production-actions{
  flex-wrap:nowrap;
  gap:6px;
}
.final-head-compact .el-button{
  min-height:28px;
  padding:4px 9px;
}
.final-head-compact .deliverable-status-pill{
  white-space:nowrap;
}
.final-dual-panel-head.final-dual-panel-head-compact{
  min-height:44px;
  height:44px;
  padding:6px 10px;
  align-items:center;
  gap:8px;
}
.final-dual-panel-head-compact>h3{
  flex:none;
  margin:0;
  font-size:15px;
  line-height:1;
  white-space:nowrap;
}
.final-dual-panel-head-compact .final-dual-panel-meta{
  flex:1;
  min-width:0;
  max-width:none;
  flex-wrap:nowrap;
  white-space:nowrap;
  gap:6px;
}
.final-dual-panel-head-compact .el-button{
  min-height:26px;
  padding:3px 8px;
}
.deliverable-workspace-switch{
  flex:none;
}
.final-production-stage .final-dual-panel>.md-editor .md-toolbar.is-single-line{
  height:36px;
  min-height:36px;
  flex-wrap:nowrap;
  align-content:center;
  overflow:visible;
  gap:4px;
  padding:4px 6px;
}
.final-production-stage .md-toolbar.is-single-line .md-toolbar-group{
  flex-wrap:nowrap;
  white-space:nowrap;
}
.final-production-stage .md-toolbar.is-single-line .md-toolbar-primary{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
}
.final-production-stage .md-toolbar.is-single-line .md-toolbar-compact-right{
  flex:0 0 auto;
  min-width:auto;
  margin-left:auto;
  justify-content:flex-end;
}
.final-production-stage .md-toolbar.is-single-line button{
  height:26px;
  min-width:25px;
  padding:0 5px;
  font-size:11px;
  flex:none;
}
.final-production-stage .md-toolbar.is-single-line .md-more-trigger{
  min-width:48px;
}
.final-production-stage .md-toolbar.is-single-line .md-duplicate-status-compact{
  min-width:auto;
  padding:0 6px;
}
.wolai-embed-shell{
  flex:1 1 0;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--panel);
}

/* v2.0.38 — Wolai 作为第六步正式右侧工作区 */
.final-wolai-panel-meta{justify-content:flex-end;}
.wolai-bound-badge,
.wolai-unbound-badge{
  flex:none;
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  font-size:10px;
  white-space:nowrap;
}
.wolai-bound-badge{
  color:#3aa675;
  background:rgba(58,166,117,.10);
  border:1px solid rgba(58,166,117,.25);
}
.wolai-unbound-badge{
  color:var(--muted);
  background:var(--panel-soft);
  border:1px solid var(--line);
}
.wolai-primary-workspace{position:relative;}
.wolai-embed-frame{
  display:block;
  flex:1 1 0;
  min-height:0;
  width:100%;
  border:0;
  background:#fff;
}
.wolai-binding-empty{
  flex:1 1 0;
  min-height:0;
  display:grid;
  place-items:center;
  padding:24px;
  background:var(--panel);
}
.wolai-binding-empty-inner{
  width:min(420px,90%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
  color:var(--muted);
}
.wolai-binding-empty-inner strong{color:var(--text);font-size:16px;}
.wolai-binding-empty-inner span{font-size:12px;line-height:1.7;}

@media (max-width:1250px){
  .final-dual-panel-head.final-dual-panel-head-compact{
    height:auto;
    min-height:44px;
  }
  .final-dual-panel-head-compact .final-dual-panel-meta{
    overflow-x:auto;
    scrollbar-width:none;
  }
  .final-dual-panel-head-compact .final-dual-panel-meta::-webkit-scrollbar{display:none}
}

/* v2.0.40 核心数据：人物首屏、紧凑顶部导航与深色主题修复 */
.core-data-dialog{max-width:1480px!important;height:94vh;margin-bottom:0!important;display:flex;flex-direction:column;overflow:hidden}
.core-data-dialog .el-dialog__header{flex:none;margin-right:0;padding:13px 18px 11px;border-bottom:1px solid var(--line)}
.core-data-dialog .el-dialog__body{flex:1;min-height:0;padding:0 18px 18px;overflow:hidden}
.core-data-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-right:30px}
.core-data-dialog-head>div:first-child{min-width:0;display:flex;align-items:baseline;gap:10px}
.core-data-dialog-head strong{font-size:18px;color:var(--text)}
.core-data-dialog-head span{font-size:11px;color:var(--muted)}
.core-data-dialog-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.core-data-dialog-actions .core-data-stale{padding:4px 8px;border-radius:999px;background:#fff5d9;color:#9a6b06;font-weight:700}
.core-data-shell{height:100%;min-height:0;position:relative}
.core-data-generating{height:100%;min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);text-align:center}
.core-data-generating .el-icon{font-size:30px;color:var(--blue)}
.core-data-generating strong{font-size:16px;color:var(--text)}
.core-data-generating span{font-size:12px;max-width:560px;line-height:1.7}
.core-data-alerts{display:flex;gap:8px;padding-top:10px;flex-wrap:wrap}
.core-data-alert{padding:7px 10px;border:1px solid var(--line);border-radius:8px;font-size:11px}
.core-data-alert.is-warning{background:#fff9e9;border-color:#ead7a0;color:#8b6413}
.core-data-tabs{height:100%;display:flex;flex-direction:column}
.core-data-alerts+.core-data-tabs{height:calc(100% - 47px)}
.core-data-tabs>.el-tabs__header{order:-1;flex:none;margin:0;padding:7px 0 0;background:var(--panel);position:relative;z-index:4}
.core-data-tabs>.el-tabs__content{order:0;flex:1;min-height:0;overflow:auto;padding:8px 3px 18px}
.core-data-tabs .el-tab-pane{min-height:100%}
.core-data-tabs .el-tabs__item{max-width:150px;height:34px;padding:0 13px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.core-people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 1px 18px}
.core-people-card{appearance:none;width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);color:var(--text);padding:13px 14px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.core-people-card:hover{border-color:var(--blue);background:var(--blue-soft);transform:translateY(-1px)}
.core-people-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.core-people-card header strong{min-width:0;font-size:15px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.core-people-card header span{flex:none;padding:2px 7px;border:1px solid var(--line);border-radius:999px;font-size:10px;color:var(--muted);background:var(--panel)}
.core-people-card-meta{display:flex;gap:6px 10px;flex-wrap:wrap;margin-bottom:7px;font-size:10px;color:var(--muted)}
.core-people-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:42px;margin:0;font-size:12px;line-height:1.7;color:var(--text)}
.core-people-card small{display:block;margin-top:9px;font-size:10px;color:var(--blue)}
.core-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:8px 0 12px}
.core-overview-grid article{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel-soft)}
.core-overview-grid article.is-wide{grid-column:span 2}
.core-overview-grid span{display:block;margin-bottom:4px;font-size:10px;color:var(--muted)}
.core-overview-grid strong{display:block;font-size:13px;line-height:1.55;color:var(--text);font-weight:750;word-break:break-word}
.core-section-stack{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.core-section-stack section,.core-two-columns section,.core-person-grid section,.core-person-relation,.core-person-timeline,.core-person-unknown{border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:11px 13px}
.core-section-stack section:nth-child(2),.core-section-stack section:nth-child(5){grid-column:span 2}
.core-section-stack h4,.core-two-columns h4,.core-person-grid h4,.core-person-relation h4,.core-person-timeline h4,.core-person-unknown h4{margin:0 0 6px;font-size:12px;color:var(--text)}
.core-section-stack p,.core-person-relation p{margin:0;font-size:12px;line-height:1.8;color:var(--text);white-space:pre-wrap}
.core-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
.core-two-columns ul,.core-person-grid ul,.core-person-unknown ul{margin:0;padding-left:18px}
.core-two-columns li,.core-person-grid li,.core-person-unknown li{margin:4px 0;font-size:12px;line-height:1.65;color:var(--text)}
.core-timeline{padding:10px 2px 2px}
.core-timeline>article{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;min-height:82px}
.core-time-rail{position:relative;padding:2px 18px 18px 0;text-align:right;border-right:1px solid var(--line)}
.core-time-rail b{font-size:11px;color:var(--blue);line-height:1.45}
.core-time-rail i{position:absolute;right:-5px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--panel);border:2px solid var(--blue)}
.core-time-card{margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.core-time-card header,.core-card-list article header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.core-time-card header strong,.core-card-list article header strong{font-size:12px;color:var(--text)}
.core-source-type{flex:none;padding:2px 6px;border:1px solid var(--line);border-radius:999px;font-size:9px;color:var(--muted);background:var(--panel-soft)}
.core-time-card p,.core-card-list article p{margin:6px 0;font-size:12px;line-height:1.75;color:var(--text);white-space:pre-wrap}
.core-time-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--muted)}
.core-time-card small,.core-card-list article small{display:block;margin-top:5px;font-size:10px;line-height:1.55;color:var(--muted)}
.core-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-top:9px}
.core-card-list article{min-width:0;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.core-person-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:11px 2px 13px;border-bottom:1px solid var(--line);margin-bottom:10px}
.core-person-head>div:first-child{min-width:0}
.core-person-head>div:first-child strong{display:block;font-size:20px;color:var(--text)}
.core-person-head>div:first-child span{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.core-person-head-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.core-person-switcher{width:150px}
.core-person-tags{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.core-person-tags span{padding:4px 8px;border-radius:999px;background:#eef4ff;color:#456aab;font-size:10px;font-weight:700}
.core-person-relation{margin-bottom:9px;background:#f8fbff}
.core-person-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.core-person-timeline{margin-top:9px}
.core-person-timeline>div{display:grid;grid-template-columns:125px minmax(0,1fr) 70px;gap:10px;align-items:start;padding:8px 0;border-top:1px dashed var(--line)}
.core-person-timeline>div:first-of-type{border-top:0}
.core-person-timeline b{font-size:10px;color:var(--blue)}
.core-person-timeline p{margin:0;font-size:12px;line-height:1.65;color:var(--text)}
.core-person-timeline span{font-size:9px;color:var(--muted);text-align:right}
.core-person-unknown{margin-top:9px;background:#fffaf0}
html[data-theme="dark"] .core-data-dialog .el-dialog__body,
html[data-theme="dark"] .core-data-shell,
html[data-theme="dark"] .core-data-tabs>.el-tabs__header{background:var(--panel)!important;color:var(--text)}
html[data-theme="dark"] .core-overview-grid article,
html[data-theme="dark"] .core-people-card,
html[data-theme="dark"] .core-source-type{background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-theme="dark"] .core-people-card:hover{background:var(--blue-soft)!important;border-color:var(--blue)!important}
html[data-theme="dark"] .core-people-card header span{background:#182231;color:#aeb9cb;border-color:#3a465b}
html[data-theme="dark"] .core-data-dialog-actions .core-data-stale{background:#463714;color:#e7c46e}
html[data-theme="dark"] .core-data-alert.is-warning{background:#302814;border-color:#5d4d26;color:#d8b85f}
html[data-theme="dark"] .core-person-tags span{background:#20304b;color:#9bb8e7}
html[data-theme="dark"] .core-person-relation{background:#192637}
html[data-theme="dark"] .core-person-unknown{background:#2a2518}
@media (max-width:980px){
  .core-data-dialog{width:98vw!important;height:96vh}
  .core-data-dialog .el-dialog__body{padding:0 10px 12px}
  .core-data-dialog-head{align-items:flex-start;flex-direction:column;gap:6px;padding-right:22px}
  .core-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .core-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .core-section-stack,.core-two-columns,.core-person-grid,.core-card-list{grid-template-columns:1fr}
  .core-section-stack section:nth-child(2),.core-section-stack section:nth-child(5){grid-column:auto}
  .core-timeline>article{grid-template-columns:100px minmax(0,1fr);gap:10px}
}

@media (max-width:620px){.core-people-grid{grid-template-columns:1fr}.core-person-head-actions{justify-content:flex-start}.core-person-switcher{width:100%}}

/* v2.0.42 核心数据：记忆 Tab + 主要人物独立 Tab + 其他人物合并 */
.core-people-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 2px 0}
.core-people-section-head>div{min-width:0;display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.core-people-section-head strong{font-size:14px;color:var(--text)}
.core-people-section-head span{font-size:10px;color:var(--muted)}
.core-people-section-head b{flex:none;padding:3px 7px;border:1px solid var(--line);border-radius:999px;background:var(--panel-soft);font-size:10px;color:var(--muted)}
.core-people-card.is-main{border-color:color-mix(in srgb,var(--blue) 30%,var(--line));}
.core-supporting-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 1px 16px;padding:11px 13px;border:1px dashed var(--line);border-radius:9px;background:var(--panel-soft)}
.core-supporting-summary>div{min-width:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.core-supporting-summary strong{font-size:12px;color:var(--text)}
.core-supporting-summary span{font-size:10px;color:var(--muted)}
.core-supporting-head .core-person-switcher{width:190px}
.core-data-tabs>.el-tabs__header .el-tabs__item{max-width:112px;padding:0 11px}
html[data-theme="dark"] .core-supporting-summary,
html[data-theme="dark"] .core-people-section-head b{background:var(--panel-soft)!important;border-color:var(--line)!important;color:var(--text)}
@media (max-width:620px){.core-supporting-summary{align-items:flex-start;flex-direction:column}.core-supporting-head .core-person-switcher{width:100%}}


/* v2.0.42 — 搜索体验：编辑器文内搜索、资料命中定位、全局搜索独立查看器 */
.md-findbar{
  flex:none;min-height:38px;display:flex;align-items:center;gap:7px;padding:5px 8px;
  border-bottom:1px solid var(--line);background:#f7f9fc;position:sticky;top:38px;z-index:5;
}
.md-findbar>.el-icon{flex:none;color:#74829a}
.md-findbar input{
  flex:1;min-width:90px;height:28px;border:1px solid #d8e0eb;border-radius:7px;background:#fff;
  color:var(--text);outline:0;padding:0 9px;font:inherit;font-size:12px;
}
.md-findbar input:focus{border-color:#8aa7ef;box-shadow:0 0 0 2px rgba(65,111,224,.10)}
.md-findbar-count{flex:none;min-width:52px;text-align:center;font-size:10px;color:var(--muted)}
.md-findbar button{
  flex:none;width:28px;height:28px;border:1px solid var(--line);border-radius:6px;background:var(--panel);
  color:var(--text);cursor:pointer;
}
.md-findbar button:hover:not(:disabled){background:var(--blue-soft);border-color:#b7c8f2;color:var(--blue)}
.md-findbar button:disabled{opacity:.38;cursor:default}
.md-findbar .md-findbar-close{font-size:18px;line-height:1}
.md-search-trigger .el-icon{font-size:14px}
html[data-theme="dark"] .md-findbar{background:#1b2432;border-color:#354257}
html[data-theme="dark"] .md-findbar input{background:#111923;border-color:#3a485e;color:#e7edf6}
html[data-theme="dark"] .md-findbar button{background:#202a3a;border-color:#3b485d;color:#b6c1d0}
html[data-theme="dark"] .md-findbar button:hover:not(:disabled){background:#263751;border-color:#506a96;color:#dce7ff}

.search-match{
  background:#ffe58a!important;color:#1d2430!important;border-radius:2px;padding:0 1px;
  box-shadow:0 0 0 1px rgba(173,123,0,.10);
}
.search-match.is-current{
  background:#ffb84d!important;color:#1b1d22!important;box-shadow:0 0 0 2px rgba(220,130,0,.38);
}
html[data-theme="dark"] .search-match{background:#7b6121!important;color:#fff1bb!important}
html[data-theme="dark"] .search-match.is-current{background:#b36a1f!important;color:#fff5de!important;box-shadow:0 0 0 2px rgba(255,183,76,.38)}

.detail-inline-search-nav{
  position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:10px;min-height:38px;
  padding:5px 10px;border-bottom:1px solid var(--line);background:rgba(247,249,252,.97);backdrop-filter:blur(8px);
}
.detail-inline-search-back,.detail-inline-search-actions button{
  height:27px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);
  padding:0 8px;font-size:10px;cursor:pointer;
}
.detail-inline-search-query{flex:1;min-width:0;display:flex;align-items:center;gap:6px}
.detail-inline-search-query strong{font-size:11px;color:var(--text);max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-inline-search-query span{font-size:10px;color:var(--muted)}
.detail-inline-search-actions{display:flex;gap:5px}
.detail-inline-search-actions button:disabled{opacity:.4;cursor:default}
.detail-inline-search-actions button:hover:not(:disabled),.detail-inline-search-back:hover{background:var(--blue-soft);color:var(--blue)}
.detail-inline-search-nav + .detail-source-meta{top:38px}
html[data-theme="dark"] .detail-inline-search-nav{background:rgba(25,34,47,.97);border-color:#354257}
html[data-theme="dark"] .detail-inline-search-back,
html[data-theme="dark"] .detail-inline-search-actions button{background:#202a3a;border-color:#3b485d;color:#b9c4d3}

.command-result-title{display:flex;align-items:baseline;gap:8px;min-width:0}
.command-result-title strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.command-result-title small{flex:none;font-size:9px;color:var(--muted)}

.global-search-viewer-dialog{
  height:94vh;max-height:94vh;border-radius:12px;overflow:hidden;
}
.global-search-viewer-dialog .el-dialog__header{margin:0;padding:0}
.global-search-viewer-dialog .el-dialog__body{height:calc(94vh - 56px);padding:0;overflow:hidden}
.global-search-viewer-head{
  min-height:56px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-bottom:1px solid var(--line);background:var(--panel);
}
.global-search-viewer-query{min-width:0;display:flex;align-items:center;gap:8px}
.global-search-viewer-query strong{font-size:14px;color:var(--text)}
.global-search-viewer-query span{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--blue)}
.global-search-viewer-query b{font-size:10px;color:var(--muted);font-weight:600}
.global-search-viewer-head-actions{display:flex;align-items:center;gap:6px}
.global-search-viewer-head-actions>span{min-width:60px;text-align:right;font-size:10px;color:var(--muted)}
.global-search-viewer-shell{height:100%;display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);background:var(--panel)}
.global-search-viewer-list{min-width:0;overflow:auto;border-right:1px solid var(--line);padding:6px;background:var(--panel-soft)}
.global-search-viewer-list>button{
  width:100%;display:grid;grid-template-columns:44px minmax(0,1fr);gap:7px;padding:8px;border:1px solid transparent;
  border-radius:8px;background:transparent;text-align:left;cursor:pointer;color:var(--text);
}
.global-search-viewer-list>button:hover{background:var(--panel);border-color:var(--line)}
.global-search-viewer-list>button.active{background:var(--blue-soft);border-color:#b9caf5}
.global-search-viewer-list>button>div{min-width:0}
.global-search-viewer-list strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-search-viewer-list small{display:block;margin-top:2px;font-size:9px;color:var(--blue)}
.global-search-viewer-list p{margin:3px 0 0;font-size:10px;line-height:1.45;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.global-search-viewer-document{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--panel)}
.global-search-document-head{
  min-height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border-bottom:1px solid var(--line);
}
.global-search-document-head>div{min-width:0}
.global-search-document-head span{font-size:9px;color:var(--blue)}
.global-search-document-head h3{margin:2px 0 0;font-size:14px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-search-viewer-content{
  flex:1;min-height:0;overflow:auto;padding:22px 28px 80px;background:var(--panel);color:var(--text);
}
html[data-theme="dark"] .global-search-viewer-dialog,
html[data-theme="dark"] .global-search-viewer-dialog .el-dialog__body,
html[data-theme="dark"] .global-search-viewer-shell,
html[data-theme="dark"] .global-search-viewer-document,
html[data-theme="dark"] .global-search-viewer-content{background:#182231!important}
html[data-theme="dark"] .global-search-viewer-list{background:#141d29;border-color:#354257}
html[data-theme="dark"] .global-search-viewer-list>button:hover{background:#202b3b;border-color:#3a485d}
html[data-theme="dark"] .global-search-viewer-list>button.active{background:#213554;border-color:#49699f}

@media (max-width:860px){
  .global-search-viewer-shell{grid-template-columns:220px minmax(0,1fr)}
  .global-search-viewer-content{padding:16px 18px 60px}
}
@media (max-width:620px){
  .global-search-viewer-shell{grid-template-columns:1fr}
  .global-search-viewer-list{max-height:190px;border-right:0;border-bottom:1px solid var(--line)}
  .global-search-viewer-query b{display:none}
  .global-search-viewer-head{align-items:flex-start;flex-direction:column;padding:8px 12px}
}

/* v2.0.44 核心数据重构：总览优先、文档式列表、人物纵向阅读、其他人物分组 */
.core-data-tabs-v2044>.el-tabs__header{border-bottom:1px solid var(--line)}
.core-data-tabs-v2044>.el-tabs__header .el-tabs__item{max-width:148px;padding:0 14px;font-weight:700}
.core-overview-document,.core-person-document,.core-other-groups{width:min(1180px,100%);margin:0 auto;padding:8px 4px 28px}
.core-doc-section{padding:16px 3px;border-top:1px solid var(--line)}
.core-doc-section:first-child{border-top:0}
.core-doc-section-muted{color:var(--muted)}
.core-doc-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.core-doc-section-title h3{margin:0;font-size:15px;line-height:1.4;color:var(--text);font-weight:800}
.core-doc-section-title span{font-size:10px;color:var(--muted)}
.core-empty-line{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.core-party-list{list-style:none;margin:0;padding:0}
.core-party-list>li{padding:9px 0;border-top:1px dashed var(--line)}
.core-party-list>li:first-child{border-top:0}
.core-party-main{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;min-width:0}
.core-party-main b{font-size:12px;color:var(--muted);font-weight:700}
.core-party-main button{appearance:none;border:0;background:transparent;padding:0;color:var(--blue);font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-align:left}
.core-party-main button:hover{text-decoration:underline}
.core-party-main span{font-size:11px;color:var(--text)}
.core-party-main span+span:before{content:'·';margin-right:7px;color:var(--muted)}
.core-party-list p{margin:4px 0 0;padding-left:0;font-size:11px;line-height:1.65;color:var(--muted)}
.core-case-summary{margin:0 0 10px;font-size:13px;line-height:1.85;color:var(--text);white-space:pre-wrap}
.core-fact-list{margin:0;padding:0;border-top:1px dashed var(--line)}
.core-fact-list>div{display:grid;grid-template-columns:116px minmax(0,1fr);gap:12px;padding:7px 0;border-bottom:1px dashed var(--line)}
.core-fact-list dt{font-size:11px;color:var(--muted);font-weight:700}
.core-fact-list dd{margin:0;font-size:12px;line-height:1.65;color:var(--text);font-weight:600;word-break:break-word}
.core-narrative-list{margin-top:11px}
.core-narrative-list article{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px dashed var(--line)}
.core-narrative-list article:first-child{border-top:0}
.core-narrative-list b{font-size:11px;color:var(--muted)}
.core-narrative-list p{margin:0;font-size:12px;line-height:1.75;color:var(--text);white-space:pre-wrap}
.core-simple-timeline{position:relative;margin-top:2px}
.core-simple-timeline:before{content:'';position:absolute;left:128px;top:7px;bottom:7px;width:1px;background:var(--line)}
.core-simple-timeline article{display:grid;grid-template-columns:110px minmax(0,1fr);gap:38px;position:relative;padding:8px 0}
.core-simple-timeline article:before{content:'';position:absolute;left:124px;top:14px;width:7px;height:7px;border-radius:50%;background:var(--panel);border:2px solid var(--blue);box-sizing:border-box}
.core-simple-timeline time{font-size:10px;line-height:1.55;color:var(--blue);font-weight:750;text-align:right}
.core-simple-timeline article>div{min-width:0}
.core-simple-timeline header{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.core-simple-timeline header b{font-size:12px;color:var(--text)}
.core-simple-timeline p{margin:3px 0 0;font-size:12px;line-height:1.7;color:var(--text)}
.core-simple-timeline small{display:block;margin-top:3px;font-size:10px;line-height:1.5;color:var(--muted)}
.core-judicial-list{list-style:none;margin:0;padding:0}
.core-judicial-list li{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:14px;align-items:start;padding:10px 0;border-top:1px dashed var(--line)}
.core-judicial-list li:first-child{border-top:0}
.core-judicial-list time{font-size:10px;color:var(--blue);font-weight:750;line-height:1.55}
.core-judicial-list b{display:block;font-size:12px;color:var(--text)}
.core-judicial-list p{margin:3px 0 0;font-size:12px;line-height:1.7;color:var(--text)}
.core-judicial-list strong{display:block;margin-top:4px;font-size:11px;line-height:1.6;color:var(--text)}
.core-detail-list{margin:0;padding-left:18px}
.core-detail-list li{margin:5px 0;font-size:12px;line-height:1.7;color:var(--text)}
.core-detail-list li b{font-weight:750;color:var(--text)}
.core-web-sources{margin:12px 3px 0;padding:9px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.core-web-sources summary{cursor:pointer;font-weight:750;color:var(--muted)}
.core-web-sources ol{margin:8px 0 0;padding-left:22px}
.core-web-sources li{margin:5px 0;line-height:1.5}
.core-web-sources a{color:var(--blue);text-decoration:none}
.core-web-sources a:hover{text-decoration:underline}
.core-web-sources li span{margin-left:8px;color:var(--muted)}
.core-person-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:10px 3px 12px;border-bottom:2px solid var(--line)}
.core-person-titlebar h2{margin:0;font-size:21px;color:var(--text)}
.core-person-titlebar p{margin:4px 0 0;font-size:11px;color:var(--muted)}
.core-person-facts>div{grid-template-columns:116px minmax(0,1fr)}
.core-person-life-timeline{margin-bottom:10px}
.core-life-notes{padding-top:10px;border-top:1px dashed var(--line)}
.core-life-notes>b{display:block;margin-bottom:5px;font-size:11px;color:var(--muted)}
.core-other-group{padding:15px 3px;border-top:1px solid var(--line)}
.core-other-group:first-child{border-top:0}
.core-other-list>article{padding:10px 0;border-top:1px dashed var(--line)}
.core-other-list>article:first-child{border-top:0}
.core-other-list>article>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.core-other-list>article>header>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.core-other-list>article>header strong{font-size:13px;color:var(--text)}
.core-other-list>article>header span{font-size:10px;color:var(--blue);font-weight:750}
.core-other-list>article>header small{font-size:10px;color:var(--muted);text-align:right}
.core-other-list .core-detail-list{margin-top:5px}
.core-other-list .core-detail-list li{margin:3px 0;font-size:11px}
html[data-theme="dark"] .core-simple-timeline article:before{background:var(--panel)}
@media (max-width:760px){
  .core-fact-list>div,.core-narrative-list article{grid-template-columns:92px minmax(0,1fr)}
  .core-simple-timeline:before{left:88px}
  .core-simple-timeline article{grid-template-columns:76px minmax(0,1fr);gap:28px}
  .core-simple-timeline article:before{left:84px}
  .core-judicial-list li{grid-template-columns:90px minmax(0,1fr)}
  .core-judicial-list li>.core-source-type{grid-column:2}
  .core-person-titlebar{flex-direction:column;gap:8px}
  .core-person-tags{justify-content:flex-start}
}


/* v2.0.51：项目类型 / 直达完整资料模式 */
.project-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.project-type-option{appearance:none;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:12px;padding:14px;text-align:left;cursor:pointer;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;transition:.18s ease}
.project-type-option:hover{border-color:#9fb5ea;transform:translateY(-1px)}
.project-type-option.active{border-color:#5f84e8;background:#f2f6ff;box-shadow:inset 0 0 0 1px rgba(79,124,255,.12)}
.project-type-option strong{display:block;font-size:15px;margin-bottom:5px}
.project-type-option span{display:block;color:var(--muted);font-size:12px;line-height:1.55}
.project-type-option em{font-style:normal;flex:none;padding:3px 7px;border-radius:999px;background:#eef3ff;color:#476bcc;font-size:11px}
.direct-import-row{width:100%;display:flex;align-items:center;gap:10px;margin-top:8px;color:var(--muted);font-size:12px}
.direct-file-dropzone{width:100%;box-sizing:border-box;margin-top:10px;padding:14px 16px;border:1px dashed var(--line);border-radius:10px;background:var(--panel);display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;transition:.16s ease;outline:none}
.direct-file-dropzone:hover,.direct-file-dropzone:focus-visible{border-color:#7192e7;background:#f7f9ff}
.direct-file-dropzone.active{border-color:#4f7cff;background:#eef4ff;box-shadow:inset 0 0 0 1px rgba(79,124,255,.16)}
.direct-file-dropzone strong{font-size:13px;color:var(--text)}
.direct-file-dropzone span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.direct-field-hint{width:100%;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5}
.direct-file-input{display:none}
.direct-workflow-nav{gap:4px}
.direct-workflow-hint{margin-left:auto;display:flex;align-items:center;padding:0 10px;color:var(--muted);font-size:12px}
.direct-mode-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#eef3ff;color:#4269ca;border:1px solid #d6e1ff;font-size:11px;font-weight:700}
html[data-theme="dark"] .project-type-option{background:#182436;border-color:#314158;color:#e7edf6}
html[data-theme="dark"] .project-type-option:hover{border-color:#526b96}
html[data-theme="dark"] .project-type-option.active{background:#1d2d48;border-color:#5f83d7;box-shadow:inset 0 0 0 1px rgba(109,151,255,.18)}
html[data-theme="dark"] .direct-file-dropzone{background:#182436;border-color:#3a4960}
html[data-theme="dark"] .direct-file-dropzone:hover,html[data-theme="dark"] .direct-file-dropzone:focus-visible{background:#1c2a40;border-color:#607ab2}
html[data-theme="dark"] .direct-file-dropzone.active{background:#1d3152;border-color:#6b91f4}
html[data-theme="dark"] .project-type-option em,
html[data-theme="dark"] .direct-mode-badge{background:#243858;color:#a8c0ff;border-color:#385582}
@media (max-width:720px){
  .project-type-grid{grid-template-columns:1fr}
  .direct-file-dropzone{align-items:flex-start;flex-direction:column;gap:4px}
  .direct-workflow-hint{display:none}
}

/* v2.0.53 · 首页项目卡片拖拽排序 */
.project-sort-hint {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:4px;
  padding:0 8px;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.project-sort-hint .el-icon { font-size:14px; }
.project-card-actions { align-items:center; gap:1px; }
.project-drag-handle {
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  color:#8793a7;
  cursor:grab;
  user-select:none;
  touch-action:none;
  transition:.16s ease;
}
.project-drag-handle:hover { background:var(--panel-soft); color:var(--text); }
.project-drag-handle:active { cursor:grabbing; }
.project-card.project-card-dragging {
  opacity:.42;
  transform:scale(.985);
  box-shadow:none;
}
.project-card.project-card-drag-before::before,
.project-card.project-card-drag-after::after {
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  height:3px;
  z-index:5;
  border-radius:999px;
  background:var(--blue);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
}
.project-card.project-card-drag-before::before { top:-9px; }
.project-card.project-card-drag-after::after { bottom:-9px; }
.project-grid.is-reordering { pointer-events:none; opacity:.92; }
html[data-theme="dark"] .project-drag-handle:hover { background:#202a3a; color:#eef3fb; }
@media(max-width:720px){
  .project-sort-hint { display:none; }
}

/* v2.0.54 · 首页项目备注 + 拖拽排序修复 */
.project-card-note {
  margin-top:10px;
  min-height:34px;
}
.project-card-note-view {
  width:100%;
  min-height:34px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:9px;
  padding:6px 9px;
  border:1px dashed var(--line);
  border-radius:8px;
  background:color-mix(in srgb, var(--panel-soft) 66%, transparent);
  color:var(--text);
  text-align:left;
  cursor:text;
  transition:.15s ease;
}
.project-card-note-view:hover {
  border-color:#a8b8db;
  background:color-mix(in srgb, var(--blue) 5%, var(--panel));
}
.project-card-note-label {
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.project-card-note-label .el-icon { font-size:12px; }
.project-card-note-text {
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  color:var(--text);
}
.project-card-note-text.empty { color:var(--muted); }
.project-card-note .el-input { width:100%; }
.project-card-note .el-input__wrapper { min-height:34px; }
.project-card-actions { z-index:8; }
.project-drag-handle {
  -webkit-user-drag:element;
}
@media (min-width:761px) {
  .project-card.project-card-drag-before::before,
  .project-card.project-card-drag-after::after {
    top:8px;
    bottom:8px;
    width:3px;
    height:auto;
    left:auto;
    right:auto;
  }
  .project-card.project-card-drag-before::before { left:-9px; }
  .project-card.project-card-drag-after::after { right:-9px; }
}
html[data-theme="dark"] .project-card-note-view {
  background:rgba(255,255,255,.025);
}
html[data-theme="dark"] .project-card-note-view:hover {
  border-color:#50698f;
  background:#1b2738;
}

/* v2.0.55 · 首页空间优化 / 整行拖拽 / 备注高亮 */
.dashboard-overview{
  display:grid;
  grid-template-columns:minmax(300px,.72fr) minmax(640px,1.35fr);
  align-items:end;
  gap:28px;
  margin:0 0 18px;
}
.dashboard-overview .dashboard-heading{min-width:0;padding-bottom:2px}
.dashboard-overview .metric-grid{
  margin:0;
  gap:10px;
  align-self:stretch;
}
.dashboard-overview .metric-card{
  min-height:78px;
  padding:12px 15px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.dashboard-overview .metric-label{font-size:12px}
.dashboard-overview .metric-value{font-size:24px;margin-top:4px;line-height:1.05}

.project-drag-strip{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:-5px -6px 0;
  padding:5px 6px;
  border-radius:9px;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  transition:background .15s ease, box-shadow .15s ease;
}
.project-drag-strip:hover{
  background:color-mix(in srgb, var(--panel-soft) 82%, transparent);
}
.project-drag-strip:active{cursor:grabbing}
.project-drag-strip .card-tags{
  flex:1;
  min-width:0;
  padding-right:0;
  flex-wrap:wrap;
}
.project-drag-strip .project-card-actions{
  position:static;
  right:auto;
  top:auto;
  flex:none;
  display:flex;
  align-items:center;
  gap:1px;
  z-index:8;
}
.project-card h3{margin-top:12px}

.project-card-note.has-note .project-card-note-view{
  border-style:solid;
  border-color:color-mix(in srgb, var(--amber) 52%, var(--line));
  background:color-mix(in srgb, var(--amber) 12%, var(--panel));
  box-shadow:inset 3px 0 0 color-mix(in srgb, var(--amber) 88%, #b97b12);
}
.project-card-note.has-note .project-card-note-label{
  color:color-mix(in srgb, var(--amber) 78%, #835a11);
}
.project-card-note.has-note .project-card-note-text{
  color:var(--text);
  font-weight:750;
}
.project-card-note.has-note .project-card-note-view:hover{
  border-color:color-mix(in srgb, var(--amber) 72%, var(--line));
  background:color-mix(in srgb, var(--amber) 17%, var(--panel));
}
html[data-theme="dark"] .project-drag-strip:hover{background:#202b3c}
html[data-theme="dark"] .project-card-note.has-note .project-card-note-view{
  border-color:#8e6a2b;
  background:rgba(227,161,40,.105);
  box-shadow:inset 3px 0 0 #d49a35;
}
html[data-theme="dark"] .project-card-note.has-note .project-card-note-label{color:#efc36b}
html[data-theme="dark"] .project-card-note.has-note .project-card-note-view:hover{
  border-color:#b08338;
  background:rgba(227,161,40,.15);
}

@media(max-width:1120px){
  .dashboard-overview{grid-template-columns:1fr;gap:14px;align-items:stretch}
  .dashboard-overview .metric-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:720px){
  .dashboard-overview .metric-grid{grid-template-columns:repeat(2,1fr)}
  .project-drag-strip{margin:-3px -3px 0;padding:4px 3px}
}

/* v2.0.56 · 项目备注自动识别截止日期与倒计时 */
/* v2.0.57 · 备注标记完成后自动隐藏倒计时 */
/* v2.0.58 · 倒计时增加本周 / 下周 / 周几提示 */
.project-card-countdown{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:66px;
  height:23px;
  padding:0 8px;
  border:1px solid color-mix(in srgb, var(--blue) 36%, var(--line));
  border-radius:999px;
  background:color-mix(in srgb, var(--blue) 9%, var(--panel));
  color:color-mix(in srgb, var(--blue) 82%, var(--text));
  font-size:11px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  letter-spacing:.01em;
}
.project-card-countdown.is-soon{
  border-color:color-mix(in srgb, var(--amber) 58%, var(--line));
  background:color-mix(in srgb, var(--amber) 14%, var(--panel));
  color:color-mix(in srgb, var(--amber) 84%, #855813);
}
.project-card-countdown.is-urgent,
.project-card-countdown.is-today,
.project-card-countdown.is-overdue{
  border-color:color-mix(in srgb, #ef5b4b 58%, var(--line));
  background:color-mix(in srgb, #ef5b4b 12%, var(--panel));
  color:#c73b30;
}
.project-card-countdown.is-overdue{font-weight:900}
html[data-theme="dark"] .project-card-countdown{
  border-color:#3c5984;
  background:rgba(69,126,218,.13);
  color:#a9c8ff;
}
html[data-theme="dark"] .project-card-countdown.is-soon{
  border-color:#85662f;
  background:rgba(224,161,48,.13);
  color:#f0c56e;
}
html[data-theme="dark"] .project-card-countdown.is-urgent,
html[data-theme="dark"] .project-card-countdown.is-today,
html[data-theme="dark"] .project-card-countdown.is-overdue{
  border-color:#8f4b46;
  background:rgba(222,76,62,.14);
  color:#ff9d93;
}
@media(max-width:520px){
  .project-card-countdown{min-width:auto;padding:0 7px}
}

/* v2.0.59 — 编辑器搜索稳定性：CSS Highlight 不抢正文焦点 */
::highlight(md-editor-search){
  background:rgba(255,213,79,.42);
  color:inherit;
}
::highlight(md-editor-search-active){
  background:rgba(255,170,35,.88);
  color:#17202d;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
}
html[data-theme="dark"] ::highlight(md-editor-search){
  background:rgba(159,126,38,.58);
  color:inherit;
}
html[data-theme="dark"] ::highlight(md-editor-search-active){
  background:rgba(224,142,34,.82);
  color:#fff7e7;
}
.md-findbar:focus-within{
  box-shadow:inset 0 -1px 0 rgba(65,111,224,.22);
}


/* v2.0.61 完整资料：Markdown 导入 + 历史版本恢复 */
.final-md-import-input{display:none!important}
.final-history-dialog{height:88vh;display:flex;flex-direction:column;overflow:hidden}
.final-history-dialog .el-dialog__header{flex:none;margin-right:0;padding:14px 18px 12px;border-bottom:1px solid var(--line)}
.final-history-dialog .el-dialog__body{flex:1;min-height:0;padding:0;overflow:hidden}
.final-history-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-right:30px}
.final-history-dialog-head>div{min-width:0;display:flex;align-items:baseline;gap:12px}
.final-history-dialog-head strong{font-size:17px;color:var(--text)}
.final-history-dialog-head span{font-size:12px;color:var(--muted);white-space:normal}
.final-history-shell{height:100%;min-height:0;display:grid;grid-template-columns:320px minmax(0,1fr)}
.final-history-list{min-height:0;overflow:auto;border-right:1px solid var(--line);padding:12px;background:var(--surface-2)}
.final-history-current{display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:11px 12px;margin-bottom:9px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.final-history-current span{font-size:12px;color:var(--muted)}
.final-history-current strong{font-size:12px;color:var(--text)}
.final-history-current small{grid-column:1/-1;color:var(--muted);font-size:11px}
.final-history-item{width:100%;display:block;text-align:left;border:1px solid transparent;background:transparent;border-radius:10px;padding:10px 11px;margin:0 0 7px;color:var(--text);cursor:pointer}
.final-history-item:hover{background:var(--surface);border-color:var(--line)}
.final-history-item.active{background:var(--primary-soft);border-color:var(--primary);box-shadow:inset 3px 0 0 var(--primary)}
.final-history-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.final-history-item strong{font-size:12px}
.final-history-item span{font-size:11px;color:var(--muted);white-space:nowrap}
.final-history-item p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.final-history-preview{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface)}
.final-history-preview>header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px;border-bottom:1px solid var(--line)}
.final-history-preview>header>div{display:flex;align-items:baseline;gap:10px}
.final-history-preview>header strong{font-size:13px;color:var(--text)}
.final-history-preview>header span{font-size:11px;color:var(--muted)}
.final-history-preview-body{flex:1;min-height:0;overflow:auto;padding:22px 28px 50px;line-height:1.75}
@media(max-width:800px){
  .final-history-dialog{width:98vw!important;height:94vh}
  .final-history-dialog-head{align-items:flex-start;flex-direction:column;gap:7px;padding-right:22px}
  .final-history-dialog-head>div{display:block}
  .final-history-shell{grid-template-columns:1fr;grid-template-rows:220px minmax(0,1fr)}
  .final-history-list{border-right:0;border-bottom:1px solid var(--line)}
  .final-history-preview-body{padding:16px 18px 40px}
}

/* v2.0.62 — 第六步专注模式：收起全局顶栏，顶部悬停临时唤出 */
.final-focus-hover-zone{
  position:fixed;
  z-index:190;
  top:0;
  left:0;
  right:0;
  height:10px;
  background:linear-gradient(180deg,rgba(91,129,232,.18),transparent);
  cursor:ns-resize;
}
.final-focus-toggle.el-button{
  flex:none;
  white-space:nowrap;
}
.final-focus-pin.el-button.is-text{
  color:#b9c9ef!important;
  border:1px solid rgba(151,177,237,.22)!important;
  border-radius:7px;
  padding:4px 9px!important;
}
.final-focus-pin.el-button.is-text:hover{
  color:#fff!important;
  background:rgba(87,125,220,.18)!important;
}

.workspace-v2.final-focus-mode{
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
}
.workspace-v2.final-focus-mode .workspace-topbar,
.workspace-v2.final-focus-mode .workflow-nav{
  position:fixed;
  left:0;
  right:0;
  opacity:0;
  pointer-events:none;
  transition:transform .18s ease,opacity .16s ease,box-shadow .18s ease;
  will-change:transform,opacity;
}
.workspace-v2.final-focus-mode .workspace-topbar{
  top:0;
  z-index:260;
  transform:translateY(-58px);
  box-shadow:0 12px 28px rgba(7,14,27,.20);
}
.workspace-v2.final-focus-mode .workflow-nav{
  top:54px;
  z-index:255;
  transform:translateY(-100px);
  box-shadow:0 10px 22px rgba(7,14,27,.12);
}
.workspace-v2.final-focus-mode.focus-chrome-revealed .workspace-topbar,
.workspace-v2.final-focus-mode.focus-chrome-revealed .workflow-nav{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}
.workspace-v2.final-focus-mode .workspace-main.is-final-step{
  box-sizing:border-box;
  width:100%;
  height:100dvh;
  min-height:100dvh;
  padding:4px 4px 5px;
  overflow:hidden;
}
.workspace-v2.final-focus-mode .final-production-stage{
  height:calc(100dvh - 9px);
  min-height:0;
}
.workspace-v2.final-focus-mode .final-head-compact{
  margin-bottom:4px!important;
}

@media (max-width:980px){
  .workspace-v2.final-focus-mode{
    height:auto;
    min-height:100dvh;
    overflow:visible;
  }
  .workspace-v2.final-focus-mode .workspace-main.is-final-step{
    height:auto;
    min-height:100dvh;
    overflow:visible;
  }
  .workspace-v2.final-focus-mode .final-production-stage{
    height:auto;
  }
}

/* v2.0.64：完整资料中加粗内容作为“重点信息”显示，使用蓝色底纹强调。 */
.final-production-stage .final-complete-panel .markdown-render strong,
.final-production-stage .final-complete-panel .markdown-render b{
  background:rgba(70,116,230,.14);
  color:#244f9e;
  padding:1px 4px;
  border-radius:4px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
html[data-theme="dark"] .final-production-stage .final-complete-panel .markdown-render strong,
html[data-theme="dark"] .final-production-stage .final-complete-panel .markdown-render b{
  background:rgba(74,126,255,.22);
  color:#e7efff!important;
}

/* v2.0.68：完整资料默认使用 WoloEditor；修复搜索导航、撤销焦点与空行视觉兼容。 */
.final-editor-kind-select{width:112px;flex:none}
.final-editor-kind-select .el-select__wrapper{min-height:26px;padding:2px 7px;font-size:11px}
.final-production-stage .final-dual-panel>.wolo-final-editor{
  flex:1 1 0;
  min-height:0;
  height:auto;
  overflow:hidden;
  border-radius:0 0 12px 12px;
}
@media(max-width:980px){
  .final-editor-kind-select{width:108px}
  .final-production-stage .final-dual-panel>.wolo-final-editor{min-height:580px}
}

/* v2.0.69：外链图片自动本地化；Wolo 点击空白不再随机跳到文末。 */

/* v2.0.72：Wolo 完整资料粗体高亮最终兜底。
   放在全局样式末尾，避免 scoped/:deep 编译顺序或 Wolo 内置 .wolo-read 颜色把重点文字压暗。 */
.final-production-stage .final-complete-panel .wolo-mount .wb-content strong,
.final-production-stage .final-complete-panel .wolo-mount .wb-content b{
  background:#dbe9ff!important;
  color:#163f7a!important;
  -webkit-text-fill-color:#163f7a!important;
  font-weight:800!important;
  padding:1px 5px;
  border-radius:4px;
  box-shadow:inset 0 0 0 1px rgba(51,112,255,.22);
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.final-production-stage .final-complete-panel .wolo-mount .wb-content strong *,
.final-production-stage .final-complete-panel .wolo-mount .wb-content b *{
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-theme="dark"] .final-production-stage .final-complete-panel .wolo-mount .wb-content strong,
html[data-theme="dark"] .final-production-stage .final-complete-panel .wolo-mount .wb-content b{
  background:#2857a8!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(148,190,255,.38),0 0 0 1px rgba(20,45,85,.18);
}
html[data-theme="dark"] .final-production-stage .final-complete-panel .wolo-mount .wb-content strong *,
html[data-theme="dark"] .final-production-stage .final-complete-panel .wolo-mount .wb-content b *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}


/* v2.0.73 · Element Plus 顶部提示必须在深浅主题下都有足够对比度。
   之前 success 提示沿用了浅绿色底，但正文颜色被主题样式冲淡，导致“已取消已阅标注”等几乎看不见。 */
.el-message{
  border-width:1px!important;
  box-shadow:0 10px 30px rgba(15,23,42,.16)!important;
  backdrop-filter:blur(12px);
}
.el-message .el-message__content{font-weight:700!important;text-shadow:none!important}
.el-message.el-message--success{background:#effaf3!important;border-color:#b9dfc5!important}
.el-message.el-message--success .el-message__content{color:#17603a!important}
.el-message.el-message--success .el-message__icon{color:#2f9b5f!important}
.el-message.el-message--info{background:#f2f6fc!important;border-color:#cfd9e8!important}
.el-message.el-message--info .el-message__content{color:#334155!important}
.el-message.el-message--warning{background:#fff8e7!important;border-color:#efd28a!important}
.el-message.el-message--warning .el-message__content{color:#7a5512!important}
.el-message.el-message--error{background:#fff1f2!important;border-color:#f0b8bd!important}
.el-message.el-message--error .el-message__content{color:#982c38!important}
html[data-theme="dark"] .el-message.el-message--success{background:#17352b!important;border-color:#2f6a54!important}
html[data-theme="dark"] .el-message.el-message--success .el-message__content{color:#dcf7e9!important}
html[data-theme="dark"] .el-message.el-message--success .el-message__icon{color:#6ee7a8!important}
html[data-theme="dark"] .el-message.el-message--info{background:#202b3a!important;border-color:#40516b!important}
html[data-theme="dark"] .el-message.el-message--info .el-message__content{color:#e2e8f0!important}
html[data-theme="dark"] .el-message.el-message--warning{background:#3b311d!important;border-color:#6a5729!important}
html[data-theme="dark"] .el-message.el-message--warning .el-message__content{color:#f8dfa0!important}
html[data-theme="dark"] .el-message.el-message--error{background:#3b2327!important;border-color:#704049!important}
html[data-theme="dark"] .el-message.el-message--error .el-message__content{color:#ffd9dd!important}

/* v2.0.73 · 完整资料“查看”浮层：与主编辑器使用不同滚动位置，关闭后保留阅读进度。 */
.final-quick-view-overlay{
  position:fixed;
  inset:0;
  z-index:7600;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:38px 52px;
  background:rgba(11,16,24,.58);
  backdrop-filter:blur(5px);
}
.final-quick-view-card{
  width:min(1180px,calc(100vw - 104px));
  height:min(88vh,980px);
  min-height:420px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d7dfeb;
  border-radius:14px;
  background:#f7f9fc;
  box-shadow:0 24px 80px rgba(9,19,36,.32);
}
.final-quick-view-head{
  flex:none;
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 12px 8px 18px;
  border-bottom:1px solid #dce3ed;
  background:rgba(255,255,255,.96);
}
.final-quick-view-head>div:first-child{display:flex;align-items:baseline;gap:10px;min-width:0}
.final-quick-view-head strong{font-size:14px;color:#26364e;white-space:nowrap}
.final-quick-view-head>div:first-child span{font-size:11px;color:#7b879a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.final-quick-view-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.final-quick-view-progress{min-width:44px;text-align:right;font-size:12px;font-weight:800;color:#4b6fa9}
.final-quick-view-head kbd{padding:3px 7px;border:1px solid #d5ddea;border-bottom-width:2px;border-radius:5px;background:#f4f6fa;color:#6b778a;font:10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace}
.final-quick-view-head button{width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#748196;font-size:20px;line-height:1;cursor:pointer}
.final-quick-view-head button:hover{background:#edf1f7;color:#334155}
.final-quick-view-scroll{
  flex:1 1 0;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  background:#eef2f7;
}
.final-quick-view-article{
  width:min(920px,calc(100% - 56px));
  min-height:100%;
  margin:0 auto;
  padding:42px 54px 22vh;
  border-left:1px solid #e1e7ef;
  border-right:1px solid #e1e7ef;
  background:#fff;
  color:#27364a;
  font-size:15px;
  line-height:1.9;
  box-shadow:0 0 24px rgba(34,48,73,.045);
}
.final-quick-view-article img{max-width:100%;height:auto;border-radius:6px}
.final-quick-view-article video{max-width:100%}
.final-quick-view-article strong,
.final-quick-view-article b{
  padding:1px 5px;
  border-radius:4px;
  background:#dbe9ff;
  color:#163f7a;
  font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(51,112,255,.18);
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
html[data-theme="dark"] .final-quick-view-overlay{background:rgba(4,8,14,.72)}
html[data-theme="dark"] .final-quick-view-card{border-color:#38475b;background:#151d28;box-shadow:0 26px 90px rgba(0,0,0,.55)}
html[data-theme="dark"] .final-quick-view-head{border-color:#344255;background:rgba(24,32,44,.97)}
html[data-theme="dark"] .final-quick-view-head strong{color:#edf3fb}
html[data-theme="dark"] .final-quick-view-head>div:first-child span{color:#8f9db0}
html[data-theme="dark"] .final-quick-view-progress{color:#9bbcff}
html[data-theme="dark"] .final-quick-view-head kbd{border-color:#445269;background:#212b3a;color:#bdc8d8}
html[data-theme="dark"] .final-quick-view-head button{color:#9eabba}
html[data-theme="dark"] .final-quick-view-head button:hover{background:#2a3648;color:#fff}
html[data-theme="dark"] .final-quick-view-scroll{background:#101720}
html[data-theme="dark"] .final-quick-view-article{border-color:#273447;background:#18212e;color:#dce5f0;box-shadow:none}
html[data-theme="dark"] .final-quick-view-article strong,
html[data-theme="dark"] .final-quick-view-article b{background:#2857a8;color:#fff;box-shadow:inset 0 0 0 1px rgba(148,190,255,.35)}
@media(max-width:760px){
  .final-quick-view-overlay{padding:14px}
  .final-quick-view-card{width:100%;height:92vh}
  .final-quick-view-head>div:first-child span,.final-quick-view-head kbd{display:none}
  .final-quick-view-article{width:100%;padding:28px 22px 20vh;border-left:0;border-right:0}
}

/* v2.0.74 · 查看浮层独立搜索 + 快捷键修复 + 提示消息高对比度 */
.final-quick-view-title{display:flex;align-items:baseline;gap:10px;min-width:0;flex:none}
.final-quick-view-search{
  flex:1 1 420px;
  max-width:560px;
  min-width:240px;
  height:34px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:0 5px 0 10px;
  border:1px solid #ccd6e4;
  border-radius:8px;
  background:#f4f7fb;
  box-shadow:inset 0 1px 1px rgba(28,43,64,.035);
}
.final-quick-view-search:focus-within{border-color:#7aa2e8;box-shadow:0 0 0 2px rgba(51,112,255,.11)}
.final-quick-view-search-icon{font-size:15px;color:#7a8799;line-height:1;flex:none}
.final-quick-view-search input{
  flex:1;
  min-width:0;
  border:0!important;
  outline:0!important;
  padding:0 4px!important;
  background:transparent!important;
  color:#25364d!important;
  font:12px/32px "PingFang SC","Microsoft YaHei",system-ui,sans-serif!important;
  box-shadow:none!important;
}
.final-quick-view-search input::placeholder{color:#96a2b2}
.final-quick-view-search-count{min-width:42px;text-align:center;color:#6d7b8e;font-size:11px;white-space:nowrap}
.final-quick-view-head .final-quick-view-search button{
  width:25px;height:25px;border-radius:6px;font-size:13px;color:#69778a;background:transparent;
}
.final-quick-view-head .final-quick-view-search button:hover:not(:disabled){background:#e4ebf5;color:#315c9d}
.final-quick-view-head .final-quick-view-search button:disabled{opacity:.28;cursor:default}
.final-quick-view-head .final-quick-view-search-clear{font-size:16px}
::highlight(mrw-final-quick-view-search){background:rgba(250,204,21,.48);color:inherit}
::highlight(mrw-final-quick-view-search-active){background:rgba(249,115,22,.78);color:#111827;text-shadow:none}
html[data-theme="dark"] .final-quick-view-search{border-color:#425169;background:#202a38;box-shadow:none}
html[data-theme="dark"] .final-quick-view-search:focus-within{border-color:#709cff;box-shadow:0 0 0 2px rgba(91,140,255,.16)}
html[data-theme="dark"] .final-quick-view-search-icon{color:#91a0b5}
html[data-theme="dark"] .final-quick-view-search input{color:#edf3fb!important}
html[data-theme="dark"] .final-quick-view-search input::placeholder{color:#718096}
html[data-theme="dark"] .final-quick-view-search-count{color:#9eabba}
html[data-theme="dark"] .final-quick-view-head .final-quick-view-search button{color:#a7b4c5}
html[data-theme="dark"] .final-quick-view-head .final-quick-view-search button:hover:not(:disabled){background:#303d50;color:#fff}
html[data-theme="dark"] ::highlight(mrw-final-quick-view-search){background:rgba(250,204,21,.36);color:#fff}
html[data-theme="dark"] ::highlight(mrw-final-quick-view-search-active){background:rgba(245,158,11,.78);color:#fff}

/* Element Plus 消息浮层不要再依赖组件默认的浅色变量；深色主题强制高对比。 */
html[data-theme="dark"] body .el-message{
  --el-message-text-color:#f8fafc!important;
  --el-message-bg-color:#202b3a!important;
  --el-message-border-color:#4a5a70!important;
  color:#f8fafc!important;
  opacity:1!important;
  box-shadow:0 12px 34px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] body .el-message.el-message--success{
  --el-message-bg-color:#15392a!important;
  --el-message-border-color:#34765a!important;
  background:#15392a!important;
  border-color:#34765a!important;
}
html[data-theme="dark"] body .el-message.el-message--success .el-message__content{
  color:#f1fff7!important;
  -webkit-text-fill-color:#f1fff7!important;
  opacity:1!important;
  font-weight:650!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body .el-message.el-message--success .el-message__icon{color:#70e6aa!important;opacity:1!important}
html[data-theme="dark"] body .el-message.el-message--info .el-message__content,
html[data-theme="dark"] body .el-message.el-message--warning .el-message__content,
html[data-theme="dark"] body .el-message.el-message--error .el-message__content{
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  font-weight:600!important;
}

@media(max-width:900px){
  .final-quick-view-head{flex-wrap:wrap}
  .final-quick-view-title{flex:1 1 auto}
  .final-quick-view-search{order:3;flex:1 1 100%;max-width:none;min-width:0}
}

/* v2.0.76 · Dashboard badges use self-owned colors instead of Element Plus
   semantic tag variables. This prevents light tag backgrounds from inheriting
   unreadable foregrounds when the global dark theme palette changes. */
.project-card .project-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-height:28px;
  padding:3px 10px;
  border:1px solid transparent;
  border-radius:7px;
  font-size:14px;
  line-height:20px;
  font-weight:750;
  white-space:nowrap;
  letter-spacing:0;
  opacity:1;
  filter:none;
  text-shadow:none;
  -webkit-text-fill-color:currentColor;
}
.project-card .project-status-badge.is-collecting{
  color:#2456bd;
  background:#edf3ff;
  border-color:#aac0ef;
}
.project-card .project-status-badge.is-organizing{
  color:#76500b;
  background:#fff3d8;
  border-color:#d8ae56;
}
.project-card .project-status-badge.is-pending{
  color:#6b3eb5;
  background:#f3edff;
  border-color:#c2a9ee;
}
.project-card .project-status-badge.is-done{
  color:#176044;
  background:#e9f7ef;
  border-color:#9bcdb4;
}
.project-card .project-status-badge.is-archived{
  color:#596578;
  background:#f2f4f7;
  border-color:#cbd2dc;
}
.project-card .project-mode-badge{
  color:#73510f;
  background:#fffaf0;
  border-color:#c79d4e;
}
.project-card .project-label-badge{
  color:#4d5b70;
  background:#f4f6f9;
  border-color:#c8d0db;
}

html[data-theme="dark"] .project-card .project-status-badge.is-collecting{
  color:#d7e4ff;
  background:#223759;
  border-color:#5274aa;
}
html[data-theme="dark"] .project-card .project-status-badge.is-organizing{
  color:#ffe6a8;
  background:#4a3718;
  border-color:#9b7635;
}
html[data-theme="dark"] .project-card .project-status-badge.is-pending{
  color:#e0ceff;
  background:#362553;
  border-color:#7655a9;
}
html[data-theme="dark"] .project-card .project-status-badge.is-done{
  color:#c5f2d9;
  background:#173b2a;
  border-color:#3d7b5c;
}
html[data-theme="dark"] .project-card .project-status-badge.is-archived{
  color:#d2d9e4;
  background:#293241;
  border-color:#596577;
}
html[data-theme="dark"] .project-card .project-mode-badge{
  color:#ffe0a0;
  background:#2b261d;
  border-color:#b28b46;
}
html[data-theme="dark"] .project-card .project-label-badge{
  color:#d7deea;
  background:#263142;
  border-color:#526076;
}

/* Badge text must never inherit page-level muted/semantic span colors. */
.project-card .project-badge,
.project-card .project-badge *{
  color:inherit!important;
  opacity:1!important;
  -webkit-text-fill-color:currentColor!important;
}

/* v2.0.77 · Dark dropdown hover contrast
   Element Plus' default hover fill can resolve to a very pale primary color
   under our custom dark theme. Own the dropdown palette explicitly so hover,
   focus and disabled states always remain readable. */
html[data-theme="dark"] .el-dropdown__popper,
html[data-theme="dark"] .el-dropdown-menu{
  --el-bg-color-overlay:#172236;
  --el-dropdown-menuItem-hover-fill:#253653;
  --el-dropdown-menuItem-hover-color:#ffffff;
  --el-text-color-regular:#e8eef8;
  --el-text-color-placeholder:#718096;
  background:#172236!important;
  color:#e8eef8!important;
  border-color:#3a4a63!important;
}
html[data-theme="dark"] .el-dropdown-menu__item{
  background:transparent!important;
  color:#e8eef8!important;
  opacity:1!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-theme="dark"] .el-dropdown-menu__item:not(.is-disabled):hover,
html[data-theme="dark"] .el-dropdown-menu__item:not(.is-disabled):focus{
  background:#253653!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
html[data-theme="dark"] .el-dropdown-menu__item.is-disabled{
  background:transparent!important;
  color:#6f7e94!important;
  opacity:.72!important;
  cursor:not-allowed!important;
  -webkit-text-fill-color:#6f7e94!important;
}
html[data-theme="dark"] .el-dropdown-menu__item--divided{
  border-top-color:#34435a!important;
}
html[data-theme="dark"] .el-dropdown__popper .el-popper__arrow::before{
  background:#172236!important;
  border-color:#3a4a63!important;
}
/* Keep destructive actions semantically red after the generic dark hover rule. */
html[data-theme="dark"] .el-dropdown-menu__item.danger-dropdown-item{
  color:#ff9aa5!important;
  -webkit-text-fill-color:#ff9aa5!important;
}
html[data-theme="dark"] .el-dropdown-menu__item.danger-dropdown-item:hover,
html[data-theme="dark"] .el-dropdown-menu__item.danger-dropdown-item:focus{
  background:#3a1d25!important;
  color:#ffb0b8!important;
  -webkit-text-fill-color:#ffb0b8!important;
}


/* v2.0.78 · 第七步：Wolai 资料整理 → Wolai 成稿 */
.wolai-writing-stage .wolai-writing-panel{
  background:var(--panel);
}
.wolai-writing-stage .wolai-embed-shell{
  flex:1 1 0;
  min-height:0;
}
.wolai-writing-stage .wolai-embed-frame{
  height:100%;
  min-height:0;
}
.wolai-writing-stage .final-dual-panel-head h3{
  letter-spacing:.01em;
}
.wolai-writing-stage .wolai-final-draft-panel{
  box-shadow:inset 0 2px 0 color-mix(in srgb,var(--primary) 42%,transparent);
}
html[data-theme="dark"] .wolai-writing-stage .wolai-final-draft-panel{
  box-shadow:inset 0 2px 0 rgba(100,145,255,.46);
}
@media(max-width:980px){
  .wolai-writing-stage .wolai-writing-panel{
    height:min(760px,calc(100dvh - 130px));
    min-height:560px;
  }
}

/* v2.0.80 · 首页增加「项目列表 / Wolai 主页」双视图 */
.dashboard-view-nav{
  height:46px;
  display:flex;
  align-items:center;
  padding:0 24px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb, var(--panel) 96%, transparent);
  backdrop-filter:blur(10px);
}
.dashboard-view-nav-inner{
  display:flex;
  align-items:stretch;
  gap:4px;
  height:100%;
}
.dashboard-view-nav button{
  position:relative;
  min-width:92px;
  height:100%;
  padding:0 14px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  font-weight:750;
  cursor:pointer;
}
.dashboard-view-nav button:hover{color:var(--text);background:var(--panel-soft)}
.dashboard-view-nav button.active{color:var(--blue-strong)}
.dashboard-view-nav button.active::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:-1px;
  height:2px;
  border-radius:2px 2px 0 0;
  background:var(--blue);
}
.page-container.page-container-wolai{
  width:100%;
  max-width:none;
  padding:12px 14px 14px;
}
.dashboard-wolai-view{
  height:calc(100vh - 58px - 46px - 26px);
  min-height:620px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.dashboard-wolai-head{
  flex:none;
  min-height:46px;
  padding:7px 10px 7px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  background:var(--panel);
}
.dashboard-wolai-head>div:first-child{min-width:0;display:flex;align-items:baseline;gap:10px}
.dashboard-wolai-head strong{font-size:14px;color:var(--text)}
.dashboard-wolai-head span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-wolai-actions{flex:none;display:flex;align-items:center;gap:6px}
.dashboard-wolai-frame-shell{flex:1;min-height:0;background:var(--panel-soft)}
.dashboard-wolai-frame{display:block;width:100%;height:100%;border:0;background:#fff}
html[data-theme="dark"] .dashboard-view-nav{background:#151d2b;border-bottom-color:#2a3547}
html[data-theme="dark"] .dashboard-view-nav button:hover{background:#202a3a;color:#eef3fb}
html[data-theme="dark"] .dashboard-view-nav button.active{color:#a9c3ff}
html[data-theme="dark"] .dashboard-wolai-frame-shell{background:#0f151f}
@media(max-width:720px){
  .dashboard-view-nav{padding:0 12px}
  .dashboard-view-nav button{min-width:84px;padding:0 10px}
  .page-container.page-container-wolai{padding:8px}
  .dashboard-wolai-view{height:calc(100vh - 58px - 46px - 16px);min-height:540px}
  .dashboard-wolai-head{align-items:flex-start;flex-direction:column;gap:7px;padding:9px 10px}
  .dashboard-wolai-head>div:first-child{display:block}
  .dashboard-wolai-head span{display:block;margin-top:3px}
}

/* v2.0.81 · 分栏拖拽稳定性：拖拽期间 iframe 不再截获 pointermove。
   配合 Pointer Capture，使分隔条与鼠标保持 1:1 跟随；普通分栏也统一受益。 */
.process-layout.is-resizing iframe,
.detailed-layout.is-resizing iframe,
.final-dual-workspace.is-resizing iframe {
  pointer-events: none !important;
}



.wolo-final-editor{
  flex:1 1 0;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--panel);
}
.wolo-integrated-toolbar{
  flex:none;
  min-height:36px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 6px;
  border-bottom:1px solid var(--line);
  background:var(--panel-2,var(--panel));
  position:sticky;
  top:0;
  z-index:15;
}
.wolo-search-box{
  min-width:220px;
  max-width:520px;
  flex:1 1 360px;
  display:flex;
  align-items:center;
  gap:4px;
  height:28px;
  padding:0 4px 0 8px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
}
.wolo-search-box:focus-within{border-color:#5b8cff;box-shadow:0 0 0 2px rgba(91,140,255,.1)}
.wolo-search-icon{color:var(--muted);font-size:15px}
.wolo-search-box input{
  min-width:0;
  flex:1;
  height:25px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:12px;
}
.wolo-search-count{min-width:48px;text-align:right;color:var(--muted);font-size:10px;white-space:nowrap}
.wolo-integrated-toolbar button{
  height:26px;
  border:1px solid var(--line);
  border-radius:6px;
  padding:0 7px;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  cursor:pointer;
}
.wolo-integrated-toolbar button:hover:not(:disabled){border-color:#5b8cff;color:#7ca0ff;background:rgba(91,140,255,.08)}
.wolo-integrated-toolbar button:disabled{opacity:.35;cursor:default}
.wolo-search-box button{width:24px;padding:0;font-size:13px;border:0}
.wolo-toolbar-spacer{flex:1}
.wolo-version-badge{
  flex:none;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(91,140,255,.11);
  color:#6f91ed;
  border:1px solid rgba(91,140,255,.22);
  font-size:10px;
  white-space:nowrap;
}
.wolo-scroll-shell{
  flex:1 1 0;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  position:relative;
  background:var(--panel);
}
.wolo-host{min-height:var(--wolo-min-height);width:100%}
.wolo-loading,.wolo-load-error{padding:24px;color:var(--muted);font-size:12px}
.wolo-load-error{color:#e66d75}

/* 让 Wolo 的正文密度更贴近“完整资料”阅读场景，同时保留其块级交互。 */
.wolo-host .wolo-editor{padding:26px 34px 28vh}
.wolo-host .wb-content{font-size:15px;line-height:30px;min-height:30px}
/* 兼容旧完整资料：Markdown 常用单个空行分隔段落。Wolo 会把空行还原为空块，
   数据不做折叠，只把“空块”的视觉高度压低，避免看起来像突然多了很多空行。 */
.wolo-host .wolo-block.is-p > .wb-content:empty{min-height:11px;line-height:11px}
.wolo-host .wolo-block.is-p > .wb-content:empty:focus{min-height:30px;line-height:30px}
.wolo-host .is-h1>.wb-content{font-size:24px;line-height:36px}
.wolo-host .is-h2>.wb-content{font-size:20px;line-height:33px}
.wolo-host .is-h3>.wb-content{font-size:17px;line-height:29px}

/* 粗体 = 蓝色背景强调。
   注意：完整资料的“已阅”使用 CSS Highlight API，会直接接管文字绘制颜色。
   因此粗体本身必须保持高对比，同时另设 mrw-final-usage-bold 避免“已阅 + 粗体”再次变成浅字浅底。 */
.wolo-host .wb-content strong,
.wolo-host .wb-content b{
  background:#dbe9ff!important;
  color:#163f7a!important;
  -webkit-text-fill-color:#163f7a!important;
  font-weight:800;
  padding:1px 5px;
  border-radius:4px;
  box-shadow:inset 0 0 0 1px rgba(51,112,255,.22);
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.wolo-host .wb-content strong *,
.wolo-host .wb-content b *{
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-theme="dark"] .wolo-host .wb-content strong,
html[data-theme="dark"] .wolo-host .wb-content b{
  background:#2857a8!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  box-shadow:inset 0 0 0 1px rgba(148,190,255,.38),0 0 0 1px rgba(20,45,85,.18);
}
html[data-theme="dark"] .wolo-host .wb-content strong *,
html[data-theme="dark"] .wolo-host .wb-content b *{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

@media(max-width:980px){
  .wolo-final-editor{min-height:580px}
  .wolo-integrated-toolbar{flex-wrap:wrap;height:auto}
  .wolo-search-box{max-width:none;flex-basis:100%}
  .wolo-host .wolo-editor{padding:20px 20px 30vh}
}
