:root {
  --nav: #162033;
  --nav-hover: #23304a;
  --brand: #246bfe;
  --brand-soft: #edf3ff;
  --brand-border: #cddcff;
  --text: #182230;
  --muted: #697586;
  --line: #e5e9f0;
  --line-strong: #d5dbe5;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --success: #16825d;
  --success-soft: #eaf8f2;
  --warning: #b4690e;
  --warning-soft: #fff7e6;
  --danger: #cf3d3d;
  --danger-soft: #fff0f0;
  --shadow: 0 8.0px 24.0px rgba(20, 34, 56, 0.09);
  --radius: 8.0px;
  --sidebar: 220.0px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
}

* { box-sizing: border-box; }
/* Dimensions are defined at the prototype's final display scale; no outer zoom is applied. */
body { margin: 0; min-width: 944.0px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.tree-toggle { width: 14px; height: 18px; display: inline-flex; align-items: center; justify-content: center; margin: 0 3px 0 0; padding: 0; border: 0; border-radius: 3px; color: #7b8797; background: transparent; vertical-align: middle; }
.tree-toggle::before { content: ""; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid currentColor; transform: translateX(1px); }
.tree-toggle.is-open::before { border-top: 5px solid currentColor; border-right: 4px solid transparent; border-bottom: 0; border-left: 4px solid transparent; transform: translateY(1px); }
.tree-toggle:hover { color: #566274; background: #f0f2f5; }
.tree-indent { display: inline-flex; align-items: center; min-height: 22.4px; }
.topic-drag { width: 12px; margin-right: 2px; color: #98a2b3; font-size: 12px; cursor: grab; user-select: none; }
.topic-drag:active { cursor: grabbing; }
.tree-leaf-spacer { width: 17px; flex: 0 0 17px; }
.tree-indent.level-1 { margin-left: 16.0px; }
.tree-indent.level-2 { margin-left: 41.6px; }
.tree-indent.level-3 { margin-left: 67.2px; }
.tree-indent.level-4 { margin-left: 92.8px; }
.tree-indent.level-5 { margin-left: 118.4px; }
.topic-root-row td { background: #f7f9fc; }
.topic-root-row .tree-indent { min-height: 38px; font-size: 13px; }
.topic-root-row .tree-indent strong { font-size: 13px; font-weight: 650; }
.topic-root-row .tree-toggle { font-size: 16px; }
.topic-root-row .tag { margin-left: 8px; font-size: 11px; }
.topic-line-group { margin-top: 18px; }
.topic-line-title { margin: 0 0 10px; color: var(--text); font-size: 16px; font-weight: 650; }
.topic-tree-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.topic-tree-table th, .topic-tree-table td { border-bottom: 1px solid var(--line); }
.topic-tree-table tr:last-child td { border-bottom: 0; }
.topic-row td { height: 34px; }
.topic-row.level-row-1 .cell-name { font-size: 12px; font-weight: 600; }
.topic-row.level-row-2 .cell-name { font-size: 12px; font-weight: 450; }
.topic-row.level-row-3 .cell-name { font-size: 12px; color: #4d5969; }
.topic-row.level-row-4 .cell-name { font-size: 11px; color: #697586; }
.topic-code { display: inline-block; min-width: 0; margin-right: 6px; color: #8a96a6; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.topic-root-code { display: inline-block; min-width: 48px; margin-right: 2px; color: #344054; font-size: 12px; font-variant-numeric: tabular-nums; }
.tree-view-actions { display: inline-flex; gap: 8px; margin-left: 12px; vertical-align: middle; }
.tree-view-actions .btn { padding: 3px 10px; font-weight: 400; }
.topic-parent-picker { position: relative; }
.topic-parent-picker > .topic-parent-caret { position: absolute; right: 8px; top: 6px; pointer-events: none; }
.topic-parent-input { width: 100%; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text); background: #fff; font-size: 12px; text-align: left; }
.topic-parent-input.placeholder { color: #aeb7c4; }
.topic-parent-input:disabled { color: #98a2b3; background: #eef1f5; border-color: #c8d0db; cursor: not-allowed; opacity: 1; }
.topic-parent-input:disabled .topic-parent-caret { color: #98a2b3; }
.topic-parent-caret { color: #7b8797; }
.topic-parent-menu { position: absolute; top: 34px; left: 0; z-index: 8; display: grid; width: max-content; min-width: 0; max-width: min(1040px, calc(100vw - 48px)); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.topic-parent-column { min-height: 180px; max-height: 280px; overflow-y: auto; padding: 6px 0; border-right: 1px solid var(--line); flex: 0 0 auto; }
.topic-parent-column:last-child { border-right: 0; }
.topic-parent-option { display: flex; align-items: center; min-height: 34px; padding-left: 10px; font-size: 12px; }
.topic-parent-option.active { background: var(--brand-soft); }
.topic-parent-option > button:first-child { flex: 1; min-width: 0; overflow: hidden; border: 0; color: var(--text); background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.topic-parent-next { width: 30px; border: 0; color: #8a96a6; background: transparent; font-size: 18px; }
.topic-parent-option:hover { background: #f5f8fc; }
.topic-parent-menu-foot { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; background: #fafbfc; }
.topic-parent-menu-foot > span:first-child { min-width: 0; overflow-wrap: anywhere; text-align: left; white-space: normal; line-height: 1.45; }
.topic-parent-menu-foot .btn { font-size: 12px; font-weight: 400; }
.topic-picker-search { grid-column: 1 / -1; padding: 8px 10px 2px; border-bottom: 1px solid var(--line); background: #fff; }
.topic-picker-search .input { width: 100%; box-sizing: border-box; }
.topic-picker-columns { display: contents; }
.topic-picker-search-results { grid-column: 1 / -1; display: none; max-height: 220px; overflow-y: auto; padding: 6px 10px; }
.topic-picker-search-results[hidden] { display: none; }
.topic-search-result { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font-size: 12px; cursor: pointer; }
.topic-search-result:hover { background: #edf3fb; color: #2f6cf6; }
.topic-search-empty { display: block; padding: 8px; color: #98a2b3; font-size: 12px; }
.topic-parent-menu-actions { display: inline-flex; justify-self: end; gap: 8px; }
.selected-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-bottom: 10px; }
.selected-tags .tag { display: inline-flex; align-items: center; gap: 4px; }
.topic-calc-select-all { accent-color: #7b8798; }
.topic-calc-select-all:indeterminate { accent-color: #7b8798; }
.topic-calc-select-all.is-indeterminate { appearance: none; width: 13px; height: 13px; border: 1px solid #7b8798; border-radius: 3px; background: #fff; position: relative; vertical-align: middle; }
.topic-calc-select-all.is-indeterminate::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px; border-radius: 1px; background: #7b8798; }
.tag-remove { padding: 0; border: 0; color: currentColor; background: transparent; line-height: 1; }
.matrix-drag-hint { display: inline-block; margin-left: 6px; color: #98a2b3; font-size: 11px; cursor: grab; user-select: none; }
.matrix-row-drag { display: inline-block; margin-right: 6px; color: #98a2b3; font-size: 12px; cursor: grab; user-select: none; }
.matrix-row-drag-ghost { position: fixed; left: -10000px; top: -10000px; display: grid; grid-template-columns: 120px 200px; gap: 0; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(20,35,60,.16); color: #344054; font-size: 12px; white-space: nowrap; }
.matrix-row-drag-ghost span { min-height: 28px; display: flex; align-items: center; padding: 0 8px; border: 1px solid #e2e8f0; }
.matrix-row-drag-ghost span + span { border-left: 0; }
.matrix thead th[draggable], .matrix tbody tr[draggable] { cursor: grab; }
.matrix-add-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.topic-row .cell-name { cursor: pointer; }
.topic-search-hit { padding: 0 1px; border-radius: 2px; background: #ffe58f; color: #7a4b00; font-weight: 650; }
.topic-row .topic-drag { cursor: grab; }

.app-shell { min-height: 100vh; }
.topbar {
  position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 30;
  display: flex; align-items: center; gap: 0;
  padding: 0; color: #fff; background: #071827;
  box-shadow: 0 1.0px 0 rgba(255,255,255,.06);
}
.brand { width: var(--sidebar); min-width: var(--sidebar); height: 100%; display: flex; align-items: center; justify-content: center; padding: 0; font-weight: 650; letter-spacing: .16px; text-align: center; }
.brand-mark { width: 30.4px; height: 30.4px; flex: 0 0 auto; border-radius: 7.2px; display: grid; place-items: center; color: #fff; background: #246bfe; font-weight: 800; }
.brand-copy { display: flex; flex-direction: column; align-items: center; gap: 3.2px; }
.brand-name { white-space: nowrap; font-size: 18px; }
.brand-sub { color: #91a0b2; font-size: 12px; font-weight: 400; white-space: nowrap; }
.global-nav { height: 100%; display: flex; align-items: stretch; gap: 0; flex: 1; }
.global-nav-item { display: inline-flex; align-items: center; padding: 0 20px; color: #c8d1dc; font-size: 12px; white-space: nowrap; }
.global-nav-item.active { color: #fff; background: #246bfe; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 14.4px; font-size: 12px; color: #cbd3df; }
.dataset-switcher { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border: 1px solid #3d4d66; border-radius: 6px; background: #101f34; white-space: nowrap; }
.dataset-option { height: 24px; padding: 0 8px; border: 0; border-radius: 4px; color: #aebbd0; background: transparent; font-size: 11px; }
.dataset-option:hover { color: #fff; background: #233552; }
.dataset-option.active { color: #fff; background: #246bfe; font-weight: 600; }
.env-chip { border: 1.0px solid #41506b; padding: 2.4px 6.4px; border-radius: 799.2px; }
.avatar { width: 24.0px; height: 24.0px; border-radius: 50%; display: grid; place-items: center; background: #3a4964; color: white; }

.sidebar {
  position: fixed; top: 60px; bottom: 0; left: 0; width: var(--sidebar); z-index: 20;
  padding: 8.0px 0; color: #cbd4e2; background: #071827;
}
.side-static { display: flex; align-items: center; min-height: 43px; padding: 0 20px; color: rgba(255,255,255,.85); font-size: 12px; }
.side-static:hover { background: rgba(255,255,255,.04); }
.erp-icon { position: relative; width: 12.8px; height: 12.8px; margin-right: 14.4px; border: 1px solid #b7c3d0; border-radius: 1.6px; opacity: .9; }
.erp-icon.shop::before, .erp-icon.shop::after, .erp-icon.tool::before, .erp-icon.tool::after { content: none; }
.erp-icon.folder { border-radius: 2px; }
.erp-icon.tool { transform: none; }
.side-chevron { width: 7.2px; height: 7.2px; flex: 0 0 7.2px; margin-left: auto; border-right: 1.6px solid #e7edf3; border-bottom: 1.6px solid #e7edf3; transform: rotate(45deg) translateY(-1.6px); transform-origin: center; }
.side-chevron.up { transform: rotate(225deg) translateY(-1.6px); }
.side-library-row { width: 100%; display: flex; align-items: center; min-height: 43px; padding: 0 20px; border: 0; color: #fff; background: rgba(0,0,0,.12); font: inherit; font-size: 12px; font-weight: 400; text-align: left; }
.side-library-items { padding: 0 8.0px; }
.side-item {
  width: 100%; display: flex; align-items: center; min-height: 40.0px; padding: 0 19.2px 0 48.0px; white-space: nowrap;
  margin-bottom: 4.0px; border: 0; border-radius: 6.4px; color: inherit; background: transparent; font-size: 12px; text-align: left;
}
.side-item:hover { background: var(--nav-hover); color: #fff; }
.side-item.active { color: #fff; background: #2a61d8; font-weight: 600; border-radius: 7.2px; }
.side-icon { display: none; }
.side-foot { position: absolute; left: 11.2px; right: 11.2px; bottom: 14.4px; padding: 9.6px; border: 1.0px solid #2d3a50; border-radius: 7.2px; font-size: 12px; line-height: 1.55; color: #8f9bb0; }

.main { margin-left: var(--sidebar); padding-top: 60px; min-height: 100vh; }
.page-head { position: sticky; top: 60px; z-index: 12; background: var(--surface); border-bottom: 1.0px solid var(--line); padding: 14.4px 19.2px 9.6px; }
.breadcrumb { font-size: 11px; color: #7c8798; margin-bottom: 9.6px; }
.breadcrumb-link { border: 0; padding: 0; color: #5f6f84; background: transparent; font-size: inherit; }
.breadcrumb-link:hover { color: var(--brand); text-decoration: underline; }
.detail-back { display: inline-flex; align-items: center; height: 27.2px; margin: 10px 0 11.2px; padding: 0 10.4px; border: 1.0px solid var(--line-strong); border-radius: 5.6px; color: #344054; background: #fff; font-size: 12px; }
.detail-back:hover { border-color: #aab4c4; background: #fafbfc; color: var(--brand); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12.8px; }
.page-title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 650; }
.calc-page-title { font-size: 14px; }
.page-note { margin-top: 3.2px; font-size: 12px; color: var(--muted); }
.detail-status-switch { display: inline-flex; align-items: center; gap: 8.0px; padding-bottom: 1.6px; color: #344054; font-size: 12px; font-weight: 600; white-space: nowrap; }
.detail-status-switch .switch { width: 35.2px; height: 19.2px; }
.detail-status-switch .slider::before { width: 16.0px; height: 16.0px; top: 1.6px; left: 1.6px; }
.detail-status-switch .switch input:checked + .slider::before { transform: translateX(16.0px); }
.modal-subtitle { margin-bottom: 6.4px; font-size: 14px; line-height: 1.4; font-weight: 550; color: var(--muted); }
.modal-subtitle { font-size: 12px; font-weight: 400; color: var(--text); }
.product-tabs { display: flex; gap: 19.2px; margin-top: 12.8px; }
.product-tab { border: 0; border-bottom: 1.6px solid transparent; padding: 8.0px 1.6px 4.8px; background: transparent; color: #5b6676; font-size: 13px; }
.product-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.module-tabs { display: flex; gap: 19.2px; margin-top: 12.8px; }
.module-tab { border: 0; border-bottom: 1.6px solid transparent; padding: 8.0px 1.6px 4.8px; background: transparent; color: #5b6676; font-size: 13px; }
.module-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.subtabs { display: flex; gap: 4.8px; margin: 14.4px 19.2px 0; padding: 3.2px; width: fit-content; border-radius: 7.2px; background: #e9edf3; }
.subtab { border: 0; border-radius: 5.6px; padding: 6.4px 14.4px; color: #556174; background: transparent; font-size: 12px; }
.subtab.active { background: #fff; color: var(--text); box-shadow: 0 1.0px 3.2px rgba(30,48,75,.12); font-weight: 600; }
.content { padding: 16.0px 19.2px 70.4px; }
.content.narrow { max-width: 944.0px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 11.2px; margin-bottom: 12.8px; }
.filters { display: flex; align-items: center; gap: 6.4px; flex-wrap: wrap; }
.filter-panel { margin-bottom: 12.8px; padding: 12.8px 16.0px; border: 1.0px solid var(--line); border-radius: 6.4px; background: #fff; }
.filter-item { display: flex; align-items: center; gap: 8.0px; flex-wrap: wrap; }
.filter-item .form-label { margin: 0; white-space: nowrap; }
.filter-item .form-label::after { content: "："; }
.filters > .form-label::after { content: "："; }
.filter-panel .filter-item { column-gap: 16.0px; row-gap: 14.4px; }
.filter-panel .filter-item .form-label { margin-right: -16.0px; }
.toolbar .filters { column-gap: 16.0px; row-gap: 14.4px; }
.toolbar .filters > .form-label { margin-right: -16.0px; }
.product-line-filter.placeholder { color: #aeb7c4; }
.filter-panel .input::placeholder, .toolbar .input::placeholder { color: #aeb7c4; opacity: 1; }
.filter-panel .select:has(option:checked[value=""]), .toolbar .select:has(option:checked[value=""]) { color: #aeb7c4; }
.filter-panel .input, .filter-panel .select, .toolbar .input, .toolbar .select { font-size: 12px; }
.filter-actions { display: flex; gap: 6.4px; margin-left: 3.2px; }
.filter-actions .btn { height: 24.0px; font-size: 12px; }
.calc-list-page .filter-panel .filter-item { row-gap: 12px; }
.calc-list-page .filter-panel .filter-item { display: grid; grid-template-columns: 72px 220px 72px 360px minmax(96px, auto); column-gap: 0; align-items: center; }
.calc-list-page .filter-panel .filter-item > .form-label { margin-right: 0; justify-self: end; }
.calc-list-page .filter-panel .filter-actions { margin-left: 0; }
.calc-list-page .filter-panel .filter-item > :nth-child(1) { grid-column: 1; grid-row: 1; }
.calc-list-page .filter-panel .filter-item > :nth-child(2) { grid-column: 2; grid-row: 1; }
.calc-list-page .filter-panel .filter-item > :nth-child(3) { grid-column: 3 / span 2; grid-row: 1; width: 432px; margin-left: 0; transform: translateX(30px); }
.calc-list-page .filter-panel .filter-item > :nth-child(4) { grid-column: 1; grid-row: 2; }
.calc-list-page .filter-panel .filter-item > :nth-child(5) { grid-column: 2; grid-row: 2; width: 220px; }
.calc-list-page .filter-panel .filter-item > :nth-child(6) { grid-column: 3; grid-row: 2; }
.calc-list-page .filter-panel .filter-item > :nth-child(6) { margin-left: 30px; transform: translateX(30px); }
.calc-list-page .filter-panel .filter-item > :nth-child(7) { grid-column: 4; grid-row: 2; width: 360px; }
.calc-list-page .filter-panel .filter-item > :nth-child(7) { transform: translateX(30px); }
.calc-list-page .filter-panel .filter-item > :nth-child(8) { grid-column: 5; grid-row: 2; }
.calc-list-page .filter-panel .filter-item > :nth-child(8) { margin-left: 30px; transform: translateX(30px); }
.calc-list-page #calc-search { width: 100%; box-sizing: border-box; }
.calc-list-page .search-combo { width: 432px; }
.calc-list-page .search-combo-input,
.calc-selector-modal .search-combo-input { flex: 1; width: auto; }
.calc-list-page .search-combo-select,
.calc-selector-modal .search-combo-select { flex-basis: 96px; width: 96px; }
.calc-list-page #calc-category-filter { width: 220px; box-sizing: border-box; }
.calc-list-page .filter-domain-picker,
.calc-list-page .filter-domain-control { width: 360px; box-sizing: border-box; }
.calc-list-page .filter-domain-picker::after { display: none; }
.calc-list-page .filter-domain-control { position: relative; padding-right: 28px; }
.calc-list-page .filter-domain-control::after { content: ""; position: absolute; right: 10px; top: 9px; width: 7px; height: 7px; border-right: 1.5px solid #9aa4b2; border-bottom: 1.5px solid #9aa4b2; transform: rotate(45deg); pointer-events: none; }
.calc-list-page #calc-status-filter { width: 140px; }
.calc-list-page .filter-actions .btn { height: 27.2px; padding: 0 10.4px; font-size: 12px; white-space: nowrap; }
.filter-category-control input { flex: 1 1 auto; min-width: 0; width: auto; border: 0; outline: 0; padding: 0; font-size: 12px; color: var(--text); background: transparent; }
.input, .select, .textarea {
  border: 1.0px solid var(--line-strong); border-radius: 5.6px; background: #fff; color: var(--text); outline: none;
}
.input, .select { height: 28px; padding: 0 8.0px; }
.content .input, .content .select, .content .textarea { font-size: 12px; }
.content .coefficient-input { font-size: 11px; }
.content .input::placeholder, .content .textarea::placeholder, .content .category-picker-control input::placeholder { color: #aeb7c4; opacity: 1; }
.content .select:has(option:checked[value=""]) { color: #aeb7c4; }
.content .input, .content .select, .content .textarea { color: var(--text); }
input::placeholder, textarea::placeholder { color: #aeb7c4; opacity: 1; }
input, select, textarea { color: var(--text); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1.6px rgba(36,107,254,.1); }
.modal .tier-minimum:read-only, .modal .tier-maximum:read-only { color: #98a2b3; background: #eef1f5; border-color: #c8d0db; cursor: not-allowed; opacity: 1; }
.textarea { width: 100%; min-height: 68.8px; padding: 7.2px 8.0px; resize: vertical; line-height: 1.6; }
.search { width: 176.0px; }
.btn { height: 27.2px; border: 1.0px solid var(--line-strong); border-radius: 5.6px; padding: 0 10.4px; background: #fff; color: #344054; font-size: 12px; }
.btn:hover { border-color: #aab4c4; background: #fafbfc; }
.btn.primary { color: #fff; border-color: var(--brand); background: var(--brand); }
.btn.primary:hover { background: #175ae2; }
.btn.danger { color: var(--danger); border-color: #f0baba; background: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); padding: 0 6.4px; }
.btn.small { height: 22.4px; padding: 0 7.2px; font-size: 12px; }
.btn.icon { width: 27.2px; padding: 0; }
.action-link { border: 0; padding: 1.6px 4.0px; color: var(--brand); background: transparent; font-size: 11px; }
.search-combo { display: flex; width: 100%; }
.search-combo-select { flex: 0 0 96px; height: 27.2px; border: 1.0px solid var(--line-strong); border-right: 0; border-radius: 5.6px 0 0 5.6px; padding: 0 8px; background: #fff; color: #344054; font-size: 12px; text-align: right; }
.search-combo-input { flex: 0 0 250px; width: 250px; min-width: 0; border-radius: 0 5.6px 5.6px 0 !important; }
.search-combo-select { flex-basis: 80px; width: 80px; }
.factor-preview-link { cursor: pointer; font-weight: 650; }
.factor-preview-link:hover, .factor-preview-link:focus-visible { color: #175ae2; text-decoration: underline; outline: none; }
.muted-action { color: var(--muted); font-size: 11px; padding: 1.6px 4.0px; }
.factor-edit { padding: 0; font-size: 11px; }
.factor-title-group { display: flex; align-items: center; gap: 16px; min-width: 0; }
.action-link.danger { color: var(--danger); }

.card { border: 1.0px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1.0px 1.6px rgba(22,34,51,.02); }
.card + .card { margin-top: 12.8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; min-height: 40.0px; padding: 0 12.8px; border-bottom: 1.0px solid var(--line); }
.card-title { font-size: 12px; font-weight: 650; }
.pricing-dimension-grid .btn.small { font-size: 11px; }
.card-title > span { display: inline-flex; align-items: center; gap: 6.4px; margin-right: 16.0px; }
.card-desc { margin-left: 7.2px; font-size: 12px; color: var(--muted); font-weight: 400; }
.card-body { padding: 14.4px 12.8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9.6px; }
.metric { border: 1.0px solid var(--line); border-radius: 7.2px; padding: 12.0px; background: linear-gradient(160deg,#fff,#fafcff); }
.metric-label { font-size: 12px; color: var(--muted); }
.metric-value { margin-top: 6.4px; font-size: 18px; font-weight: 700; }
.metric-tip { margin-top: 4.0px; font-size: 10px; color: #94a0b2; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12.8px 19.2px; }
.basic-info-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.basic-info-grid > .form-item { grid-column: span 2; }
.basic-info-grid > .form-item.half-field { grid-column: span 3; }
.basic-info-grid > .form-item.span-2 { grid-column: 1 / -1; }
.basic-info-grid > .form-item > .input, .basic-info-grid > .form-item > .select, .basic-info-grid > .form-item > .readonly { width: 100%; }
.basic-info-grid > .form-item > .readonly { font-size: 12px; }
.tag-input { display: flex; flex-direction: column; gap: 6.4px; }
.category-picker { position: relative; z-index: 5; }
.category-picker-control { min-height: 28px; height: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 4.8px; padding: 0 6.4px; border: 1.0px solid var(--line); border-radius: 5.6px; background: #fff; }
.category-picker-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1.6px rgba(47,108,246,.12); }
.category-picker-control { border-color: var(--line-strong); }
.category-picker-control input { flex: 1; min-width: 112.0px; border: 0; outline: 0; padding: 0 1.6px; font-size: 12px; }
.category-picker::after { content: ""; position: absolute; right: 12px; top: 10px; width: 8px; height: 8px; border-right: 1.5px solid #9aa4b2; border-bottom: 1.5px solid #9aa4b2; transform: rotate(45deg); pointer-events: none; }
.category-options { display: none; position: absolute; top: calc(100% + 4.8px); left: 0; right: 0; z-index: 20; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; padding: 6.4px; border: 1.0px solid var(--line); border-radius: 5.6px; background: #fff; box-shadow: 0 6.4px 14.4px rgba(20,35,60,.12); }
.category-picker:focus-within .category-options { display: flex; }
.category-option { width: 100%; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font-size: 12px; cursor: pointer; }
.category-option:hover, .category-option.selected { background: #edf3fb; color: #2f6cf6; }
.group-row th { background: #f5f7fa; color: #5b6573; font-size: 12px; font-weight: 650; text-align: left; padding: 8px 12px; }
.group-count { color: #8b95a3; font-weight: 400; margin-left: 4px; }
.domain-tag { color: #526273; background: #eef1f4; }
.category-select-row { display: flex; align-items: center; gap: 6px; }
.category-select-row .input { width: 110px; }
.domain-filter { min-width: 150px; min-height: 28px; height: 28px; }
.domain-filter option:checked { background: #e8f0f8 linear-gradient(0deg, #e8f0f8 0%, #e8f0f8 100%); color: #304b6d; }
.filter-domain-picker { position: relative; width: 320px; max-width: 320px; flex: 0 0 320px; z-index: 8; }
.filter-domain-picker::after, .filter-category-picker::after { content: ""; position: absolute; right: 10px; top: 9px; width: 7px; height: 7px; border-right: 1.5px solid #9aa4b2; border-bottom: 1.5px solid #9aa4b2; transform: rotate(45deg); pointer-events: none; }
.filter-domain-picker:has(.filter-domain-control.has-value)::after, .filter-category-picker:has(.filter-category-control.has-value)::after { display: none; }
.filter-domain-control { min-height: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 4.8px; padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 5.6px; background: #fff; box-sizing: border-box; }
.filter-domain-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1.6px rgba(47,108,246,.12); }
.filter-domain-control.has-value { padding-right: 28px; }
.filter-domain-control input { flex: 1 1 72px; min-width: 72px; border: 0; outline: 0; padding: 0; font-size: 12px; }
.filter-domain-options { display: none; position: absolute; top: calc(100% + 5px); left: 0; right: 0; max-height: 180px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 5.6px; background: #fff; box-shadow: 0 6px 14px rgba(20,35,60,.12); }
.calc-selector-modal .filter-domain-options:not(.is-closed) { display: flex; flex-direction: column; gap: 2px; }
.filter-domain-picker:focus-within .filter-domain-options { display: flex; flex-direction: column; gap: 2px; }
.filter-domain-option { padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font-size: 12px; cursor: pointer; }
.filter-domain-option:hover, .filter-domain-option.selected { background: #edf3fb; color: #2f6cf6; }
.filter-category-picker { position: relative; width: 220px; flex: 0 0 220px; z-index: 8; }
.filter-category-control { min-height: 28px; display: flex; align-items: center; flex-wrap: nowrap; gap: 4.8px; padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 5.6px; background: #fff; }
.filter-category-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1.6px rgba(47,108,246,.12); }
.filter-category-control.has-value { padding-right: 28px; }
.filter-category-control.editing input { color: #aeb7c4; }
.filter-category-control input { flex: 1 1 auto; min-width: 0; width: auto; border: 0; outline: 0; padding: 0; font-size: 12px; color: var(--text); background: transparent; }
.filter-category-clear { display: none; }
.filter-category-control.has-value .filter-category-clear, .filter-category-control:hover .filter-category-clear, .filter-category-control:focus-within .filter-category-clear { opacity: 1; }
.filter-category-options { display: none; position: absolute; top: calc(100% + 5px); left: 0; right: 0; max-height: 180px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 5.6px; background: #fff; box-shadow: 0 6px 14px rgba(20,35,60,.12); }
.filter-category-options.is-closed { display: none !important; }
.filter-category-picker:focus-within .filter-category-options { display: flex; flex-direction: column; gap: 2px; }
.filter-category-option { padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font-size: 12px; cursor: pointer; }
.filter-category-option:hover, .filter-category-option.selected { background: #edf3fb; color: #2f6cf6; }
.filter-category-option.selected::before { content: "✓"; display: inline-block; width: 16px; margin-right: 2px; color: #2f6cf6; }
.category-option { width: 100%; border: 0; border-radius: 4px; padding: 8px 10px; color: var(--text); background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.category-option:hover, .category-option.selected { color: var(--brand); border-color: transparent; background: #edf3fb; }
.pricing-dimension-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11.2px; }
.pricing-dimension-grid.two-two-one { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pricing-dimension-grid.two-two-one { align-items: stretch; }
.pricing-dimension-grid .card + .card { margin-top: 0; }
.pricing-dimension-grid.two-two-one .nested-card { height: 100%; box-sizing: border-box; }
.pricing-dimension-grid .quantity-card .card-body { min-height: 120.0px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.pricing-dimension-grid .quantity-card .page-note,
.pricing-dimension-grid .quantity-card .help { width: min(100%, 432.0px); margin-left: auto; margin-right: auto; }
.pricing-dimension-grid .method-card .card-body { min-height: 76.0px; display: flex; align-items: center; justify-content: center; }
.pricing-dimension-grid .method-card .help { margin-top: 0; }
.price-settings-body { padding-top: 12.8px; }
.price-section-title { margin: 3.2px 0 9.6px; font-size: 14px; font-weight: 650; color: #243044; }
.price-settings-body > .card + .price-section-title { margin-top: 19.2px; }
.coefficient-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14.4px; margin-top: 14.4px; align-items: stretch; }
.coefficient-grid .card { min-width: 0; }
.coefficient-grid .card + .card { margin-top: 0; }
.method-dimension + .method-dimension { margin-top: 14.4px; }
.method-dimension-title { margin-bottom: 6.4px; font-weight: 600; color: #475467; }
@media (max-width: 880.0px) { .coefficient-grid { grid-template-columns: 1fr; } }
.pricing-dimension-grid.two-two-one .nested-card:nth-child(5) { grid-column: span 2; }
.pricing-dimension-grid .nested-card:nth-child(4) { grid-column: span 1; }
.pricing-dimension-grid .nested-card:nth-child(5) { grid-column: span 2; }
@media (max-width: 1160.0px) {
  .calc-list-page .filter-panel .filter-item { display: flex; }
  .pricing-dimension-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-dimension-grid .nested-card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 720.0px) {
  .calc-list-page #calc-search,
  .calc-list-page #calc-category-filter,
  .calc-list-page .filter-domain-picker,
  .calc-list-page .filter-domain-control { width: 100%; max-width: 100%; }
  .calc-list-page .filter-panel .filter-item { grid-template-columns: 72px minmax(0,1fr); }
  .calc-list-page .filter-panel .filter-actions { grid-column: 2; }
  .pricing-dimension-grid { grid-template-columns: 1fr; }
  .pricing-dimension-grid .nested-card:nth-child(4), .pricing-dimension-grid .nested-card:nth-child(5) { grid-column: span 1; }
}
.form-grid.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-item { min-width: 0; }
.form-item.span-2 { grid-column: span 2; }
.form-label { position: relative; display: block; margin-bottom: 6px; font-size: 12px; color: #475467; }
.content .form-label::after { content: "："; }
.content .form-label.required::before { content: "* "; color: var(--danger); }
.help { margin-top: 4.0px; font-size: 11px; line-height: 1.5; color: #98a2b3; }
.readonly { height: 28px; display: flex; align-items: center; padding: 0 8.0px; border: 1.0px solid var(--line); border-radius: 5.6px; color: var(--text); background: #f6f8fa; font-size: 12px; }

/* Research-plan pages use the same list/detail skeleton as the established library pages. */
.plan-filter-panel .filter-item { align-items: center; column-gap: 20px; row-gap: 12px; }
.plan-filter-panel .plan-filter-row { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 352px 342px auto; column-gap: 30px; align-items: center; }
.plan-filter-panel .plan-filter-row:focus-within { z-index: 20; }
.plan-filter-panel .plan-filter-row:has(.topic-parent-menu) { z-index: 100; }
.plan-filter-panel .filter-field-group { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 0; }
.plan-filter-panel .plan-filter-row::after { content: ""; flex: 0 0 100%; height: 0; order: 2; }
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(1),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(2),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(3),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(5),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(6) { order: 1; }
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(4),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(7),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(8),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(9) { order: 3; }
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(10),
.plan-filter-panel .plan-filter-row > .filter-field-group:nth-child(11),
.plan-filter-panel .plan-filter-row > .plan-filter-actions { order: 4; }
.plan-filter-panel .filter-field-group .form-label { flex: 0 0 72px; width: 72px; height: 28px; display: inline-flex; align-items: center; justify-content: flex-end; margin: 0; white-space: nowrap; box-sizing: border-box; }
.plan-filter-panel .input.search { width: 220px; }
.plan-filter-panel .select { width: 142px; }
.plan-filter-panel .plan-product-filter { width: 168px; }
.plan-filter-panel .plan-topic-picker { width: 220px; }
.plan-filter-panel .plan-topic-picker .topic-parent-input { width: 220px; }
.plan-filter-panel .plan-topic-picker .topic-parent-input > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-filter-panel .plan-topic-picker .topic-parent-input:disabled { color: #aeb7c4; background: #f6f8fa; cursor: not-allowed; }
.plan-filter-panel .plan-topic-picker .topic-parent-input { cursor: pointer; pointer-events: auto; }
.plan-filter-panel .plan-topic-picker .topic-parent-menu { z-index: 1000; }
.plan-filter-panel .plan-tag-field { align-items: center; }
.plan-filter-panel .plan-tag-picker { width: 220px; max-width: 220px; flex-basis: 220px; }
.plan-filter-panel .filter-domain-options { z-index: 40; }
.plan-filter-panel .filter-domain-option { display: flex; align-items: center; justify-content: space-between; }
.plan-filter-panel .filter-domain-check { display: none; }
.plan-filter-panel .filter-domain-option.selected .filter-domain-check { display: inline; }
.plan-cycle-inputs { display: inline-flex; align-items: center; gap: 5px; height: 28px; white-space: nowrap; color: #667085; font-size: 12px; }
.plan-cycle-inputs .input { width: 74px; }
.plan-filter-actions { align-self: flex-end; padding-bottom: 0; }
.plan-filter-panel { display: flex; flex-direction: column; gap: 12px; }
.plan-filter-panel .plan-filter-row::after { display: none; }
.plan-filter-panel .plan-filter-row > .filter-field-group,
.plan-filter-panel .plan-filter-row > .plan-filter-actions { order: initial !important; }
.plan-filter-panel .plan-single-field { width: var(--plan-field-width, 156px); }
.plan-filter-panel .plan-single-picker { position: relative; width: 100%; }
.plan-filter-panel .plan-single-control { position: relative; height: 28px; border: 1px solid var(--line-strong); border-radius: 5.6px; background: #fff; }
.plan-filter-panel .plan-single-control::after { content: ""; position: absolute; right: 10px; top: 9px; width: 7px; height: 7px; border-right: 1.5px solid #9aa4b2; border-bottom: 1.5px solid #9aa4b2; transform: rotate(45deg); pointer-events: none; }
.plan-filter-panel .plan-single-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1.6px rgba(47,108,246,.12); }
.plan-filter-panel .plan-single-control input { width: 100%; height: 100%; padding: 0 26px 0 8px; border: 0; outline: 0; border-radius: 5.6px; color: var(--text); background: transparent; font-size: 12px; box-sizing: border-box; }
.plan-filter-panel .plan-single-options { position: absolute; z-index: 45; display: none; top: calc(100% + 5px); left: 0; right: 0; max-height: 208px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 5.6px; background: #fff; box-shadow: 0 6px 14px rgba(20,35,60,.12); }
.plan-filter-panel .plan-single-picker:focus-within .plan-single-options { display: flex; flex-direction: column; gap: 2px; }
.plan-filter-panel .plan-single-option { display: flex; align-items: center; justify-content: space-between; min-height: 28px; padding: 4px 8px; border: 0; border-radius: 4px; color: var(--text); background: transparent; text-align: left; font-size: 12px; cursor: pointer; }
.plan-filter-panel .plan-single-picker-productId .plan-single-options { width: 280px; right: auto; }
.plan-filter-panel .plan-single-picker-productId .plan-single-option { white-space: nowrap; }
.plan-filter-panel .plan-single-option:hover,
.plan-filter-panel .plan-single-option.selected { color: var(--brand); background: #edf3fb; }
.plan-filter-panel .plan-single-empty { padding: 8px; color: #98a2b3; font-size: 12px; text-align: center; }
.searchable-select { position: relative; display: inline-block; min-width: 120px; vertical-align: middle; }
.searchable-select > select { display: none; }
.searchable-select-input { width: 100%; box-sizing: border-box; cursor: text; }
.searchable-select-input:disabled { color: #98a2b3; background: #f6f8fa; cursor: not-allowed; }
.searchable-select::after { content: ""; position: absolute; right: 10px; top: 9px; width: 7px; height: 7px; border-right: 1.5px solid #9aa4b2; border-bottom: 1.5px solid #9aa4b2; transform: rotate(45deg); pointer-events: none; }
.searchable-select-options { position: absolute; z-index: 80; display: none; top: calc(100% + 5px); left: 0; right: 0; max-height: 208px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 5.6px; background: #fff; box-shadow: 0 6px 14px rgba(20,35,60,.12); }
.searchable-select-options.is-open { display: flex; flex-direction: column; gap: 2px; }
.searchable-select-option { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font-size: 12px; cursor: pointer; }
.searchable-select-option:hover, .searchable-select-option.selected { background: #edf3fb; color: #2f6cf6; }
.searchable-select-empty { padding: 8px; color: #98a2b3; font-size: 12px; text-align: center; }
.plan-filter-panel .plan-name-field .input { width: 280px; }
.plan-filter-panel .plan-name-field { width: 404px; }
.plan-filter-panel .plan-name-field .search-combo { width: 352px; margin-left: 0; }
.plan-filter-panel .plan-name-field .search-combo-select { flex-basis: 96px; width: 96px; text-align: center; }
.plan-filter-panel .plan-name-field .search-combo-input { flex-basis: 250px; width: 250px; }
.plan-filter-panel .plan-name-field .form-label { flex-basis: 96px; width: 96px; }
.plan-filter-panel .plan-name-field .form-label::after { content: ""; }
.plan-filter-panel > .plan-filter-row:nth-child(2) > .plan-topic-field .form-label,
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(2) .form-label { flex-basis: 96px; width: 96px; }
.plan-filter-panel > .plan-filter-row:nth-child(2) > .plan-topic-field .form-label,
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(2) .form-label { justify-content: flex-end; }
.plan-filter-panel > .plan-filter-row:nth-child(2) > .plan-topic-field { width: 352px; }
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(2) { width: 352px; }
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(1),
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(3) { width: 220px !important; }
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(1) .plan-single-picker,
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(2) .plan-single-picker,
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(3) .plan-single-picker { width: 142px; flex: 0 0 142px; }
.plan-filter-panel > .plan-filter-row:nth-child(1) > .plan-single-field:nth-child(1),
.plan-filter-panel > .plan-filter-row:nth-child(2) > .plan-single-field:nth-child(1) { width: 220px !important; }
.plan-filter-panel > .plan-filter-row:nth-child(1) > .plan-single-field:nth-child(1) .plan-single-picker,
.plan-filter-panel > .plan-filter-row:nth-child(2) > .plan-single-field:nth-child(1) .plan-single-picker { width: 142px; flex: 0 0 142px; }
.plan-filter-panel .plan-topic-field .plan-topic-picker,
.plan-filter-panel .plan-topic-field .plan-topic-picker .topic-parent-input { width: 250px; }
.plan-filter-panel > .plan-filter-row:nth-child(3) > .plan-single-field:nth-child(2) .plan-single-picker { width: 250px; flex: 0 0 250px; }
.plan-filter-panel .plan-filter-actions { transform: translateX(-80px); }
.calc-selector-modal .search-combo { width: 432px; max-width: 100%; }
.plan-filter-panel .plan-topic-picker .topic-parent-input { height: 28px; line-height: 28px; }
.plan-filter-panel .plan-tag-picker { width: 264px; max-width: 264px; flex-basis: 264px; }
.plan-list-toolbar { min-height: 28px; }
.plan-list-toolbar .page-note { margin: 0; }
.plan-table-card .card-body { padding: 0; }
.plan-table-card .table-wrap { border: 0; border-radius: var(--radius); }
.plan-table { width: max-content; min-width: 100%; table-layout: auto; }
.plan-table th, .plan-table td { white-space: nowrap; padding-left: 10px; padding-right: 10px; text-align: center; }
.plan-table .plan-sticky-name { position: sticky; left: 0; z-index: 3; width: 260px; min-width: 260px; max-width: 260px; background: #fff; text-align: left; overflow: visible; text-overflow: clip; border-right: 1px solid var(--line); }
.plan-table thead .plan-sticky-name { z-index: 5; background: #f1f4f8; }
.plan-table .plan-sticky-actions { position: sticky; right: 0; z-index: 3; width: 130px; min-width: 130px; max-width: 130px; background: #fff; border-left: 1px solid var(--line); }
.plan-table thead .plan-sticky-actions { z-index: 5; background: #f1f4f8; }
.plan-table .plan-sticky-name { box-shadow: 4px 0 7px -7px rgba(36,48,68,.45); }
.plan-table .plan-sticky-actions { box-shadow: -4px 0 7px -7px rgba(36,48,68,.45); }
.plan-table .plan-sticky-id { position: sticky; left: 0; z-index: 3; width: 130px; min-width: 130px; max-width: 130px; background: #fff; text-align: center; overflow: visible; text-overflow: clip; }
.plan-table thead .plan-sticky-id { z-index: 5; background: #f1f4f8; }
.plan-table .plan-sticky-name { left: 130px; width: 260px; min-width: 260px; max-width: 260px; border-right: 1px solid var(--line); box-shadow: 4px 0 7px -7px rgba(36,48,68,.45); }
.plan-table th:nth-child(3), .plan-table td:nth-child(3) { width: 150px; min-width: 150px; max-width: 150px; text-align: left; }
.plan-table th:nth-child(4), .plan-table td:nth-child(4) { width: 150px; min-width: 150px; max-width: 150px; text-align: left; }
.plan-table th:nth-child(5), .plan-table td:nth-child(5) { width: 150px; min-width: 150px; max-width: 150px; text-align: left; }
.plan-table th:nth-child(2), .plan-table td:nth-child(2) { width: 150px; min-width: 150px; max-width: 150px; text-align: left; }
.plan-table th:nth-child(3), .plan-table td:nth-child(3) { width: 150px; min-width: 150px; max-width: 150px; text-align: left; }
.plan-table th:nth-child(4), .plan-table td:nth-child(4) { width: 150px; min-width: 150px; max-width: 150px; text-align: left; }
.plan-table th:nth-child(5), .plan-table td:nth-child(5) { width: max-content; min-width: 150px; max-width: none; }
.plan-table th:nth-child(6), .plan-table td:nth-child(6) { width: max-content; min-width: 120px; max-width: none; }
.plan-table th:nth-child(7), .plan-table td:nth-child(7) { width: 90px; min-width: 90px; max-width: 90px; }
.plan-table th:nth-child(8), .plan-table td:nth-child(8) { width: 100px; min-width: 100px; max-width: 100px; }
.plan-table th:nth-child(9), .plan-table td:nth-child(9) { width: 110px; min-width: 110px; max-width: 110px; }
.plan-table th:nth-child(10), .plan-table td:nth-child(10) { width: 150px; min-width: 150px; max-width: 150px; }
.plan-table th:nth-child(11), .plan-table td:nth-child(11) { width: 90px; min-width: 90px; max-width: 90px; }
.plan-table th:nth-child(7) { white-space: normal; line-height: 1.2; }
.calc-list-page .table-wrap table th:nth-child(4), .calc-list-page .table-wrap table td:nth-child(4) { width: 300px; min-width: 180px; max-width: 300px; white-space: normal; vertical-align: middle; }
.calc-list-page .table-wrap table td:nth-child(4) .tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 300px; overflow: visible; white-space: normal; }
.calc-list-page .table-wrap table td:nth-child(4) .tag-list .tag { flex: 0 0 auto; white-space: nowrap; }
.plan-row-actions { min-width: 130px; white-space: nowrap; }
.plan-detail-page { padding-bottom: 64px; }
.plan-detail-page .card-head { min-height: 42px; }
.plan-detail-page .card-head { justify-content: flex-start; }
.plan-detail-page .plan-config-hint { margin-left: 20px; font-size: 11px; }
.plan-detail-page .plan-ownership-fields,
.topic-basic-fields,
.calc-basic-info-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-detail-page .plan-ownership-fields > div,
.topic-basic-fields > div,
.calc-basic-info-layout > .form-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin: 0;
}
.plan-detail-page .plan-ownership-fields > div > .form-label,
.topic-basic-fields > div > .form-label,
.calc-basic-info-layout > .form-item > .form-label {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.plan-detail-page .plan-ownership-fields > div > :not(.form-label),
.topic-basic-fields > div > :not(.form-label),
.calc-basic-info-layout > .form-item > :not(.form-label) {
  min-width: 0;
}
.plan-detail-page .plan-ownership-fields .topic-parent-picker,
.topic-basic-fields .topic-parent-picker,
.calc-basic-info-layout .category-picker,
.calc-basic-info-layout > .form-item > .input,
.calc-basic-info-layout > .form-item > .select,
.calc-basic-info-layout > .form-item > .textarea,
.calc-basic-info-layout > .form-item > .readonly { width: 100%; max-width: none; }
.topic-basic-fields > div:has(.textarea),
.calc-basic-info-layout > .form-item:has(.textarea) { align-items: start; }
.topic-basic-fields > div:has(.textarea) .form-label,
.calc-basic-info-layout > .form-item:has(.textarea) .form-label { padding-top: 7px; }
.calc-basic-info-layout > .form-item.half-field,
.calc-basic-info-layout > .form-item.span-2 { grid-column: auto; }
.plan-detail-page .readonly { background: #f8fafc; }
.calc-basic-info-layout > .form-item:has(.help) .help { grid-column: 2; grid-row: 2; margin-top: 4px; }
.plan-detail-page .matrix-wrap { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.plan-detail-page .matrix-wrap .matrix { border: 0; }
.plan-detail-page .card-desc { vertical-align: middle; }
.plan-detail-page .form-grid.cols-3 > div:last-child { display: flex; align-items: end; }
.plan-footer { justify-content: center; }
.plan-info-grid { display: flex; flex-direction: column; gap: 16px; }
.plan-info-grid > .form-item { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; column-gap: 12px; margin: 0; }
.plan-info-grid > .form-item > .form-label { margin: 0; text-align: right; white-space: nowrap; }
.plan-info-grid > .form-item:nth-child(1) { order: 1; }
.plan-info-grid > .form-item:nth-child(2) { order: 2; }
.plan-info-grid > .form-item:nth-child(4) { order: 3; }
.plan-info-grid > .form-item:nth-child(5) { order: 4; }
.plan-info-grid > .form-item:nth-child(6) { order: 5; }
.plan-info-grid > .form-item:nth-child(3) { order: 6; }
.plan-info-grid > .form-item:nth-child(7) { order: 7; }
.plan-info-grid > .form-item:nth-child(8) { order: 8; }
.plan-info-grid > .form-item:nth-child(9) { order: 9; }
.plan-info-grid > .form-item:nth-child(10) { order: 10; }
.plan-info-grid > .form-item:nth-child(11) { order: 11; }
.plan-info-grid > .form-item:nth-child(3) > .form-label { white-space: normal; line-height: 1.3; }
.plan-info-grid > .form-item > .input,
.plan-info-grid .plan-detail-tag-picker,
.plan-info-grid .plan-cycle-input,
.plan-info-grid > .form-item > .textarea { width: 100%; max-width: none; }
.plan-info-grid > .form-item:has(.textarea) { align-items: start; }
.plan-info-grid > .form-item:has(.charge-options),
.plan-info-grid > #manual-price { display: grid; }
.plan-info-grid .plan-enabled-field { align-items: center; }
.plan-info-grid .plan-enabled-field .switch { justify-self: start; }
.plan-info-grid .plan-detail-tag-picker { position: relative; z-index: 1; }
.plan-info-grid .plan-detail-tag-picker:focus-within { z-index: 20; }
.plan-detail-tag-picker .filter-domain-options { z-index: 60; background: #fff; }
.plan-info-grid .detail-tag { margin: 0; }
#manual-price { display: grid !important; grid-template-columns: 150px minmax(0,auto); justify-content: start; align-items: center; column-gap: 12px; }
#manual-price[style*="display:none"],
#manual-price[style*="display: none"] { display: none !important; }
.detail-enable-switch { width: 35.2px; height: 19.2px; }
.detail-enable-switch .slider::before { width: 16px; height: 16px; top: 1.6px; left: 1.6px; }
.detail-enable-switch input:checked + .slider::before { transform: translateX(16px); }
.plan-info-grid .filters > input[type="number"] { font-size: 12px; }
.plan-info-grid .filters { font-size: 12px; }
.plan-price-currency { font-size: 12px !important; line-height: 1; font-weight: 400; vertical-align: middle; }
.plan-cycle-input { display: flex; align-items: center; gap: 8px; max-width: 420px; }
.plan-cycle-input .input { width: 150px; }
.plan-cycle-input > span { font-size: 12px; line-height: 1; }
.plan-matrix-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.plan-config-matrix { min-width: 860px; width: max-content; table-layout: fixed; }
.plan-config-matrix.plan-calc-fit { width: 100%; min-width: 0; }
.plan-config-matrix th, .plan-config-matrix td { padding: 9px 7px; white-space: nowrap; }
.plan-config-matrix th:nth-child(1), .plan-config-matrix td:nth-child(1) { position: sticky; left: 0; z-index: 4; width: 100px; min-width: 100px; max-width: 100px; background: #fff; }
.plan-config-matrix th:nth-child(2), .plan-config-matrix td:nth-child(2) { position: sticky; left: 100px; z-index: 4; width: 200px; min-width: 200px; max-width: 200px; background: #fff; }
.plan-config-matrix th:nth-child(3), .plan-config-matrix td:nth-child(3) { position: sticky; left: 300px; z-index: 4; width: 160px; min-width: 160px; max-width: 160px; background: #fff; border-right: 1px solid var(--line); }
.plan-config-matrix thead th { background: #f7f9fb; z-index: 6; font-size: 11px; font-weight: 600; color: #475467; }
.plan-config-matrix thead th,
.plan-config-matrix thead th:nth-child(1),
.plan-config-matrix thead th:nth-child(2),
.plan-config-matrix thead th:nth-child(3) { background: #f7f9fb !important; color: #596579; font-size: 12px; font-weight: 650; text-align: center; }
.plan-config-matrix th:nth-child(n+4), .plan-config-matrix td:nth-child(n+4) { width: 85px; min-width: 85px; max-width: none; }
.plan-config-matrix.plan-calc-fit th:nth-child(n+4), .plan-config-matrix.plan-calc-fit td:nth-child(n+4) { width: auto; min-width: 85px; }
.plan-config-matrix .plan-col-select, .plan-config-matrix .plan-row-code-select { border: 0; border-radius: 3px; background: transparent; color: #b6beca; cursor: pointer; }
.plan-config-matrix .plan-col-select { padding: 2px 6px; font-size: 12px; font-weight: 400; white-space: nowrap; border-bottom: 0; }
.plan-config-matrix .plan-col-select.is-active { color: var(--brand); font-weight: 650; }
.plan-config-matrix .plan-col-select:hover, .plan-config-matrix .plan-row-code-select:hover { color: var(--brand); background: #f5f8ff; }
.plan-config-matrix .plan-row-code-select { width: 100%; padding: 2px 6px; text-align: left; font-size: 12px; font-weight: 400; border-bottom: 0; }
.plan-config-matrix .plan-row-code-select.is-active { color: var(--brand); font-weight: 650; }
.plan-config-matrix tbody td:nth-child(2), .plan-config-matrix tbody td:nth-child(3) { font-size: 12px; }
.plan-config-matrix .plan-col-select::before,
.plan-config-matrix .plan-row-code-select::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border: 1px solid #b6beca; border-radius: 50%; background: transparent; vertical-align: middle; }
.plan-config-matrix .plan-col-select.is-active::before,
.plan-config-matrix .plan-row-code-select.is-active::before { border-color: var(--brand); background: var(--brand); }
.plan-config-matrix tbody tr:hover td { background: #fff !important; }
.plan-config-matrix tbody tr:hover td.plan-scope-disabled { background: #f7f8fa !important; }
.plan-config-matrix th, .plan-config-matrix td { text-align: center; }
.plan-config-matrix th, .plan-config-matrix td { border-right: 1px solid #eef1f5; }
.plan-config-matrix th:last-child, .plan-config-matrix td:last-child { border-right: 0; }
.plan-config-matrix th:nth-child(1), .plan-config-matrix td:nth-child(1), .plan-config-matrix th:nth-child(2), .plan-config-matrix td:nth-child(2), .plan-config-matrix th:nth-child(3), .plan-config-matrix td:nth-child(3) { text-align: left; }
.plan-scope-disabled { background: #f7f8fa; color: #b6beca; }
.plan-config-matrix tbody tr:not(.plan-scope-active) td { background: #f7f8fa !important; color: #b6beca; }
.plan-cell-empty { display: inline-block; width: 16px; height: 16px; }
.plan-matrix-blocked { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid #d7dde7; border-radius: 4px; background: #fff; color: transparent; font-size: 0; line-height: 1; }
.plan-matrix-blocked.active { width: 16px; height: 16px; border: 0; border-radius: 50%; background: transparent; color: #d64545; font-size: 15px; }
.plan-matrix-blocked.active { cursor: default; }
.plan-matrix-check { border: 1px solid #d7dde7; border-radius: 4px; background: #fff; color: #6f7b8d; width: 15px; height: 15px; line-height: 12px; padding: 0; cursor: pointer; }
.plan-matrix-check.checked { border-color: var(--brand); background: var(--brand); color: #fff; }
.plan-config-empty { display: block; width: max-content; max-width: 100%; margin: 8px auto; padding: 6px 12px; border: 1px solid #f1d39a; border-radius: 6px; background: #fff8e7; color: #9a6700; font-size: 11px; line-height: 1.5; text-align: center; }
.copy-plan-confirm { padding: 12px 4px 4px; color: var(--text); font-size: 13px; line-height: 1.6; }
@media (max-width: 1180px) {
  .plan-filter-panel .filter-item { row-gap: 12px; }
}
@media (max-width: 820px) {
  .plan-filter-panel .filter-field-group { max-width: 100%; }
  .plan-filter-panel .plan-tag-picker { width: min(320px, calc(100vw - 128px)); max-width: min(320px, calc(100vw - 128px)); flex-basis: min(320px, calc(100vw - 128px)); }
}

.table-wrap { overflow: auto; border: 1.0px solid var(--line); border-radius: 7.2px; background: #fff; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.price-matrix { table-layout: fixed; }
.price-matrix th:first-child, .price-matrix td:first-child { width: 28%; }
.price-matrix th:not(:first-child), .price-matrix td:not(:first-child) { width: auto; }
th { height: 40px; padding: 0 9.6px; background: #f1f4f8; color: #596579; font-size: 12px; text-align: left; font-weight: 650; border-bottom: 1.0px solid var(--line); white-space: nowrap; }
td { min-height: 38.4px; padding: 8.8px 9.6px; border-bottom: 1.0px solid #eef1f5; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: inherit; }
.cell-name { font-weight: 400; color: #243044; }
.table-wrap .tag { font-size: 11px; }
.subtext { display: block; margin-top: 3.2px; color: #8a95a6; font-size: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4.0px; min-height: 17.6px; padding: 1.6px 6.4px; border-radius: 799.2px; font-size: 12px; color: #475467; background: #f0f2f5; white-space: nowrap; }
.tag.blue { color: #195bca; background: var(--brand-soft); }
.tag.green { color: var(--success); background: var(--success-soft); }
.tag.orange { color: var(--warning); background: var(--warning-soft); }
.calc-category-blue { color: #3f6594; background: #e8f0f8; }
.calc-category-cyan { color: #317884; background: #e2f2f4; }
.calc-category-teal { color: #31756c; background: #e3f1ed; }
.calc-category-green { color: #58754b; background: #ebf2e5; }
.calc-category-gold { color: #8a6b35; background: #f6efdd; }
.calc-category-orange { color: #966142; background: #f7e9df; }
.calc-category-brown { color: #745d50; background: #f0e9e4; }
.calc-category-purple { color: #725b91; background: #eee9f5; }
.calc-category-violet { color: #5b6598; background: #e7ebf8; }
.calc-category-indigo { color: #4f6691; background: #e6edf7; }
.calc-category-slate { color: #5f7184; background: #edf1f4; }
.category-option.calc-category-blue.selected { color: #3f6594; border-color: #b9cee5; background: #e8f0f8; }
.category-option.calc-category-cyan.selected { color: #317884; border-color: #acd5dc; background: #e2f2f4; }
.category-option.calc-category-teal.selected { color: #31756c; border-color: #b2d8cf; background: #e3f1ed; }
.category-option.calc-category-green.selected { color: #58754b; border-color: #c6d8b8; background: #ebf2e5; }
.category-option.calc-category-gold.selected { color: #8a6b35; border-color: #ddcd9e; background: #f6efdd; }
.category-option.calc-category-orange.selected { color: #966142; border-color: #e4c4ae; background: #f7e9df; }
.category-option.calc-category-brown.selected { color: #745d50; border-color: #d5c4b9; background: #f0e9e4; }
.category-option.calc-category-purple.selected { color: #725b91; border-color: #cdbfdf; background: #eee9f5; }
.category-option.calc-category-violet.selected { color: #5b6598; border-color: #c0c9e5; background: #e7ebf8; }
.category-option.calc-category-indigo.selected { color: #4f6691; border-color: #bac9e2; background: #e6edf7; }
.category-option.calc-category-slate.selected { color: #5f7184; border-color: #c7d1da; background: #edf1f4; }
.category-tag { padding-right: 4.0px; }
.category-remove { display: inline-flex; align-items: center; justify-content: center; width: 12.8px; height: 12.8px; margin-left: 1.0px; padding: 0; border: 0; border-radius: 50%; color: currentColor; background: transparent; font-size: 14px; line-height: 1; cursor: pointer; }
.category-remove:hover { background: rgba(25,91,202,.14); }
.tag.red { color: var(--danger); background: var(--danger-soft); }
.tag.purple { color: #6d49bd; background: #f3edff; }
.pending { color: #8c5a08; border: 1.0px solid #f0d9a7; background: #fff9ec; }

.switch { position: relative; display: inline-block; width: 27.2px; height: 15.2px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 799.2px; background: #bdc5d1; transition: .18s; }
.slider::before { content: ""; position: absolute; width: 12.0px; height: 12.0px; left: 1.6px; top: 1.6px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1.0px 2.4px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(12.0px); }
.switch-line { display: flex; align-items: center; gap: 6.4px; }
.factor-disabled { min-height: 57.6px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.form-inline-default { display: flex; align-items: center; gap: 8.0px; margin-top: 9.6px; }
.form-inline-default .form-label { margin: 0; }
.price-editor { display: inline-flex; align-items: center; gap: 6.4px; min-height: 27.2px; }
.price-editor .price-value { width: 88.0px; }
.price-toggle { white-space: nowrap; }
.manual-price { display: inline-flex; align-items: center; min-width: 0; height: auto; color: #475467; font-size: 11px; }
.method-tabs { display: flex; gap: 3.2px; margin-bottom: 9.6px; border-bottom: 1.0px solid var(--line); }
.method-tab { border: 0; border-bottom: 1.6px solid transparent; padding: 5.6px 11.2px; color: #667085; background: transparent; cursor: pointer; font-size: 13px; }
.method-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.notice { display: flex; gap: 8.0px; padding: 9.6px 11.2px; border: 1.0px solid var(--brand-border); border-radius: 6.4px; color: #36598c; background: #f5f8ff; font-size: 12px; line-height: 1.55; }
.notice.warning { color: #80520b; border-color: #efd398; background: #fffaf0; }
.notice.success { color: #176c50; border-color: #bce8d8; background: #f1fbf7; }
.empty { padding: 38.4px 16.0px; text-align: center; color: var(--muted); font-size: 12px; }

.split { display: grid; grid-template-columns: 248.0px minmax(0,1fr); gap: 12.8px; }
.tree { padding: 6.4px; }
.tree-row { display: flex; align-items: center; gap: 4.8px; min-height: 30.4px; padding: 4.0px 6.4px; border-radius: 5.6px; font-size: 12px; }
.tree-row:hover { background: #f5f8fc; }
.tree-row.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.tree-indent-1 { padding-left: 22.4px; }
.tree-indent-2 { padding-left: 41.6px; }
.tree-indent-3 { padding-left: 60.8px; }
.tree-actions { margin-left: auto; display: flex; gap: 1.6px; }

.matrix-wrap { position: relative; overflow-x: auto; border: 1.0px solid var(--line); border-radius: 7.2px; }
.matrix-empty-overlay { position: absolute; left: 50%; top: calc(50% + 20px); transform: translate(-50%, -50%); z-index: 2; color: var(--muted); font-size: 11px; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.matrix tbody .matrix-empty-cell { height: 38.4px; padding: 0; background: #fff; }
.matrix { min-width: 744.0px; table-layout: fixed; }
.matrix.has-calc-cols { width: max-content; min-width: 100%; table-layout: auto; }
.matrix.has-calc-cols th, .matrix.has-calc-cols td { padding-right: 7px; padding-left: 7px; white-space: nowrap; }
.matrix.has-calc-cols .calc-col { min-width: 85px; }
.matrix.has-calc-cols .model-code-col { width: 110px; min-width: 110px; max-width: 110px; }
.matrix.has-calc-cols .model-name-col { width: 200px; min-width: 200px; }
.matrix.has-calc-cols .parameter-source-col, .matrix.has-calc-cols .parameter-source-cell { width: 140px; min-width: 140px; max-width: 140px; }
.matrix.empty-calc-cols { min-width: 100%; width: 100%; table-layout: fixed; }
.matrix.empty-calc-cols .selected-calc-col { width: auto; min-width: 0; }
.matrix.empty-calc-cols .model-code-col { width: 110px; min-width: 110px; max-width: 110px; }
.matrix.empty-calc-cols .model-name-col { width: 200px; min-width: 200px; }
.matrix.empty-calc-cols .parameter-source-col, .matrix.empty-calc-cols .parameter-source-cell { width: 140px; min-width: 140px; max-width: 140px; }
.matrix.empty-calc-cols .sticky-right { width: 60px; min-width: 60px; max-width: 60px; }
.matrix th, .matrix td { text-align: center; }
.matrix th, .matrix td { border-right: 1px solid #eef1f5; }
.matrix th:last-child, .matrix td:last-child { border-right: 0; }
.source-picker-trigger { width: 100%; min-height: 28px; display: flex; align-items: center; gap: 4px; overflow: hidden; border: 1px solid #d0d5dd; border-radius: 4px; background: #fff; color: var(--text); cursor: pointer; padding: 3px 6px; text-align: left; }
.source-picker-trigger.invalid { color: #c0392b; }
.source-tags { display: flex; gap: 3px; min-width: 0; overflow: hidden; flex: 1; }
.source-tag { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 3px; background: #eef4ff; color: #315a9b; font-size: 11px; white-space: nowrap; }
.source-tag-remove { border: 0; background: transparent; color: #8da2c5; font-size: 10px; line-height: 1; cursor: pointer; padding: 0; }
.source-tag-remove { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; }
.source-tag-remove:hover { color: #4f6f9f; background: #dce8fb; }
.source-placeholder { color: #98a2b3; font-size: 12px; }
.source-caret { margin-left: auto; color: #98a2b3; font-size: 12px; }
.matrix .model-code-col, .matrix .model-name-col { text-align: center; }
.matrix .model-code-editor { justify-content: center; }
.matrix .model-code-col input, .matrix .model-name-col input { text-align: left; }
.source-popover { position: fixed; z-index: 30; width: 280px; max-height: 320px; padding: 10px; border: 1px solid #d8dee8; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(31,45,61,.14); }
.source-popover-title { margin: 0 0 8px; color: #344054; font-size: 12px; font-weight: 600; }
.source-option-list { max-height: 220px; overflow-y: auto; }
.source-option { display: grid; grid-template-columns: 70px minmax(0, 1fr) 18px; align-items: center; gap: 8px; padding: 8px 10px; color: #344054; font-size: 12px; cursor: pointer; }
.source-option:hover { background: #f5f8fc; }
.source-option.selected { background: #edf4ff; color: #2563eb; }
.source-option.disabled { color: #98a2b3; cursor: not-allowed; background: #f8fafc; }
.source-option-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-option-code { font-weight: 600; }
.source-option-check { color: #2563eb; font-size: 14px; font-weight: 700; text-align: center; }
.source-popover { width: 360px; }
.source-option { grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 6px; padding: 6px 8px; line-height: 1.35; }
.source-option-code { font-weight: 400; color: #475467; }
.source-option-name { white-space: normal; overflow-wrap: anywhere; }
.source-option-none { align-items: start; }
.source-option-none .source-option-code { padding-top: 1px; }
.source-popover-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eef1f5; }
.matrix th { background: #f7f9fb; }
.matrix tbody td { background: #fff; }
.matrix .sticky-1, .matrix .sticky-2, .matrix .sticky-3 { position: sticky; z-index: 3; background: #fff; text-align: left; }
.matrix th.sticky-1, .matrix th.sticky-2, .matrix th.sticky-3 { background: #f7f9fb; z-index: 5; }
.matrix .sticky-1 { left: 0; width: 110px; min-width: 110px; max-width: 110px; }
.matrix .model-code-col { width: 110px; min-width: 110px; max-width: 110px; }
.matrix .model-name-col { width: 200px; min-width: 200px; }
.matrix .model-name-col .input { display: block; width: 100%; box-sizing: border-box; }
.matrix .sticky-2 { left: 110px; width: 200px; }
.matrix.empty-calc-cols .sticky-1,
.matrix.empty-calc-cols .sticky-2 { position: static; }
.matrix.empty-calc-cols th { background: #f7f9fb; }
.matrix .sticky-3 { left: 208.0px; width: 168.0px; box-shadow: 4.0px 0 6.4px -6.4px #49556a; }
.matrix .sticky-right { position: sticky; right: 0; z-index: 4; width: 60px; min-width: 60px; max-width: 60px; background: #fff; border-left: 1px solid #eef1f5; box-shadow: none; }
.matrix .sticky-source { position: sticky; left: 310px; z-index: 4; width: 140px; min-width: 140px; max-width: 140px; background: #fff; border-left: 1px solid #eef1f5; border-right: 0; box-shadow: none; }
.matrix .model-name-col { border-right: 0; }
.matrix th.sticky-source { background: #f7f9fb; z-index: 5; }
.source-summary-trigger { width: 100%; min-height: 28px; display: flex; align-items: center; gap: 4px; overflow: hidden; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; padding: 3px 6px; text-align: left; }
.source-summary-trigger:hover { border-color: #c7d2e3; background: #f8fafc; }
.source-summary-trigger .source-edit-icon { margin-left: auto; color: #98a2b3; font-size: 13px; }
.source-picker-trigger { min-width: 0; flex-wrap: nowrap; white-space: nowrap; }
.source-picker-trigger .source-tags { min-width: 0; flex-wrap: nowrap; white-space: nowrap; }
.source-picker-trigger .source-tag { flex: 0 0 auto; max-width: 78px; overflow: hidden; text-overflow: ellipsis; }
.matrix .model-code-editor { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 6px; }
.matrix .sticky-1.model-code-col .matrix-row-drag { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; cursor: grab; }
.matrix .sticky-1.model-code-col .input { display: block; width: 100%; min-width: 0; box-sizing: border-box; padding-left: 8px; }
.matrix thead .sticky-1.model-code-col { padding-left: 27px; text-align: left; }
.matrix th.sticky-right { background: #f7f9fb; z-index: 5; }
.matrix-cell { width: 15px; height: 15px; display: inline-grid; place-items: center; border: 1px solid #d7dde7; border-radius: 4px; color: transparent; background: #fff; font-size: 0; line-height: 1; padding: 0; }
button.matrix-cell:hover { color: var(--brand); background: transparent; }
.matrix-cell.allowed { color: transparent; border-color: #d7dde7; background: #fff; }
.matrix-cell.blocked { width: 16px; height: 16px; border: 0; border-radius: 50%; color: #d64545; background: transparent; font-size: 15px; }
.matrix-cell.checked { border-color: var(--brand); color: #fff; background: var(--brand); }
.matrix-cell.readonly { border-style: dashed; }
.matrix.has-calc-cols .parameter-source-col, .matrix.has-calc-cols .parameter-source-cell,
.matrix.empty-calc-cols .parameter-source-col, .matrix.empty-calc-cols .parameter-source-cell,
.matrix .parameter-source-cell.sticky-source { width: 140px; min-width: 140px; max-width: 140px; }
.matrix .model-code-col, .matrix .model-name-col { text-align: center !important; }
.matrix .model-code-col input, .matrix .model-name-col input { text-align: left !important; }
.matrix .model-code-editor { justify-content: center; }
.source-picker-trigger { width: 100%; }
.matrix .model-name-col { border-right: 0; }
.matrix .sticky-source { border-left: 1px solid #e6eaf0; border-right: 0; box-shadow: none; }
.matrix .calc-col { border-right: 1px solid #e6eaf0; }
.matrix .calc-col-first { border-left: 1px solid #e6eaf0; }
.matrix .calc-col-last { border-right: 0; }
.matrix .sticky-right { border-left: 1px solid #e6eaf0; border-right: 0; box-shadow: none; }
.matrix thead .sticky-right { border-left: 1px solid #e6eaf0; }
.matrix .source-picker-trigger:disabled { color: #98a2b3; background: #f8fafc; border-color: #e1e5eb; cursor: not-allowed; opacity: 1; }
.drag { color: #a0a9b8; margin-right: 4.0px; cursor: grab; }

.footer-actions { position: fixed; left: var(--sidebar); right: 0; bottom: 0; z-index: 18; height: 51.2px; display: flex; align-items: center; justify-content: space-between; padding: 0 19.2px; border-top: 1.0px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -3.2px 11.2px rgba(24,34,48,.05); backdrop-filter: blur(6.4px); }
.footer-actions.end { justify-content: flex-end; }
.footer-actions.calc-footer { justify-content: center; }
.footer-actions.plan-footer { justify-content: center; }
.topic-save-errors { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #f0b8b8; border-radius: 6px; background: #fff5f5; color: #a12b2b; font-size: 13px; line-height: 1.6; }
.topic-save-errors[hidden] { display: none; }
.topic-save-errors strong { font-weight: 600; }
.topic-save-errors ul { margin: 4px 0 0 18px; padding: 0; }
.footer-group { display: flex; align-items: center; gap: 6.4px; }

.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24.0px; background: rgba(14,24,40,.45); }
.modal { width: min(576.0px,94vw); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 9.6px; background: #fff; box-shadow: 0 19.2px 56.0px rgba(14,24,40,.25); }
.modal.compact { width: min(352.0px,92vw); }
.modal.copy-plan-modal { width: min(460px, 92vw); }
.modal.product-association-modal { width: min(440px, 92vw); }
.modal.product-association-modal { overflow: visible; }
.modal.product-association-modal .modal-body { overflow: visible; }
.modal.product-association-modal .searchable-select { z-index: 2; }
.modal.product-association-modal .searchable-select:focus-within { z-index: 20; }
.modal.product-association-modal .searchable-select-options { z-index: 1000; }
.modal.wide { width: min(896.0px,94vw); }
.modal.reference-modal { width: min(640px, 92vw); }
.reference-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; color: #475467; font-size: 12px; }
.reference-summary strong { color: #1d2939; font-weight: 600; }
.reference-summary span { color: #667085; white-space: nowrap; }
.reference-section-title { margin: 16px 0 8px; color: #344054; font-size: 13px; font-weight: 600; }
.modal.calc-selector-modal { width: min(1080px, 94vw); height: min(760px, 88vh); max-height: min(760px, 88vh); }
.calc-selector-modal .modal-body { overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.calc-selector-modal .filter-panel { flex: 0 0 auto; margin-bottom: 0; border: 0; padding: 0; background: transparent; }
.calc-selector-modal .filter-item { flex-wrap: nowrap; gap: 6px; column-gap: 6px; row-gap: 0; align-items: center; white-space: nowrap; }
.calc-selector-modal .filter-item .form-label { margin-right: 0; }
.calc-selector-modal .modal-line-filter { width: 120px; min-width: 120px; pointer-events: none; background: #f6f8fa; color: #596579; }
.calc-selector-modal #topic-calc-query { width: 145px; min-width: 145px; }
.calc-selector-modal .modal-line-filter.placeholder { color: #aeb7c4; }
.calc-selector-modal .filter-category-picker { width: 150px; max-width: 150px; flex-basis: 150px; }
.calc-selector-modal .filter-domain-picker { width: 220px; max-width: 220px; flex-basis: 220px; }
.calc-selector-modal .filter-category-picker:focus-within { z-index: 20; }
.calc-selector-modal .filter-domain-picker:focus-within { z-index: 20; }
.calc-selector-modal .filter-category-clear { display: none; }
.calc-selector-modal .topic-selected-calc { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 12px; padding: 0; border: 0; background: transparent; box-sizing: border-box; }
.calc-selector-modal .topic-selected-calc-label { flex: 0 0 auto; color: #475467; font-size: 12px; white-space: nowrap; }
.calc-selector-modal .topic-selected-calc-control { flex: 1 1 auto; min-width: 0; min-height: 28px; height: auto; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 5.6px; background: #fff; box-sizing: border-box; }
.calc-selector-modal .topic-selected-calc-control .selected-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 0; }
.calc-selector-modal .topic-selected-calc-control:not(:has(.tag)) { height: 28px; }
.calc-selector-modal .topic-selected-calc-placeholder { color: #aeb7c4; font-size: 12px; line-height: 22px; }
.calc-selector-modal .selected-tags { flex: 1 1 auto; max-height: none; overflow: visible; margin-bottom: 0; }
.calc-selector-modal .topic-selected-calc > .btn { flex: 0 0 auto; white-space: nowrap; align-self: center; }
.calc-selector-modal .filter-field-group { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
.calc-selector-modal .filter-field-group .form-label { flex: 0 0 auto; }
.calc-selector-modal .table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.calc-selector-modal .topic-selected-calc + .table-wrap { margin-top: 0; }
.calc-selector-modal .table-wrap table { min-width: 780px; }
@media (max-width: 980px) {
  .calc-selector-modal .filter-item { flex-wrap: wrap; }
  .calc-selector-modal .filter-field-group { break-inside: avoid; }
}
.modal.full { width: calc(100vw - 51.2px); height: calc(100vh - 51.2px); max-height: none; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; min-height: 46.4px; padding: 0 16.0px; border-bottom: 1.0px solid var(--line); }
.modal-title { font-size: 14px; font-weight: 650; }
.modal-close { width: 25.6px; height: 25.6px; border: 0; border-radius: 5.6px; color: #7a8595; background: transparent; font-size: 16.0px; }
.modal-close:hover { background: #f1f3f6; }
.modal-body { padding: 20px 30px; overflow: auto; flex: 1; }
.reference-modal .modal-body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.reference-modal .table-wrap { max-height: min(52vh, 420px); overflow-y: auto; }
.reference-modal .table-wrap thead th { position: sticky; top: 0; z-index: 1; }
.plan-ownership-fields > div:nth-child(2) > .form-label { display: none; }
.plan-detail-product-field, .plan-detail-topic-field { margin-top: 12px; }
.plan-detail-product-field:first-child { margin-top: 0; }
.plan-detail-page .plan-ownership-fields > div:nth-child(2) { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; }
.plan-ownership-fields > div:nth-child(2) > .plan-detail-product-field,
.plan-ownership-fields > div:nth-child(2) > .plan-detail-topic-field { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; column-gap: 12px; margin-top: 0; width: 100%; }
.plan-ownership-fields > div:nth-child(2) > .plan-detail-product-field > .form-label,
.plan-ownership-fields > div:nth-child(2) > .plan-detail-topic-field > .form-label { margin: 0; text-align: right; white-space: nowrap; }
.plan-product-picker { position: relative; width: 100%; }
.plan-product-picker > .topic-parent-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.plan-product-picker > .input { width: 100%; box-sizing: border-box; padding-right: 34px; }
.plan-product-picker > .input { height: 28px; font-size: 12px; }
.plan-product-options { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; max-height: 208px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 5.6px; background: #fff; box-shadow: 0 6px 14px rgba(20,35,60,.12); }
.plan-product-option { display: block; width: 100%; min-height: 28px; padding: 4px 8px; border: 0; border-radius: 4px; background: transparent; text-align: left; color: var(--text); font-size: 12px; cursor: pointer; }
.plan-product-option:hover, .plan-product-option.selected { background: var(--soft-blue); }
.plan-product-empty { padding: 8px 12px; color: var(--muted); }
.modal-body input, .modal-body select, .modal-body textarea, .modal-body button, .drawer input, .drawer select, .drawer textarea, .drawer button { font-size: 12px; }
.modal-body input::placeholder, .modal-body textarea::placeholder, .modal-body .select:has(option:checked[value=""]) { color: #aeb7c4; opacity: 1; }
.modal .table-wrap input { font-size: 11px; }
.modal-body .form-label::after, .drawer .form-label::after { content: none; }
.required-mark { position: absolute; right: 100%; margin-right: 4px; color: var(--danger); white-space: nowrap; }
.modal.form-modal .modal-body { width: min(608.0px, 100%); margin: 0 auto; box-sizing: border-box; }
.modal.form-modal { width: min(512.0px, 92vw); }
.form-stack { display: grid; gap: 14.4px; }
.addon-charge-panel .table-wrap { overflow-x: hidden; }
.addon-charge-panel { margin-top: 10px; }
.pricing-line-group { margin: 20px 0; }
.pricing-line-title { margin: 0 0 10px; font-size: 13px; font-weight: 650; color: #344054; }
.addon-charge-panel table { width: 100%; table-layout: fixed; }
.addon-charge-panel th,
.addon-charge-panel td { padding-left: 6.4px; padding-right: 6.4px; }
.addon-charge-panel th:nth-child(1),
.addon-charge-panel td:nth-child(1) { width: 28%; }
.addon-charge-panel th:nth-child(2),
.addon-charge-panel td:nth-child(2) { width: 36%; }
.addon-charge-panel th:nth-child(3),
.addon-charge-panel td:nth-child(3) { width: 20%; }
.addon-charge-panel th:nth-child(4),
.addon-charge-panel td:nth-child(4) { width: 16%; }
.addon-charge-panel td .input { width: 100% !important; min-width: 0; box-sizing: border-box; }
.image-upload { display: inline-flex; cursor: pointer; }
.image-upload input[type="file"] { position: absolute; width: 1.0px; height: 1.0px; overflow: hidden; opacity: 0; }
.image-preview { height: 25.6px; display: inline-grid; place-items: center; padding: 0 8.0px; border: 1.0px solid #c8d0dc; border-radius: 4.0px; color: #455468; font-size: 12px; white-space: nowrap; background: #fff; }
.image-upload:hover .image-preview { color: var(--primary); border-color: var(--primary); }
.calc-image-content { min-width: 0; }
.calc-image-foot { display: flex; align-items: center; gap: 10px; align-self: center; margin: 0 0 0 2px; white-space: nowrap; }
.calc-image-foot .help { margin: 0; }
.calc-image-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.calc-image-row { display: flex; flex-direction: column; gap: 6px; width: 80px; }
.calc-image-row .input { width: 100%; min-width: 0; box-sizing: border-box; }
.calc-image-upload { display: block; width: 80px; cursor: pointer; }
.calc-image-file { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.image-tile { position: relative; display: grid; place-items: center; width: 80px; height: 80px; box-sizing: border-box; overflow: hidden; border: 1px dashed #b8c3d1; border-radius: 6px; color: #65748a; background: #f7f9fc; }
.calc-image-row.has-image .image-tile { padding: 6px; border-style: solid; border-color: #c8d0dc; background: #fff; }
.image-tile:hover { border-color: var(--primary); background: #f7faff; }
.image-upload-plus { color: #596a80; font-size: 13px; }
.image-preview-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.image-preview-img[hidden] { display: none; }
.image-file-name { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #56657a; font-size: 11px; }
.image-tile-actions { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; background: rgba(18, 31, 51, .42); transition: opacity .15s ease; }
.calc-image-row[data-file-name=""] .image-tile-actions,
.addon-image-row[data-file-name=""] .image-tile-actions { display: none; }
.image-tile:hover .image-tile-actions { opacity: 1; }
.image-tile-actions button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(18, 31, 51, .72); cursor: pointer; }
.image-tile-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.image-tile-actions button:hover { background: rgba(18, 31, 51, .92); }
.addon-image-row { display: flex; flex-direction: column; gap: 6px; width: 80px; }
.addon-image-row .calc-image-upload { width: 80px; }
.addon-image-row .image-tile { width: 80px; height: 80px; }
.addon-image-row.has-image .image-tile { padding: 6px; border-style: solid; border-color: #c8d0dc; background: #fff; }
.addon-image-caption { width: 80px; min-width: 0; box-sizing: border-box; }
.addon-caption-field[hidden] { display: none; }
.factor-head-notice { margin-left: auto; margin-right: 20px; color: #7c8798; font-size: 12px; font-weight: 400; }
.form-stack > div:has(.charge-options) { display: grid; grid-template-columns: 80px 1fr; column-gap: 0; align-items: center; }
.form-stack > div:has(.charge-options) > .form-label { margin-bottom: 0; }
.charge-options { display: grid; grid-template-columns: 110px 170px; align-items: center; column-gap: 0; height: 27.2px; margin-top: 0; margin-left: 0; }
.charge-option { display: inline-flex; align-items: center; gap: 6.4px; cursor: pointer; color: #344054; font-size: 12px; }
.charge-option input { width: 12.8px; height: 12.8px; margin: 0; accent-color: var(--primary); }
.modal-foot { display: flex; justify-content: flex-end; gap: 6.4px; min-height: 49.6px; padding: 11.2px 16.0px; border-top: 1.0px solid var(--line); background: #fafbfc; }
.drawer { position: fixed; z-index: 101; top: 0; bottom: 0; right: 0; width: 416.0px; background: #fff; box-shadow: -14.4px 0 40.0px rgba(18,31,51,.18); display: flex; flex-direction: column; }

.steps { display: flex; gap: 0; margin-bottom: 16.0px; }
.step { display: flex; align-items: center; color: #8a95a5; font-size: 12px; }
.step::after { content: ""; width: 56.0px; height: 1.0px; margin: 0 7.2px; background: #d9dfe8; }
.step:last-child::after { display: none; }
.step-num { width: 19.2px; height: 19.2px; display: grid; place-items: center; margin-right: 5.6px; border-radius: 50%; background: #e8ecf2; }
.step.active { color: var(--brand); font-weight: 600; }
.step.active .step-num { color: #fff; background: var(--brand); }

.upload-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9.6px; }
.upload-card { min-height: 105.6px; border: 1.0px dashed #bdc6d3; border-radius: 7.2px; display: grid; place-items: center; padding: 9.6px; color: #798596; background: #fafbfc; text-align: center; font-size: 12px; }
.thumb, .drag { font-size: 12px; }
.thumb { height: 84.0px; border-radius: 5.6px; background: linear-gradient(135deg,#dbe7fb,#f1ddff); display: flex; align-items: flex-end; padding: 8.0px; color: #45536a; }
.flow-list { display: grid; gap: 7.2px; }
.flow-item { display: grid; grid-template-columns: 27.2px 128.0px 1fr auto; align-items: center; gap: 8.0px; padding: 8.0px; border: 1.0px solid var(--line); border-radius: 6.4px; }
.flow-num { width: 20.8px; height: 20.8px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 700; }

.toast { position: fixed; z-index: 200; top: 64px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: 360px; min-height: 36px; padding: 8px 12px; border: 1px solid #d9dee8; border-radius: 6px; color: #303846; background: #fff; box-shadow: 0 4px 14px rgba(22, 35, 56, .12); font-size: 12px; line-height: 18px; animation: toast-in .18s ease-out; }
.toast-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; background: #52b83f; font-size: 11px; line-height: 1; font-weight: 700; }
.toast.error .toast-icon { background: #d64545; }
.side-group-label { padding: 9.6px 14.4px 4.8px 25.6px; color: #8a94a6; font-size: 12px; font-weight: 600; }
.confirm-message { margin: 3.2px 0; color: var(--text); font-size: 12px; text-align: center; }
@keyframes toast-in { from { opacity: 0; } }
.fade-in { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: .35; transform: translateY(1.6px); } }

@media (max-width: 1000.0px) {
  :root { --sidebar: 152.0px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .form-grid.cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .basic-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .basic-info-grid > .form-item, .basic-info-grid > .form-item.half-field { grid-column: span 1; }
  .basic-info-grid > .form-item.span-2 { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .basic-info-grid { grid-template-columns: 1fr; }
  .filter-domain-picker, .filter-category-picker { width: 100%; max-width: 100%; flex-basis: 100%; }
  .plan-info-grid > .form-item { grid-template-columns: 1fr; row-gap: 6px; }
  .plan-info-grid > .form-item > .form-label { text-align: left; }
  .plan-detail-page .plan-ownership-fields > div,
  .topic-basic-fields > div,
  .calc-basic-info-layout > .form-item { grid-template-columns: 110px minmax(0,1fr); column-gap: 8px; }
}

/* 课题操作日志抽屉 */
.drawer.topic-log-drawer { width:min(760px, 100vw); }
.topic-log-head { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; padding:16px 24px; border-bottom:1px solid var(--line); }
.topic-log-head h2 { margin:0; font-size:18px; font-weight:650; }
.topic-log-head .modal-close { position:static; display:flex; align-items:center; justify-content:center; width:36px; height:36px; font-size:26px; border-radius:6px; }
.topic-log-head .modal-close:hover { background:var(--canvas); }
.topic-log-list-head { display:flex; flex-shrink:0; justify-content:space-between; align-items:center; padding:14px 24px; background:var(--canvas); font-size:12px; }
.topic-log-list-head strong > span { margin-left:5px; color:var(--muted); font-weight:400; }
.topic-log-list-head > span { color:var(--muted); font-size:11px; }
.topic-log-scroll { flex:1; overflow-y:auto; min-height:0; padding:20px 24px; background:var(--canvas); }
.topic-log-card { padding:18px; margin-bottom:14px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.topic-log-card-head { display:flex; flex-wrap:wrap; align-items:center; gap:16px; font-size:14px; font-weight:600; line-height:1.6; }
.topic-log-card-head time { color:var(--text); font-variant-numeric:tabular-nums; }
.topic-log-card-head strong { font-weight:600; }
.topic-log-section { margin-top:18px; }
.topic-log-section h4 { margin:0 0 10px; font-size:12px; color:#475467; font-weight:600; }
.topic-log-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:12px; }
.topic-log-table th, .topic-log-table td { border:1px solid var(--line); padding:10px; text-align:left; vertical-align:top; line-height:1.65; white-space:normal; overflow-wrap:anywhere; }
.topic-log-table th { background:#f8fafc; color:var(--muted); font-size:11px; font-weight:500; }
.topic-log-table td { color:var(--text); }
.topic-log-table td.log-old { color:var(--muted); }
.log-object-type { display:block; }
.log-object-location { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.topic-log-action { display:inline-block; padding:1px 5px; border-radius:4px; background:var(--brand-soft); color:var(--brand); font-size:11px; white-space:nowrap; }
.topic-log-action.added { color:var(--success); background:var(--success-soft); }
.topic-log-action.removed { color:var(--danger); background:var(--danger-soft); }
.topic-log-end { padding:8px; text-align:center; color:#98a2b3; font-size:11px; }
.object-log-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-shrink:0; padding:14px 24px; border-top:1px solid var(--line, #e4e7ec); background:#fff; color:#667085; font-size:12px; }
.object-log-pagination > span:first-child { margin-right:auto; }
.object-log-pagination .btn:disabled { opacity:.45; cursor:default; }

.topic-log-basic { display:grid; gap:10px; }
.topic-log-basic-row { display:flex; flex-wrap:wrap; gap:6px; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.topic-log-basic-label { color:var(--text); }
.topic-log-basic-row .log-old, .topic-log-basic-arrow { color:var(--muted); }

.topic-log-title { display:flex; align-items:baseline; gap:8px; min-width:0; }
.topic-log-title h2 { flex-shrink:0; }
.topic-log-title-context { font-size:12px; font-weight:400; color:#98a2b3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topic-log-head .modal-close { flex-shrink:0; margin-left:12px; }

.topic-log-notice { margin:12px 0 0; font-size:12px; color:var(--muted); line-height:1.7; }

/* 统一列表分页与横向滚动时的固定列。 */
.list-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.list-pagination .btn:disabled { opacity: .45; cursor: default; }
.calc-table { width: max-content; min-width: 100%; table-layout: auto; }
.calc-table th, .calc-table td { white-space: nowrap; }
.calc-table .calc-sticky-id { position: sticky; left: 0; z-index: 3; width: 130px; min-width: 130px; max-width: 130px; background: #fff; text-align: center; }
.calc-table thead .calc-sticky-id { z-index: 5; background: #f1f4f8; }
.calc-table .calc-sticky-name { position: sticky; left: 130px; z-index: 3; width: 260px; min-width: 260px; max-width: 260px; background: #fff; text-align: left; overflow: visible; text-overflow: clip; border-right: 1px solid var(--line); box-shadow: 4px 0 7px -7px rgba(36,48,68,.45); }
.calc-table thead .calc-sticky-name { z-index: 5; background: #f1f4f8; }
.calc-table .calc-sticky-actions { position: sticky; right: 0; z-index: 3; width: 180px; min-width: 180px; max-width: 180px; background: #fff; border-left: 1px solid var(--line); box-shadow: -4px 0 7px -7px rgba(36,48,68,.45); }
.calc-table thead .calc-sticky-actions { z-index: 5; background: #f1f4f8; }
.plan-table .plan-sticky-actions { width: 190px; min-width: 190px; max-width: 190px; }

.global-nav a.global-nav-item{text-decoration:none;cursor:pointer}.global-nav a.global-nav-item:hover{background:#ffffff14;color:#fff}.global-nav a.global-nav-item:focus-visible{outline:2px solid #91b7ff;outline-offset:-4px}
