:root {
  color-scheme: light;
  --blue: #409eff;
  --blue-ink: #1765ab;
  --blue-hover: #337ecc;
  --text: #303133;
  --secondary: #606266;
  --muted: #737983;
  --line: #dcdfe6;
  --grid: #ebeef5;
  --canvas: #f7f7f7;
  --sidebar: #304156;
  --subnav: #1f2d3d;
  --radius: 4px;
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--blue-ink); }
.initial-state { margin: 40px; color: var(--secondary); }

.layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 100dvh; }
.layout.sidebar-collapsed { grid-template-columns: 56px minmax(0, 1fr); }
.sidebar { min-width: 0; background: var(--sidebar); color: #bfcbd9; }
.workspace-name, .group-title, .sidebar a { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.workspace-name { height: 50px; padding: 0 16px; background: #2b3a4d; color: #fff; font-weight: 650; }
.sidebar { position: relative; }
button.workspace-name { width: 100%; border: 0; text-align: left; }
.workspace-name .chevron { margin-left: auto; }
.sidebar .workspace-menu {
  position: absolute;
  z-index: 5;
  inset: 50px auto auto 0;
  min-width: max(140px, 100%);
  background: #263547;
  box-shadow: 0 5px 14px #0003;
}
.sidebar .workspace-menu a { height: 42px; justify-content: flex-start; padding-inline: 16px; }
.sidebar .workspace-menu a:hover, .sidebar .workspace-menu a[aria-current] { background: #34485e; color: #fff; }
.module-link { display: inline-block; margin-right: 16px; }
.content-flow { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.content-flow a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #d9e5f0; background: #f5f9fd; border-radius: 5px; }
.content-flow span { border-radius: 50%; background: #e0edf9; padding: 2px 8px; }
.content-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.content-summary div { padding: 16px; border: 1px solid #e3eaf1; border-radius: 5px; }
.content-summary strong { display: block; color: #2681cb; font-size: 26px; }
.content-summary span { color: #667487; }
.group-title { padding: 0 16px; height: 56px; }
.group-title .chevron { margin-left: auto; }
.sidebar nav { background: var(--subnav); padding: 0; }
.sidebar a { height: 50px; padding: 0 15px 0 19px; color: inherit; text-decoration: none; }
.sidebar a:hover { background: #263547; }
.sidebar a[aria-current="page"] { color: var(--blue); }
.sidebar-collapsed .sidebar .nav-label, .sidebar-collapsed .sidebar .chevron { display: none; }
.sidebar-collapsed .workspace-name, .sidebar-collapsed .group-title, .sidebar-collapsed .sidebar a { padding-inline: 0; justify-content: center; }
.symbol { display: inline-flex; flex: 0 0 16px; width: 16px; height: 16px; justify-content: center; align-items: center; font-size: 15px; line-height: 1; }
.topbar { min-height: 50px; display: flex; align-items: center; gap: 16px; padding: 0 16px 0 10px; border-bottom: 1px solid #e2e2e2; background: #fff; }
.topbar .burger { color: #303133; font-size: 20px; width: 26px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.breadcrumb span[aria-current="page"] { color: #6a809b; }
.slash { color: #a7aeba; }
.top-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.quickfind { position: relative; }
.quickfind input { width: 145px; border-radius: 18px; background: #f4f5f8; padding-left: 28px; }
.quickfind > .symbol { position: absolute; top: 8px; left: 8px; color: var(--muted); pointer-events: none; }
.find-results { position: absolute; right: 0; top: 37px; width: 180px; z-index: 2; background: #fff; border: 1px solid var(--grid); border-radius: 4px; box-shadow: 0 4px 10px #18263b17; }
.find-results a { display: block; padding: 8px 12px; text-decoration: none; }
.find-results a:hover { background: #f4f5f8; }
.find-results p { margin: 8px 12px; color: var(--muted); }
.account { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.account-name { color: var(--secondary); }
.workspace { padding: 20px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--grid); border-radius: var(--radius); box-shadow: 0 2px 12px #18263b13; }
.panel-header { display: flex; min-height: 70px; padding: 16px 20px; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--grid); }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; margin: 0; }
.panel-title .symbol { color: var(--blue); }
.panel-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.panel-body { padding: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select { width: 145px; }
.filters input[type=search] { width: 185px; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.45; }
th, td { border: 1px solid var(--grid); padding: 11px 10px; text-align: left; vertical-align: middle; min-height: 40px; }
th { font-weight: 650; color: var(--muted); white-space: nowrap; }
td { color: var(--secondary); min-width: 70px; overflow-wrap: anywhere; }
tr:hover td { background: #f5f7fa; }
td.nowrap, td.actions { white-space: nowrap; }
td.actions, th.actions, td.center, th.center { text-align: center; }
td.empty-cell { height: 88px; text-align: center; color: var(--muted); }
.row-detail { display: block; color: var(--muted); margin-top: 4px; }
.cell-title { color: var(--text); }
.table-count { display: block; margin: 12px 0 0; text-align: right; color: var(--secondary); font-size: 13px; }
.pill { display: inline-block; border: 1px solid #d9ecff; background: #ecf5ff; color: var(--blue-ink); border-radius: var(--radius); padding: 1px 5px; line-height: 1.5; white-space: nowrap; }
.pill.green { border-color: #e1f3d8; background: #f0f9eb; color: #387c22; }
.pill.orange { border-color: #faecd8; background: #fdf6ec; color: #995d13; }
.pill.red { border-color: #fde2e2; background: #fef0f0; color: #ad4040; }
.pill.gray { border-color: #e9e9eb; background: #f4f4f5; color: var(--muted); }

.button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; white-space: nowrap; min-height: 32px; padding: 6px 12px; color: var(--secondary); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; line-height: 1.3; }
.button:hover { color: var(--blue-ink); border-color: #c6e2ff; background: #ecf5ff; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 550; }
.button.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button.danger { color: #be4141; }
.text-button, .icon-button { border: 0; border-radius: 3px; background: none; padding: 4px 5px; color: var(--blue-ink); text-decoration: none; line-height: 1.3; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.icon-button { color: var(--muted); }
.icon-button:hover { color: var(--blue-ink); }
input:not([type=checkbox]):not([type=file]), select, textarea { width: 100%; min-width: 0; min-height: 32px; border: 1px solid var(--line); border-radius: var(--radius); background-color: #fff; color: var(--secondary); padding: 6px 10px; }
input::placeholder, textarea::placeholder { color: #a0a6b1; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #a8abb2 50%), linear-gradient(135deg, #a8abb2 50%, transparent 50%); background-position: calc(100% - 14px) 14px, calc(100% - 10px) 14px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.filters input:not([type=checkbox]), .filters select, .quickfind input:not([type=checkbox]) { width: auto; }
.filters input[type=search] { width: 180px; }
.quickfind input:not([type=checkbox]) { width: 145px; border-radius: 18px; background: #f4f5f8; padding-left: 28px; }

dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 38px); padding: 0; border: 0; border-radius: 3px; color: var(--text); box-shadow: 0 3px 12px #0003; overflow: auto; }
dialog::backdrop { background: #0008; }
dialog.wide { width: min(1000px, calc(100% - 32px)); }
dialog.task-dialog { width: min(760px, calc(100% - 32px)); }
.dialog-form { display: flex; flex-direction: column; max-height: calc(100dvh - 38px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; }
.dialog-header h2 { margin: 0; font-size: 18px; font-weight: 500; }
.dialog-header .icon-button { font-size: 20px; margin-top: -4px; }
.dialog-body { padding: 20px; overflow-y: auto; }
.dialog-footer { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 10px; padding: 12px 20px 20px; }
.dialog-footer .button { min-width: 70px; min-height: 36px; }
.dialog-error { margin: 0 20px 10px; padding: 8px 11px; color: #a22e2e; background: #fef0f0; border-radius: 4px; overflow-wrap: anywhere; }
.field { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 12px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .field-label { color: var(--secondary); text-align: right; font-weight: 600; padding-top: 6px; overflow-wrap: anywhere; }
.field .required { color: #f56c6c; margin-right: 4px; }
.field-content { min-width: 0; }
.field-content small { display: block; margin-top: 4px; color: var(--muted); }
.field-content label.checkline { display: flex; gap: 7px; text-align: left; align-items: center; padding: 4px 0; font-weight: 400; }
.sop-steps { display: grid; gap: 12px; margin: 16px 0; }
.sop-steps .checkline { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; }
.sop-steps input { flex-shrink: 0; margin-top: 5px; }
.allocation-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, 90px) auto; gap: 8px; margin-bottom: 8px; }
.allocation-row select, .allocation-row input { min-width: 0; width: 100%; }
.field-stack .field { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
.field-stack .field label { text-align: left; padding-top: 0; }
.section-title { display: flex; gap: 12px; align-items: center; margin: 20px 0 16px; font-size: 14px; font-weight: 650; }
.section-title::before, .section-title::after { content: ""; height: 1px; background: var(--line); }
.section-title::before { width: 20px; }
.section-title::after { flex: 1; }
.goal-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.guide { display: flex; flex-direction: column; border: 1px solid var(--grid); border-radius: 4px; min-height: 408px; }
.guide-header { padding: 8px 12px; background: #f4f5f8; border-bottom: 1px solid var(--grid); color: var(--secondary); }
.guide-header small { margin-left: 8px; color: var(--muted); }
.guide-body { flex: 1; padding: 15px 12px; color: var(--muted); }
.guide-body p { margin: 0 0 9px; }
.guide-example { display: block; padding: 6px 9px; margin: 7px 0; width: 100%; color: var(--secondary); text-align: left; background: #f4f5f8; border: 0; border-radius: 4px; }
.guide-footer { display: flex; align-items: end; gap: 8px; padding: 8px; border-top: 1px solid var(--grid); }
.guide-footer textarea { flex: 1; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.hint { color: var(--muted); margin: 0 0 10px; }
.helper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.file-input { width: 100%; max-width: 420px; }
.result-box { padding: 9px 11px; margin: 10px 0; border: 1px solid #d9ecff; border-radius: 4px; background: #ecf5ff; color: #225d91; }
.result-box p { margin: 0 0 6px; }
.result-box p:last-child { margin-bottom: 0; }
.summary { display: grid; gap: 10px 12px; grid-template-columns: 105px minmax(0, 1fr); margin: 0; }
.summary dt { font-weight: 600; color: var(--secondary); }
.summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.history { color: var(--secondary); margin: 12px 0 0; padding-left: 21px; }
.history li + li { margin-top: 6px; }
.member-choices { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; max-height: 180px; overflow: auto; }
.notice { position: fixed; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); padding: 9px 18px; background: #f0f9eb; color: #387c22; border: 1px solid #e1f3d8; border-radius: 4px; box-shadow: 0 2px 9px #0001; }
.notice.error { color: #a22e2e; background: #fef0f0; border-color: #fde2e2; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 22px; background: #f2f5f8; }
.login-card { width: min(100%, 375px); padding: 28px; border: 1px solid var(--grid); border-radius: 6px; background: #fff; box-shadow: 0 2px 12px #18263b13; }
.login-card h1 { margin: 0 0 18px; font-size: 21px; }
.login-card form { display: grid; gap: 10px; }
.login-card p { margin: 10px 0 0; }
.login-card .dialog-error { margin: 0; }
@media (max-width: 740px) {
  .layout { grid-template-columns: 56px minmax(0, 1fr); }
  .layout.sidebar-collapsed { grid-template-columns: 140px minmax(0, 1fr); }
  .sidebar .nav-label, .sidebar .chevron { display: none; }
  .sidebar-collapsed .sidebar .nav-label, .sidebar-collapsed .sidebar .chevron { display: inline; }
  .layout:not(.sidebar-collapsed) .workspace-name, .layout:not(.sidebar-collapsed) .group-title, .layout:not(.sidebar-collapsed) .sidebar a { justify-content: center; padding-inline: 0; }
  .sidebar-collapsed .sidebar a { justify-content: start; padding-inline: 10px; }
  .topbar { gap: 8px; padding: 0 10px; }
  .top-tools { gap: 7px; }
  .top-tools .module-link { margin-right: 0; white-space: nowrap; }
  .breadcrumb .crumb-prefix, .quickfind { display: none; }
  .account-name { max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace, .panel-body { padding: 10px; }
  .panel-header { padding: 12px; min-height: 56px; gap: 8px; }
  .table-scroll table { min-width: 720px; }
  .goal-columns { grid-template-columns: 1fr; }
  .guide { min-height: 210px; }
  .field { grid-template-columns: 1fr; gap: 4px; }
  .field label, .field .field-label { text-align: left; }
}
.material-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 32px; color: var(--secondary); }
.material-toggle input { appearance: none; width: 36px; height: 20px; margin: 0; background: var(--line); border-radius: 11px; position: relative; cursor: pointer; }
.material-toggle input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: white; }
.material-toggle input:checked { background: var(--blue); }
.material-toggle input:checked::before { left: 18px; }
.history details { margin-top: 6px; }
.quote-editor table { min-width: 800px; }
.quote-editor input { width: 100%; min-width: 65px; }
.quote-editor td:first-child { min-width: 170px; }
.quote-editor td:nth-child(2) { min-width: 150px; }
.history details .summary { padding: 10px 0; }
.prospect-source { margin: 14px 0 0; overflow-wrap: anywhere; }

dialog.content-editor { width: min(880px, calc(100vw - 24px)); }
.content-preview { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 16px; margin-block: 12px; border: 1px solid #e4e8ef; padding: 12px; }
.content-preview ul { list-style: none; padding: 0; }
.content-preview article { min-width: 0; max-height: 320px; overflow: auto; overflow-wrap: anywhere; }
.content-preview p { white-space: pre-wrap; }
.framework-tree, .framework-tree ul { list-style: none; padding-left: 16px; }
.framework-tree li { padding-block: 6px; }
.framework-actions { padding: 5px 16px; }
@media (max-width: 620px) { .content-preview { grid-template-columns: 1fr; } }

.asset-preview { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; margin: auto; }
.operations-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 24px; }
.operations-summary a { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #e4e8ef; border-radius: 5px; text-decoration: none; }
.operations-summary a:hover { background: #f4f8fe; }
.operations-summary strong { font-size: 24px; }

.seo-shortcuts { display: flex; gap: 12px; margin-bottom: 14px; }
.seo-shortcuts .module-link { display: inline-flex; align-items: center; gap: 8px; }
.seo-detail { background: #f4f7fa; padding: 12px; }
.seo-card { background: white; border: 1px solid #dfe8f1; border-radius: 8px; padding: 18px; min-width: 0; }
.seo-card h2, .seo-card h3 { margin: 0 0 12px; }
.seo-card h3 span { float: right; color: #2478ce; }
.seo-card p { margin: 0 0 12px; }
.seo-progress { width: 100%; height: 10px; accent-color: #4297ef; }
.seo-stage-line, .seo-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.seo-stage-line nav { display: flex; flex-wrap: wrap; gap: 7px; }
.seo-stage-line strong, .seo-focus strong, .seo-focus small { display: block; }
.seo-step, .seo-item-number { display: inline-grid; place-items: center; border-radius: 50%; width: 30px; height: 30px; flex: 0 0 30px; }
.seo-step { border: 1px solid #d9e3ee; color: #5c7085; text-decoration: none; }
.seo-step.is-done { background: #287f49; color: white; border-color: #287f49; }
.seo-step.is-current { outline: 2px solid #267dcf; outline-offset: 2px; }
.seo-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; margin-top: 14px; }
.seo-goal { border-left: 3px solid #4297ef; padding: 10px; background: #f5f9fd; }
.seo-ring { position: relative; display: grid; place-items: center; flex: 0 0 74px; height: 74px; font-weight: 600; color: #2569ab; }
.seo-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 7; }
.seo-ring-track { stroke: #e0ebf6; }
.seo-ring-value { stroke: #409eff; }
.seo-ring[data-progress="100"] .seo-ring-value { stroke: #287f49; }
.seo-focus .text-button { margin-left: auto; background: #2676c8; color: white; padding: 8px 12px; border-radius: 5px; }
.seo-materials, .seo-checklist { margin: 0 0 12px; padding: 0; list-style: none; }
.seo-materials li, .seo-checklist li { border-bottom: 1px solid #e9eff5; padding: 9px 0; }
.seo-checklist li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.seo-checklist strong { flex: 1 1 150px; }
.seo-item-number { background: #eaf3fc; color: #276ba9; }
@media (max-width: 760px) { .seo-grid { grid-template-columns: 1fr; } }

.seo-coach-answer { white-space: pre-wrap; }

.knowledge-html-preview{width:100%;min-height:320px;border:1px solid #d8e1e8;background:white}.knowledge-text-preview{white-space:pre-wrap;overflow-wrap:anywhere}[data-knowledge-grid] td input{min-width:120px;width:100%}

.article-links { margin: 14px 0; padding: 12px 16px; border: 1px solid #d8e1e8; border-radius: 6px; overflow-wrap: anywhere; }
.article-links summary { cursor: pointer; font-weight: 600; }
.article-link-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.article-link-controls > div { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.article-link-controls select { min-width: 0; width: 100%; }
.article-links ul { padding-inline-start: 20px; }
