/* [1735-1775] technical-workbench + plan-step-body grid-template-rows variants */
.technical-workbench {
  position: relative;
  gap: 18px;
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.plan-step-body {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.technical-workbench > .plan-step-body {
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.technical-workbench > .plan-step-body:not(.document-analysis-page):not(.bid-analysis-page):not(.outline-generation-page):not(.content-generation-page) {
  grid-template-rows: auto minmax(0, 1fr);
}

.technical-workbench > .document-analysis-page {
  grid-template-rows: auto minmax(0, 1fr);
}

.technical-workbench > .document-analysis-page.has-section-hint {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.technical-workbench > .document-analysis-page.has-document-tabs {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.technical-workbench > .document-analysis-page.has-section-hint.has-document-tabs {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

/* [1777-2081] analysis-import-card/result-card/markdown-card + technical-document-upload-board/reader + document-switch-tabs */
.analysis-import-card,
.analysis-result-card,
.analysis-markdown-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 233, 240, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.analysis-import-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
}

.analysis-import-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.analysis-import-card p {
  margin: 0;
  color: var(--yb-text-soft);
}

.technical-document-upload-board,
.technical-document-reader-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 233, 240, 0.88);
  border-radius: 26px;
  box-shadow: var(--yb-shadow);
}

.technical-document-upload-board {
  display: grid;
  gap: 14px;
  padding: 20px 24px 22px;
}

.technical-document-page-title,
.technical-document-file-pill {
  display: flex;
  align-items: center;
}

.technical-document-page-title {
  justify-content: space-between;
  gap: 18px;
}

.technical-document-page-title h2 {
  margin: 8px 0 0;
  color: var(--yb-text);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.technical-document-page-title p {
  margin: 6px 0 0;
  color: var(--yb-text-soft);
}

.technical-document-upload-stack {
  display: grid;
  gap: 12px;
}

.technical-document-upload-row {
  display: grid;
  min-height: 86px;
  grid-template-columns: 168px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 22px;
  background: linear-gradient(135deg, rgba(248, 250, 253, 0.86), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--yb-border-soft);
  border-radius: 22px;
}

.technical-document-upload-label {
  display: grid;
  gap: 5px;
}

.technical-document-upload-label span {
  width: max-content;
  padding: 4px 8px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: #eef4ff;
  border-radius: 999px;
}

.technical-document-upload-label strong {
  color: var(--yb-text);
  font-size: 19px;
}

.technical-document-upload-content {
  min-width: 0;
}

.technical-document-empty-upload {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 4px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(33, 116, 253, 0.055), rgba(33, 116, 253, 0.012));
  border: 1px solid rgba(33, 116, 253, 0.13);
  border-radius: 16px;
}

.technical-document-empty-upload strong {
  color: var(--yb-text);
  font-size: 14px;
}

.technical-document-empty-upload span,
.technical-document-file-info span {
  color: var(--yb-text-soft);
  font-size: 13px;
}

.technical-document-upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 104px;
}

.technical-document-upload-actions .primary-action,
.technical-document-upload-actions .secondary-action {
  min-width: 96px;
  white-space: nowrap;
}

.technical-document-file-pill {
  min-width: 0;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.technical-document-file-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-radius: 14px;
}

.technical-document-file-info {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.technical-document-file-info strong {
  overflow: hidden;
  color: var(--yb-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-document-file-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-switch-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(27, 50, 92, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(33, 116, 253, 0.08);
}

.document-switch-tab {
  display: inline-flex;
  min-width: 116px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  color: var(--yb-text-soft);
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.document-switch-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  box-shadow: 0 10px 22px rgba(33, 116, 253, 0.22);
}

.document-switch-tab strong {
  color: inherit;
  font-size: 15px;
}

.technical-document-reader-card {
  height: 100%;
}

.technical-document-reader-head {
  min-width: 0;
}

.technical-document-reader-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-actions,
.plan-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.analysis-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.analysis-result-card {
  display: grid;
  overflow: hidden;
}

.analysis-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.analysis-result-head strong {
  color: var(--yb-text);
  font-size: 18px;
}

.analysis-result-head span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.analysis-result-card textarea {
  width: 100%;
  min-height: 380px;
  padding: 20px;
  color: var(--yb-text);
  line-height: 1.7;
  resize: vertical;
  background: rgba(248, 250, 253, 0.52);
  border: 0;
  outline: none;
}

.analysis-result-card textarea:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(33, 116, 253, 0.18);
}

.analysis-markdown-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.analysis-markdown-card .markdown-viewer,
.analysis-markdown-card .markdown-empty-state {
  min-height: 0;
}


/* [2568-2570] plan-step-actions */
.plan-step-actions {
  padding: 4px 0 0;
}

/* [2572-3145] bid-analysis-* 全部 (BidAnalysisPage.tsx) */
.bid-analysis-page {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.bid-analysis-command-bar,
.bid-analysis-workspace {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 233, 240, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.bid-analysis-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(91, 84, 211, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.bid-analysis-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.bid-analysis-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

.bid-analysis-config-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  padding: 9px 12px;
  color: var(--yb-text-soft);
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.14);
  border-radius: 999px;
}

.bid-analysis-config-chip span {
  color: var(--yb-primary);
  font-size: 13px;
  font-weight: 800;
}

.bid-analysis-config-chip small {
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.bid-analysis-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bid-analysis-mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 999px;
}

.bid-analysis-mode-pill {
  display: inline-flex;
  min-width: 154px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--yb-text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.bid-analysis-mode-pill:hover:not(:disabled) {
  color: var(--yb-primary);
  background: rgba(255, 255, 255, 0.72);
}

.bid-analysis-mode-pill.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.22);
}

.bid-analysis-mode-pill:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.bid-analysis-mode-pill span {
  font-weight: 800;
}

.bid-analysis-mode-pill small {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.82;
}

.bid-analysis-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.bid-analysis-task-pane {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.86), #ffffff);
  border-right: 1px solid var(--yb-border-soft);
}

.bid-analysis-task-head {
  padding: 18px 20px;
}

.bid-analysis-progress-summary {
  border-bottom: 1px solid var(--yb-border-soft);
}

.bid-analysis-task-list {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  scrollbar-gutter: stable;
}

.bid-analysis-task-group {
  display: grid;
  gap: 8px;
}

.bid-analysis-task-group > span {
  padding: 0 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.bid-analysis-task-item {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 13px 70px 13px 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.bid-analysis-task-item:hover:not(:disabled),
.bid-analysis-task-item.is-active {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.16);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
}

.bid-analysis-task-item:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.bid-analysis-task-item.is-active::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  content: '';
  background: var(--yb-primary);
  border-radius: 999px;
}

.bid-analysis-task-item strong {
  color: var(--yb-text);
  font-size: 14px;
}

.bid-analysis-task-item small {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bid-analysis-task-item em {
  position: absolute;
  top: 13px;
  right: 12px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.bid-analysis-task-item.is-running em {
  color: var(--yb-primary);
}

.bid-analysis-task-item.is-success em {
  color: #137a43;
}

.bid-analysis-task-item.is-error em {
  color: #c83220;
}

.bid-analysis-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.bid-analysis-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.bid-analysis-reader-head strong {
  display: block;
  margin: 7px 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.bid-analysis-reader-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.65;
}

.bid-analysis-reader-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.bid-analysis-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.bid-analysis-status.is-running {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.bid-analysis-status.is-success {
  color: #137a43;
  background: rgba(19, 122, 67, 0.1);
}

.bid-analysis-status.is-error {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.bid-analysis-output {
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 28px;
}

.bid-analysis-json-table-wrap {
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 28px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.68), #ffffff 22%);
}

.bid-analysis-json-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.bid-analysis-json-table tr + tr th,
.bid-analysis-json-table tr + tr td {
  border-top: 1px solid var(--yb-border-soft);
}

.bid-analysis-json-table th,
.bid-analysis-json-table td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.bid-analysis-json-table th {
  width: 190px;
  color: var(--yb-text-soft);
  font-weight: 800;
  background: #f6f9ff;
  border-right: 1px solid var(--yb-border-soft);
}

.bid-analysis-json-table td {
  color: var(--yb-text);
  white-space: pre-wrap;
}

.bid-analysis-empty {
  min-height: 0;
  overflow: auto;
}

.bid-analysis-config-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  width: min(760px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 40px));
  transform: translate(-50%, -50%);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: 26px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.16);
}

.bid-analysis-config-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.bid-analysis-config-head strong {
  display: block;
  margin: 5px 0 0;
  color: var(--yb-text);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.bid-analysis-config-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.bid-analysis-config-presets {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(33, 116, 253, 0.1), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(33, 116, 253, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(33, 116, 253, 0.1);
}

.bid-analysis-config-preset {
  display: inline-flex;
  min-width: 126px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--yb-text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.bid-analysis-config-preset span,
.bid-analysis-config-preset small {
  font-weight: 800;
}

.bid-analysis-config-preset small {
  font-size: 12px;
  opacity: 0.82;
}

.bid-analysis-config-preset:hover:not(:disabled) {
  color: var(--yb-primary);
  background: rgba(255, 255, 255, 0.72);
}

.bid-analysis-config-preset.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.22);
}

.bid-analysis-config-preset:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.bid-analysis-config-section {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.bid-analysis-section-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.bid-analysis-section-label {
  color: var(--yb-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.bid-analysis-section-chip {
  display: inline-flex;
  max-width: 260px;
  align-items: center;
  padding: 5px 11px;
  overflow: hidden;
  color: var(--yb-primary);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(33, 116, 253, 0.12), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(33, 116, 253, 0.2);
  border-radius: 999px;
}

.bid-analysis-section-change {
  min-height: 32px;
  padding: 0 13px;
}

.bid-analysis-config-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.bid-analysis-config-section-head strong {
  color: var(--yb-text);
  font-size: 15px;
}

.bid-analysis-config-section-head span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.bid-analysis-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bid-analysis-config-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  background: rgba(248, 250, 253, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.bid-analysis-config-item:hover:not(.is-required) {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.22);
}

.bid-analysis-config-item.is-selected {
  background: linear-gradient(135deg, rgba(33, 116, 253, 0.1), rgba(124, 58, 237, 0.08));
  border-color: rgba(33, 116, 253, 0.3);
  box-shadow: 0 10px 26px rgba(33, 116, 253, 0.1);
}

.bid-analysis-config-item.is-required {
  cursor: default;
}

.bid-analysis-config-item input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--yb-primary);
}

.bid-analysis-config-item input:disabled {
  cursor: not-allowed;
}

.bid-analysis-config-item span {
  min-width: 0;
}

.bid-analysis-config-item strong {
  display: block;
  overflow: hidden;
  color: var(--yb-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bid-analysis-config-item em {
  padding: 3px 7px;
  color: var(--yb-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: rgba(33, 116, 253, 0.1);
  border-radius: 999px;
}

.bid-analysis-config-actions {
  padding-top: 2px;
}

/* [3147-3402] global-facts-* 全部 (GlobalFactsPage.tsx) */
.global-facts-page {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.global-facts-command-bar,
.global-facts-workspace {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 233, 240, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.global-facts-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(28, 184, 116, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.global-facts-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.global-facts-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

.global-facts-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.global-facts-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 11px;
  color: var(--yb-text-soft);
  font-size: 12px;
  font-weight: 800;
  background: rgba(28, 184, 116, 0.09);
  border: 1px solid rgba(28, 184, 116, 0.14);
  border-radius: 999px;
}

.global-facts-stats strong {
  margin: 0;
  color: #0f8f58;
  font-size: 16px;
  letter-spacing: 0;
}

.global-facts-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.global-facts-panel,
.global-facts-reader {
  min-width: 0;
  min-height: 0;
}

.global-facts-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.86), #ffffff);
  border-right: 1px solid var(--yb-border-soft);
}

.global-facts-panel-head {
  align-items: center;
  padding: 18px 20px;
}

.global-facts-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  scrollbar-gutter: stable;
}

.global-facts-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.global-facts-item:hover,
.global-facts-item.is-active {
  background: #ffffff;
  border-color: rgba(28, 184, 116, 0.18);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
}

.global-facts-item strong {
  overflow: hidden;
  color: var(--yb-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-facts-item small {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-facts-empty-list {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--yb-text-soft);
  text-align: center;
  background: rgba(248, 250, 253, 0.78);
  border: 1px dashed var(--yb-border-soft);
  border-radius: 18px;
}

.global-facts-empty-list strong {
  color: var(--yb-text);
}

.global-facts-empty-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.global-facts-panel-actions {
  padding: 14px 16px;
  border-top: 1px solid var(--yb-border-soft);
}

.global-facts-panel-actions .secondary-action {
  width: 100%;
}

.global-facts-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.global-facts-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.global-facts-reader-head strong {
  display: block;
  margin: 7px 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.global-facts-reader-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.65;
}

.global-facts-reader-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.global-facts-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  min-height: 0;
  overflow: hidden;
}

.global-facts-edit-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--yb-border-soft);
}

.global-facts-edit-pane label {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--yb-border-soft);
}

.global-facts-edit-pane label span {
  color: var(--yb-text-soft);
  font-size: 12px;
  font-weight: 800;
}

.global-facts-edit-pane input {
  width: 100%;
  padding: 11px 12px;
  color: var(--yb-text);
  font-size: 15px;
  font-weight: 800;
  background: rgba(248, 250, 253, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  outline: none;
}

.global-facts-edit-pane input:focus {
  border-color: rgba(28, 184, 116, 0.45);
  box-shadow: 0 0 0 3px rgba(28, 184, 116, 0.12);
}

.global-facts-preview-pane {
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 28px;
}

.global-facts-empty {
  min-height: 0;
  overflow: auto;
}

/* [3404-3927] content-generation-*-/content-outline-*-/content-reader-*-/content-status-badge/content-regenerate-popover (ContentEditPage.tsx) */
.content-generation-page {
  position: relative;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.content-generation-page.has-dev-stats {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.content-generation-command-bar,
.content-generation-progress-card,
.content-generation-workspace {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 233, 240, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.content-generation-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(64, 152, 252, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.content-generation-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.content-generation-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

.content-generation-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.content-generation-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 11px;
  color: var(--yb-text-soft);
  font-size: 12px;
  font-weight: 800;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 999px;
}

.content-generation-stats strong {
  margin: 0;
  color: var(--yb-primary);
  font-size: 16px;
  letter-spacing: 0;
}

.content-generation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-dev-stats-panel {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--yb-text-soft);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 233, 240, 0.92);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.content-dev-stats-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-right: 2px;
}

.content-dev-stats-summary strong,
.content-dev-image-stat strong {
  color: var(--yb-text);
}

.content-dev-stats-summary span {
  color: var(--yb-text-muted);
}

.content-dev-stats-panel b {
  color: #137a43;
  font-size: 13px;
}

.content-dev-image-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 9px;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.1);
  border-radius: 999px;
}

.content-dev-stats-action {
  min-height: 30px;
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12px;
}

.content-generation-progress-card {
  overflow: hidden;
}

.content-generation-progress-track {
  position: relative;
  height: 10px;
  margin: 18px 20px 0;
  overflow: hidden;
  background: rgba(33, 116, 253, 0.1);
  border-radius: 999px;
}

.content-generation-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yb-primary), var(--yb-violet));
  border-radius: inherit;
  transition: width 180ms ease;
}

.content-generation-progress-track.is-planning {
  background: rgba(28, 184, 116, 0.12);
}

.content-generation-progress-track.is-planning span {
  background: linear-gradient(90deg, #1cb874, #58d68d);
}

.content-generation-progress-track.is-word-adjusting {
  background: rgba(245, 158, 11, 0.14);
}

.content-generation-progress-track.is-word-adjusting span {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.content-generation-progress-track.is-auditing {
  background: rgba(14, 165, 233, 0.13);
}

.content-generation-progress-track.is-auditing span {
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
}

.content-generation-progress-track.is-illustration-planning {
  background: rgba(139, 92, 246, 0.12);
}

.content-generation-progress-track.is-illustration-planning span {
  background: linear-gradient(90deg, #8b5cf6, #2174fd);
}

.content-generation-progress-track.is-active::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: content-progress-sweep 1.35s linear infinite;
}

@keyframes content-progress-sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.content-generation-progress-card p {
  margin: 14px 20px 20px;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.content-generation-workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.content-outline-panel,
.content-reader-panel {
  min-width: 0;
  min-height: 0;
}

.content-outline-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.86), #ffffff);
  border-right: 1px solid var(--yb-border-soft);
}

.content-outline-stats {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.content-outline-stats.is-collapsed {
  gap: 0;
}

.content-outline-stats > button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.content-outline-stats > button span {
  color: var(--yb-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.content-outline-stats > button strong {
  color: var(--yb-primary);
  font-size: 14px;
}

.content-outline-stats > button em {
  padding: 4px 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
}

.content-outline-stats > button:hover em {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.content-outline-stats-body {
  display: grid;
  gap: 8px;
}

.content-outline-stats-body .content-generation-progress-track {
  margin: 0;
}

.content-outline-stats-body p,
.content-outline-stats-body small {
  margin: 0;
  color: var(--yb-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.content-outline-stats-body small {
  color: #c83220;
  font-weight: 800;
}

.content-outline-list {
  overflow: auto;
  padding: 16px;
}

.content-outline-node {
  margin-left: calc(var(--content-level) * 16px);
}

.content-outline-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 12px 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.content-outline-item:hover,
.content-outline-item.is-active {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.16);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
}

.content-outline-dot {
  width: 10px;
  height: 10px;
  background: #9aa6b8;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(154, 166, 184, 0.1);
}

.content-outline-item.is-running .content-outline-dot {
  background: var(--yb-primary);
  box-shadow: 0 0 0 5px rgba(33, 116, 253, 0.1);
  animation: ai-pulse 1.2s ease-in-out infinite;
}

.content-outline-item.is-planning .content-outline-dot {
  background: #1cb874;
  box-shadow: 0 0 0 5px rgba(28, 184, 116, 0.12);
  animation: ai-pulse 1.2s ease-in-out infinite;
}

.content-outline-item.is-success .content-outline-dot {
  background: #137a43;
  box-shadow: 0 0 0 5px rgba(19, 122, 67, 0.1);
}

.content-outline-item.is-error .content-outline-dot {
  background: #c83220;
  box-shadow: 0 0 0 5px rgba(200, 50, 32, 0.1);
}

.content-outline-item.is-partial .content-outline-dot {
  background: #be9123;
  box-shadow: 0 0 0 5px rgba(190, 145, 35, 0.1);
}

.content-outline-text {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.content-outline-text strong {
  overflow: hidden;
  color: var(--yb-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-outline-text small {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-outline-item em {
  padding: 5px 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
}

.content-outline-item em.is-clickable {
  cursor: pointer;
}

.content-outline-item em.is-clickable:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
}

.content-regenerate-popover {
  z-index: 100;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: 240px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(33, 116, 253, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.1);
}

.content-regenerate-popover-arrow {
  fill: #ffffff;
  stroke: rgba(33, 116, 253, 0.18);
  stroke-width: 1px;
}

.content-regenerate-popover strong {
  color: var(--yb-text);
  font-size: 13px;
}

.content-regenerate-popover span {
  color: var(--yb-text-soft);
  font-size: 12px;
}

.content-regenerate-popover div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.content-regenerate-popover button {
  padding: 7px 10px;
  font-size: 12px;
}

.content-outline-item.is-running em {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.content-outline-item.is-planning em {
  color: #0f8f58;
  background: rgba(28, 184, 116, 0.12);
}

.content-outline-item.is-success em {
  color: #137a43;
  background: rgba(19, 122, 67, 0.1);
}

.content-outline-item.is-error em {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.content-outline-item.is-partial em {
  color: #8a650b;
  background: rgba(255, 209, 102, 0.16);
}

.content-reader-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.content-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.content-reader-head strong {
  display: block;
  margin: 7px 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.content-reader-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.65;
}

.content-reader-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.content-status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.content-status-badge.is-running {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.content-status-badge.is-planning {
  color: #0f8f58;
  background: rgba(28, 184, 116, 0.12);
}

.content-status-badge.is-success {
  color: #137a43;
  background: rgba(19, 122, 67, 0.1);
}

.content-status-badge.is-error {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.content-status-badge.is-partial {
  color: #8a650b;
  background: rgba(255, 209, 102, 0.16);
}

.content-generation-output {
  max-height: none;
  min-height: 0;
  padding: 22px 24px 28px;
}

.content-generation-empty {
  min-height: 0;
}

/* [4289-4344] content-generation-config-card + export-progress-card + export-template-select-dialog (TechnicalPlanHome模板选择弹窗) */
.content-generation-config-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(920px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  transform: translate(-50%, -50%);
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.16);
}

.html-image-types-modal {
  z-index: 120;
}

.html-image-types-card {
  z-index: 121;
  width: min(640px, calc(100vw - 40px));
}

.html-image-types-card textarea {
  min-height: 260px;
}

.export-progress-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 40px));
  transform: translate(-50%, -50%);
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.16);
}

.export-template-select-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  width: min(1120px, calc(100vw - 48px));
  max-height: min(780px, calc(100vh - 48px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.16);
  transform: translate(-50%, -50%);
}

/* [4346-4515] export-template-select-head/body/list-panel/search/list/row/empty/preview + media(900px) */
.export-template-select-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.export-template-select-head h2 {
  margin: 5px 0 3px;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.export-template-select-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.6;
}

.export-template-select-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.export-template-select-list-panel,
.export-template-select-preview {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(248, 250, 253, 0.82);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.export-template-select-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.export-template-select-search {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  outline: none;
}

.export-template-select-search:focus {
  border-color: rgba(33, 116, 253, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 116, 253, 0.1);
}

.export-template-select-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow: auto;
}

.export-template-select-row {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--yb-text);
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.82);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.export-template-select-row strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-template-select-row.is-active {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.08);
  border-color: rgba(33, 116, 253, 0.34);
}

.export-template-select-row:hover:not(.is-active) {
  border-color: rgba(33, 116, 253, 0.24);
  box-shadow: var(--yb-shadow-sm);
}

.export-template-select-empty,
.export-template-select-preview-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 18px;
  color: var(--yb-text-soft);
  text-align: center;
}

.export-template-select-empty strong,
.export-template-select-preview-empty strong {
  color: var(--yb-text);
}

.export-template-select-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.export-template-select-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--yb-border-soft);
}

.export-template-select-preview-head strong {
  overflow: hidden;
  color: var(--yb-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-template-select-preview .export-template-preview-panel {
  position: relative;
  top: auto;
  height: 100%;
  max-height: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.export-template-select-preview .export-template-preview-scroll {
  padding: 0;
}

.export-template-select-preview .export-template-preview-paper {
  min-height: 0;
}

.export-template-select-actions {
  padding-top: 0;
}

/* [4517-4539] workflow-switch-card/summary (TechnicalPlanHome) */
.workflow-switch-card {
  width: min(620px, calc(100vw - 40px));
}

.workflow-switch-summary {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.7;
  background: rgba(244, 247, 251, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
}

.workflow-switch-summary span:first-child {
  color: #17803d;
}

.workflow-switch-summary span:last-child {
  color: #b42318;
}

/* [4965-5007] export-progress-body + export-warning-list (TechnicalPlanHome Word导出进度) */
.export-progress-body {
  display: grid;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.export-progress-card > .content-regenerate-card-head,
.export-progress-card > .content-regenerate-actions {
  flex: 0 0 auto;
}

.export-progress-body .content-generation-progress-track {
  margin: 0;
}

.export-progress-body p {
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.export-warning-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 16px;
}

.export-warning-list strong {
  color: #8a5b04;
  font-size: 13px;
}

.export-warning-list small {
  color: #755110;
  font-size: 12px;
  line-height: 1.55;
}

/* [5009-5144] content-generation-config-list/row/control + content-image-status + content-generation-switch/-thumb */
.content-generation-config-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.content-generation-config-group {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-generation-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: rgba(248, 250, 253, 0.82);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.content-generation-config-row span {
  display: grid;
  gap: 6px;
}

.content-generation-config-row strong {
  color: var(--yb-text);
  font-size: 15px;
}

.content-generation-image-option-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.content-generation-example-button {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--yb-text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: color var(--yb-duration-fast) ease, background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.content-generation-example-button svg {
  width: 18px;
  height: 18px;
}

.content-generation-example-button:hover,
.content-generation-example-button:focus-visible {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
  transform: scale(1.06);
}

.content-generation-example-button:focus-visible {
  outline: 3px solid rgba(33, 116, 253, 0.16);
  outline-offset: 2px;
}

.content-generation-config-row small,
.content-generation-config-note {
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.word-control-result-card {
  width: min(680px, calc(100vw - 40px));
}

.word-control-result-body {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
}

.word-control-result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.word-control-result-metric {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 16px;
}

.word-control-result-metric > strong {
  color: #8a5b04;
  font-size: 14px;
}

.word-control-result-metric dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.word-control-result-metric dl > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.word-control-result-metric dt {
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.word-control-result-metric dd {
  margin: 0;
  color: var(--yb-text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.word-control-result-metric dl > div:last-child dd {
  color: #b76400;
}

.word-control-result-sections {
  display: grid;
  min-height: 0;
  gap: 10px;
}

.word-control-result-sections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.word-control-result-sections-head strong {
  color: var(--yb-text);
  font-size: 14px;
}

.word-control-result-sections-head span {
  color: #b76400;
  font-size: 12px;
  font-weight: 800;
}

.word-control-result-section-list {
  display: grid;
  max-height: 260px;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.word-control-result-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: rgba(248, 250, 253, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 13px;
}

.word-control-result-section span {
  min-width: 0;
  overflow: hidden;
  color: var(--yb-text-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-control-result-section strong {
  color: #b76400;
  font-size: 13px;
  white-space: nowrap;
}

.content-generation-config-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-image-status {
  padding: 5px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  border-radius: 999px;
}

.content-image-status.is-available {
  color: #0f8f58;
  background: rgba(28, 184, 116, 0.12);
}

.content-image-status.is-untested {
  color: #8a5b04;
  background: rgba(255, 209, 102, 0.2);
}

.content-image-status.is-unavailable {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.content-generation-switch {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  background: rgba(144, 147, 153, 0.26);
  border: 1px solid rgba(144, 147, 153, 0.2);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.05);
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.content-generation-switch[data-state="checked"] {
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-color: rgba(33, 116, 253, 0.3);
}

.content-generation-switch[data-disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

.content-generation-switch-thumb {
  display: block;
  width: 22px;
  height: 22px;
  transform: translateX(3px);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(23, 32, 51, 0.14);
  transition: transform 160ms ease;
}

.content-generation-switch-thumb[data-state="checked"] {
  transform: translateX(21px);
}

.content-generation-config-row input[type="number"],
.content-generation-config-row select {
  width: 110px;
  padding: 10px 12px;
  border: 1px solid var(--yb-border);
  border-radius: 14px;
  background: #ffffff;
}

.content-generation-config-note {
  grid-column: 1 / -1;
  padding: 12px 14px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 16px;
}

.content-generation-config-card > .content-regenerate-card-head,
.content-generation-config-card > .content-regenerate-actions {
  flex: 0 0 auto;
}

.content-generation-config-card > .content-generation-config-list,
.content-generation-config-card > .content-generation-config-note {
  min-height: 0;
}

.content-generation-config-card > .content-generation-config-note {
  overflow: auto;
}

/* [5192-6282] outline-generation-page 全部 + bid-section-selector-* (BidSectionSelectorDialog.tsx) + analysis-section-hint (DocumentAnalysisPage.tsx) */
.outline-generation-page {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.outline-command-bar,
.outline-generation-workspace {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 233, 240, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.outline-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(33, 116, 253, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.outline-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.outline-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

.outline-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.outline-config-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.18);
  border-radius: 14px;
}

.outline-config-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outline-config-action:hover:not(:disabled) {
  background: rgba(33, 116, 253, 0.13);
  border-color: rgba(33, 116, 253, 0.3);
}

.outline-config-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.outline-generation-config-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(860px, calc(100vw - 40px));
  height: min(780px, calc(100vh - 40px));
  transform: translate(-50%, -50%);
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.16);
  overflow: hidden;
}

.outline-generation-config-section {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.outline-generation-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.outline-generation-config-head strong {
  color: var(--yb-text);
  font-size: 15px;
}

.outline-generation-config-head span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.outline-generation-config-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  overflow: hidden;
}

.outline-generation-config-body.has-expansion-mode {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.outline-generation-config-body.has-dev-tools {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.outline-generation-config-body.has-expansion-mode.has-dev-tools {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.outline-expansion-mode-section {
  min-height: 0;
}

.outline-expansion-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.outline-expansion-mode-option {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  color: var(--yb-text-soft);
  text-align: left;
  background: rgba(248, 250, 253, 0.82);
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.outline-expansion-mode-option strong {
  color: var(--yb-text);
  font-size: 14px;
}

.outline-expansion-mode-option span {
  font-size: 12px;
  line-height: 1.6;
}

.outline-expansion-mode-option:hover:not(:disabled),
.outline-expansion-mode-option.is-selected {
  background: rgba(33, 116, 253, 0.08);
  border-color: rgba(33, 116, 253, 0.34);
}

.outline-expansion-mode-option.is-selected strong {
  color: var(--yb-primary);
}

.outline-expansion-mode-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.outline-agent-debug-section {
  min-height: 0;
}

.outline-agent-debug-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 248, 230, 0.72);
  border: 1px solid rgba(224, 164, 57, 0.34);
  border-radius: 16px;
}

.outline-agent-debug-option > span:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.outline-agent-debug-option strong {
  color: #8a4f00;
  font-size: 14px;
}

.outline-agent-debug-option small {
  color: #8b6a31;
  font-size: 12px;
  line-height: 1.6;
}

.outline-word-control-section {
  padding: 14px;
  background: rgba(248, 250, 253, 0.72);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.outline-word-control-section > .content-generation-config-row,
.outline-word-control-options > .content-generation-config-row {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.outline-word-control-options {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--yb-border-soft);
}

.outline-word-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.outline-word-control-grid label {
  display: grid;
  gap: 6px;
  color: var(--yb-text-soft);
  font-size: 13px;
}

.outline-word-control-grid input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border);
  border-radius: 12px;
}

.outline-word-control-grid small,
.outline-word-control-estimate small {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-word-control-estimate {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--yb-text-soft);
  font-size: 13px;
}

.outline-word-control-estimate strong {
  color: var(--yb-text);
}

.outline-word-control-notice {
  padding: 10px 12px;
  color: #8a5b04;
  font-size: 12px;
  line-height: 1.55;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 12px;
}

.outline-knowledge-picker {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.outline-generation-config-card .content-regenerate-actions {
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(228, 233, 240, 0.74);
}

.bid-section-selector-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  transform: translate(-50%, -50%);
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.16);
  overflow: hidden;
}

.bid-section-selector-head {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
}

.bid-section-selector-head h2 {
  margin: 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.bid-section-selector-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.7;
}

.bid-section-selector-head strong {
  color: var(--yb-text);
}

.bid-section-selector-list {
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.bid-section-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  text-align: left;
  background: rgba(248, 250, 253, 0.9);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bid-section-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bid-section-card-index {
  color: var(--yb-text);
  font-size: 15px;
  font-weight: 600;
}

.bid-section-card-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #2174fd, #7c3aed);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}

.bid-section-card-headline {
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.bid-section-card-description {
  margin: 0;
  color: var(--yb-text-muted);
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bid-section-card:hover:not(:disabled) {
  background: rgba(240, 244, 250, 0.95);
  border-color: rgba(33, 116, 253, 0.28);
}

.bid-section-card.is-active {
  background: linear-gradient(135deg, rgba(33, 116, 253, 0.12), rgba(124, 58, 237, 0.1));
  border-color: rgba(33, 116, 253, 0.36);
  box-shadow: 0 12px 30px rgba(33, 116, 253, 0.14);
}

.bid-section-card:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.bid-section-selector-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.analysis-section-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(33, 116, 253, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(33, 116, 253, 0.2);
  border-radius: 14px;
  font-size: 13px;
  color: var(--yb-text-soft);
}

.analysis-section-hint strong {
  color: var(--yb-text);
}

.analysis-section-hint-detail {
  color: var(--yb-text-soft);
}

.outline-knowledge-folder-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.outline-knowledge-folder {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(248, 250, 253, 0.82);
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
}

.outline-knowledge-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.outline-knowledge-folder-head strong {
  min-width: 0;
  color: var(--yb-text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-knowledge-folder-head span,
.outline-knowledge-folder-empty,
.outline-knowledge-empty {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-document-list {
  display: grid;
  gap: 8px;
}

.outline-knowledge-document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.78);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.outline-knowledge-document input {
  margin-top: 3px;
}

.outline-knowledge-document span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.outline-knowledge-document strong {
  color: var(--yb-text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-knowledge-document small {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-document.is-selected {
  background: rgba(33, 116, 253, 0.08);
  border-color: rgba(33, 116, 253, 0.34);
}

.outline-knowledge-document.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.outline-knowledge-empty {
  padding: 18px;
  text-align: center;
  background: rgba(248, 250, 253, 0.82);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 16px;
}

.outline-knowledge-compact {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.outline-knowledge-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.outline-knowledge-search-row span {
  color: var(--yb-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.outline-knowledge-search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  color: var(--yb-text);
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  outline: none;
}

.outline-knowledge-search:focus {
  border-color: rgba(33, 116, 253, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 116, 253, 0.1);
}

.outline-knowledge-search:disabled {
  cursor: not-allowed;
  background: rgba(248, 250, 253, 0.9);
  opacity: 0.68;
}

.outline-knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.outline-knowledge-browser,
.outline-knowledge-selected-pane {
  min-width: 0;
  min-height: 0;
  background: rgba(248, 250, 253, 0.72);
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
  overflow: hidden;
}

.outline-knowledge-browser {
  display: flex;
  flex-direction: column;
}

.outline-knowledge-selected-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.outline-knowledge-pane-head {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.outline-knowledge-pane-head strong {
  color: var(--yb-text);
  font-size: 13px;
}

.outline-knowledge-pane-head span {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-pane-head button,
.outline-knowledge-folder-actions button,
.outline-knowledge-selected-item button {
  padding: 4px 7px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 700;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 8px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease;
}

.outline-knowledge-pane-head button:hover:not(:disabled),
.outline-knowledge-folder-actions button:hover:not(:disabled),
.outline-knowledge-selected-item button:hover:not(:disabled) {
  background: rgba(33, 116, 253, 0.14);
  border-color: rgba(33, 116, 253, 0.24);
}

.outline-knowledge-pane-head button:disabled,
.outline-knowledge-folder-actions button:disabled,
.outline-knowledge-selected-item button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.outline-knowledge-folder-list.compact,
.outline-knowledge-selected-list {
  display: grid;
  align-content: start;
  gap: 6px;
  align-self: stretch;
  height: auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  scrollbar-gutter: stable;
}

.outline-knowledge-folder-list.compact {
  flex: 1 1 0;
  max-height: none;
  min-height: 0;
}

.outline-knowledge-selected-pane > .outline-knowledge-empty.compact {
  margin: 8px;
  min-height: calc(100% - 16px);
}

.outline-knowledge-folder.compact {
  display: grid;
  gap: 4px;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.8);
  border-radius: 10px;
  overflow: visible;
}

.outline-knowledge-folder-head.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
}

.outline-knowledge-folder-head.compact > button {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 0;
  color: var(--yb-text);
  text-align: left;
  background: transparent;
  border: 0;
  transition: color var(--yb-duration-fast) ease;
}

.outline-knowledge-folder-head.compact > button:hover:not(:disabled) {
  color: var(--yb-primary);
}

.outline-knowledge-folder-head.compact > button:disabled {
  cursor: default;
}

.outline-knowledge-folder-head.compact > button span {
  width: 14px;
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-folder-head.compact strong,
.outline-knowledge-document.compact strong,
.outline-knowledge-selected-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--yb-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-knowledge-folder-head.compact small,
.outline-knowledge-document.compact small {
  color: var(--yb-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.outline-knowledge-folder-actions {
  display: flex;
  gap: 4px;
}

.outline-knowledge-document-list.compact {
  display: grid;
  gap: 1px;
  padding: 0 6px 6px;
}

.outline-knowledge-document.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 7px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.outline-knowledge-document.compact:hover {
  background: rgba(33, 116, 253, 0.06);
}

.outline-knowledge-document.compact input {
  margin: 0;
}

.outline-knowledge-document.compact.is-selected {
  background: rgba(33, 116, 253, 0.1);
}

.outline-knowledge-selected-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid rgba(228, 233, 240, 0.8);
  border-radius: 10px;
}

.outline-knowledge-empty.compact {
  padding: 14px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.outline-generation-workspace {
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 340px;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.outline-progress-panel,
.outline-tree-panel,
.outline-detail-panel {
  min-width: 0;
  min-height: 0;
}

.outline-progress-panel,
.outline-detail-panel {
  display: grid;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.86), #ffffff);
}

.outline-progress-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.outline-detail-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.outline-detail-panel .analysis-result-head > div:first-child {
  display: grid;
  gap: 4px;
}

.outline-progress-panel {
  border-right: 1px solid var(--yb-border-soft);
}

.outline-detail-panel {
  border-left: 1px solid var(--yb-border-soft);
}

.outline-progress-log {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
  scroll-padding-top: 18px;
  scrollbar-gutter: stable;
}

.outline-progress-log p {
  margin: 0;
  padding: 12px 14px;
  color: var(--yb-text-soft);
  line-height: 1.65;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
}

.outline-progress-log p.is-latest {
  color: var(--yb-text);
  border-color: rgba(33, 116, 253, 0.2);
  box-shadow: 0 10px 26px rgba(33, 116, 253, 0.08);
}

.outline-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outline-progress-meta span {
  padding: 5px 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.05);
  border: 1px solid rgba(228, 233, 240, 0.72);
  border-radius: 999px;
}

.outline-tree-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.outline-tree-head > div:first-child {
  display: grid;
  gap: 4px;
}

.outline-tree-tools {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.outline-tree-tools button {
  padding: 7px 10px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 999px;
}

.outline-tree-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.outline-tree-tools .outline-add-root-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.16);
}

.outline-tree-tools .outline-save-sort-action {
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #2174fd);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}

.outline-tree-list {
  overflow: auto;
  padding: 10px 12px 12px;
}

.outline-tree-list.is-sorting {
  user-select: none;
}

.outline-tree-node {
  margin-left: calc(var(--outline-level) * 12px);
}

.outline-tree-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  margin-bottom: 3px;
  padding: 3px 5px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.outline-tree-item.is-sorting {
  grid-template-columns: 20px 26px minmax(0, 1fr);
  cursor: grab;
}

.outline-tree-item.is-dragging {
  opacity: 0.42;
}

.outline-tree-item.is-drop-before::before,
.outline-tree-item.is-drop-after::after {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 1;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--yb-primary), var(--yb-violet));
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(33, 116, 253, 0.12);
}

.outline-tree-item.is-drop-before::before {
  top: -5px;
}

.outline-tree-item.is-drop-after::after {
  bottom: -5px;
}

.outline-tree-item.is-drop-invalid {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
}

.outline-tree-drag-handle {
  display: inline-flex;
  width: 20px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: #7a8798;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.18em;
}

.outline-tree-item:hover,
.outline-tree-item.is-active {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.16);
  box-shadow: 0 6px 16px rgba(23, 32, 51, 0.04);
}

.outline-tree-toggle {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.outline-tree-toggle.is-expanded {
  transform: rotate(90deg);
}

.outline-tree-toggle.is-leaf {
  color: #9aa6b8;
  background: rgba(154, 166, 184, 0.1);
  border-color: transparent;
}

.outline-tree-toggle:disabled {
  cursor: default;
}

.outline-tree-toggle:not(:disabled):hover,
.outline-tree-toggle:focus-visible {
  background: rgba(33, 116, 253, 0.16);
  outline: none;
}

.outline-tree-content {
  display: grid;
  min-width: 0;
  align-items: center;
  padding: 2px 3px 2px 0;
  text-align: left;
  background: transparent;
  border: 0;
  transition: background var(--yb-duration-fast) ease, border-color var(--yb-duration-fast) ease, box-shadow var(--yb-duration-fast) ease, color var(--yb-duration-fast) ease, transform var(--yb-duration-fast) ease;
}

.outline-tree-content:focus-visible {
  outline: none;
}

.outline-tree-content strong {
  min-width: 0;
  overflow: hidden;
  color: var(--yb-text);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  padding: 22px;
}

.outline-detail-body h3 {
  margin: 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.outline-detail-body p,
.outline-detail-body small {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.75;
}

.outline-detail-body label {
  display: grid;
  gap: 8px;
}

.outline-detail-body label span {
  color: var(--yb-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.outline-detail-body input,
.outline-detail-body textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
  outline: none;
}

.outline-detail-body input:disabled,
.outline-detail-body textarea:disabled {
  color: #7a8798;
  background: #f3f6fb;
  cursor: not-allowed;
}

.outline-detail-body textarea {
  min-height: 160px;
  resize: vertical;
}

.outline-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.outline-detail-lock {
  padding: 12px 14px;
  color: #6b5d14;
  line-height: 1.65;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 14px;
}

.outline-empty-state {
  min-height: 360px;
}

.outline-empty-state .secondary-action {
  margin-top: 18px;
}

/* [6284-6299] keyframes ai-pulse + compact-placeholder (TechnicalPlanHome空态) */
@keyframes ai-pulse {
  0%, 100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 5px rgba(33, 116, 253, 0.1);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 9px rgba(33, 116, 253, 0.04);
  }
}

.compact-placeholder {
  position: relative;
  min-height: 360px;
}

/* [6301-6332] feature-under-development-overlay */
.feature-under-development-overlay {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 30;
  display: grid;
  width: min(620px, calc(100% - 48px));
  gap: 8px;
  padding: 22px 28px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #6b7280 0%, #4b5563 48%, #374151 100%);
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(55, 65, 81, 0.24), 0 8px 24px rgba(23, 32, 51, 0.08);
  transform: translateX(-50%);
  pointer-events: none;
}

.feature-under-development-overlay strong {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.feature-under-development-overlay span {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
}

