:root {
  --brand: #13a56f;
  --brand-dark: #087a51;
  --brand-soft: #eaf8f2;
  --blue: #2878d0;
  --amber: #c77700;
  --red: #d94a4a;
  --ink: #26332e;
  --muted: #6f7b76;
  --line: #dce5e0;
  --panel: #fff;
  --canvas: #f3f6f4;
  --nav: #16342b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--ink); background: var(--canvas); font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.layout { display: grid; grid-template-columns: 220px minmax(760px, 1fr); min-height: 100vh; }
.sidebar { background: var(--nav); color: #fff; }
.logo { height: 60px; padding: 0 22px; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; background: #102b23; }
.logo-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--brand); border-radius: 4px; }
.menu { padding: 14px 10px; }
.menu-label { padding: 12px 12px 8px; color: #91aa9f; font-size: 12px; }
.menu a { display: block; padding: 11px 14px; margin-bottom: 4px; color: #ccddd5; text-decoration: none; border-radius: 4px; }
.menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu a.active { color: #fff; background: var(--brand); font-weight: 600; }
.main { min-width: 0; }
.topbar { height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar strong { font-size: 16px; }
.user { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.content { padding: 22px 24px 50px; max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 22px; line-height: 1.3; }
.page-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.65; }
.actions, .inline-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.btn { min-height: 34px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--red); border-color: #f0bcbc; }
.btn.small { min-height: 30px; padding: 5px 10px; font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.link-btn { border: 0; background: transparent; color: var(--brand-dark); cursor: pointer; padding: 3px; }
.panel { background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; }
.panel-head { min-height: 50px; padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h2 { font-size: 16px; margin: 0; }
.panel-body { padding: 16px; }
.context-strip { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); border: 1px solid #bfe5d5; background: var(--brand-soft); margin-bottom: 14px; }
.context-item { padding: 12px 15px; border-right: 1px solid #cce9dd; }
.context-item:last-child { border-right: 0; }
.context-item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.context-item strong { font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px 28px; }
.field label, .field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.control { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #cfd9d4; background: #fff; border-radius: 4px; color: var(--ink); }
textarea.control { min-height: 72px; resize: vertical; }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; min-height: 36px; align-items: center; }
.check-row label { color: var(--ink); margin: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 16px; align-items: start; }
.permission-panel { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); padding: 15px; }
.permission-panel h3 { margin: 0 0 5px; font-size: 15px; }
.permission-panel p { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.permission-option { display: flex; gap: 8px; padding: 9px 6px; border-top: 1px solid #edf1ef; cursor: pointer; line-height: 1.45; }
.permission-option:first-of-type { border-top: 0; }
.permission-option input { margin-top: 3px; }
.permission-summary { margin-top: 12px; padding: 10px; background: #f7f9f8; font-size: 12px; line-height: 1.6; color: var(--muted); }
.combo { border: 1px solid var(--line); background: #fff; margin-bottom: 12px; }
.combo-head { padding: 11px 14px; background: #f7faf8; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.combo-body { padding: 14px; }
.shared-pest-toolbar { min-height: 62px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid #ffd19d; background: #fffaf3; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shared-pest-toolbar[hidden] { display: none; }
.shared-pest-toolbar strong { display: block; margin-bottom: 4px; }
.object-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.category-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.category-tab { border: 0; background: transparent; padding: 10px 16px; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.category-tab.active { color: var(--brand-dark); border-color: var(--brand); font-weight: 700; }
.count { margin-left: 5px; min-width: 19px; height: 19px; display: inline-grid; place-items: center; background: #edf3f0; border-radius: 10px; font-size: 11px; color: var(--muted); }
.object-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 8px; }
.object-check { border: 1px solid var(--line); padding: 9px 10px; display: flex; gap: 8px; align-items: center; min-height: 40px; background: #fff; }
.object-check.selected { border-color: #7bcbae; background: var(--brand-soft); }
.combo-pest-list { gap: 8px 18px; }
.combo-pest-option { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.combo-pest-option input { width: 15px; height: 15px; margin: 0; }
.pest-name-link { padding: 2px 0; border: 0; background: transparent; color: #1890ff; cursor: pointer; }
.pest-name-link:hover { color: #096dd9; text-decoration: underline; }
.empty-pest-hint { min-height: 32px; display: inline-flex; align-items: center; }
.product-list { margin-top: 13px; border-top: 1px solid #edf1ef; }
.product-row { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid #edf1ef; }
.product-row strong { display: block; }
.product-row small { color: var(--muted); }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.tag.green { color: #087a51; background: #eaf8f2; border-color: #bfe5d5; }
.tag.blue { color: #2566a9; background: #edf5ff; border-color: #cfe2f7; }
.tag.amber { color: #9b5d00; background: #fff6e5; border-color: #f0d39e; }
.tag.red { color: #b63737; background: #fff0f0; border-color: #f2c7c7; }
.tag.gray { color: #6c7571; background: #f1f3f2; border-color: #dce2df; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.65; }
.notice { padding: 11px 13px; border-left: 3px solid var(--amber); background: #fff8e9; color: #745220; line-height: 1.65; margin-bottom: 14px; }
.notice.success { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f1f4f2; font-weight: 600; white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 7px; }
.drawer-mask, .modal-mask { display: none; position: fixed; inset: 0; background: rgba(15,33,27,.42); z-index: 100; }
.drawer-mask.show, .modal-mask.show { display: block; }
.drawer { position: absolute; top: 0; right: 0; width: min(720px, 92vw); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.15); }
.drawer-head, .modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2, .modal-head h2 { margin: 0; font-size: 18px; }
.drawer-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.drawer-foot, .modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
.close-btn { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.drawer-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.drawer-tab { padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; color: var(--muted); }
.drawer-tab.active { color: var(--brand-dark); border-color: var(--brand); font-weight: 700; }
.drawer-section { display: none; }
.drawer-section.active { display: block; }
.search-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.selection-list { border: 1px solid var(--line); }
.selection-row { display: grid; grid-template-columns: 28px minmax(160px, 1fr) 150px 80px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.selection-row:last-child { border-bottom: 0; }
.selection-row.disabled { background: #f5f6f5; color: #8a938f; }
.category-path { font-size: 12px; color: var(--muted); }
.modal { width: min(940px, 92vw); max-height: 86vh; overflow: hidden; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; display: flex; flex-direction: column; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.product-modal { width: min(980px, 94vw); }
.selected-object-line { min-height: 28px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #777; }
.selected-object-line > div { display: flex; gap: 6px; flex-wrap: wrap; }
.product-search { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 10px; max-width: 620px; margin-bottom: 14px; }
.product-candidate-table { table-layout: fixed; }
.product-candidate-table .select-col { width: 56px; }
.product-candidate-table th { height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: center; background: #fafafa; }
.product-candidate-table td { height: 46px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.product-candidate-table td.product-name-cell { color: #444; }
.product-candidate-table tr.disabled td { background: #fafafa; color: #aaa; }
.product-candidate-table tr.selected td { background: #e6f7ff; }
.product-candidate-table input[type="checkbox"] { width: 15px; height: 15px; }
.product-remark { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.validation-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.validation-tag { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 7px; border: 1px solid #ff9c9c; border-radius: 2px; background: #fff2f0; color: #ff4d4f; font-size: 12px; line-height: 18px; }
.product-row-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.btn.relation-action { border-color: #f59637; background: #f59637; color: #fff; }
.btn.relation-action:hover { border-color: #e8882e; background: #e8882e; color: #fff; }
.product-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 7px; padding: 12px 0 4px; color: #777; }
.product-pagination button { min-width: 30px; height: 30px; border: 1px solid #d9d9d9; background: #fff; color: #777; }
.product-pagination button.active { border-color: #1890ff; color: #1890ff; }
.product-rule-hint { margin-top: 10px; }
.relation-scope { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); margin-bottom: 14px; border: 1px solid #e8e8e8; background: #fafafa; }
.relation-scope > div { padding: 10px 13px; border-right: 1px solid #e8e8e8; }
.relation-scope > div:last-child { border-right: 0; }
.relation-scope span { display: block; margin-bottom: 4px; color: #999; font-size: 12px; }
.relation-config-drawer { width: min(860px, 94vw); }
.relation-step-head { min-height: 58px; margin-bottom: 8px; padding: 8px 10px; border: 1px solid #e8e8e8; background: #fafafa; display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; align-items: center; gap: 10px; text-align: center; }
.relation-step-head strong, .relation-step-head span { display: block; }
.relation-step-head span { margin-top: 3px; color: #666; font-size: 13px; }
.relation-step-arrow { width: 32px; height: 32px; padding: 0; border: 1px solid #d9d9d9; border-radius: 3px; background: #fff; color: #555; cursor: pointer; font-size: 24px; line-height: 28px; }
.relation-step-arrow:disabled { cursor: not-allowed; color: #ccc; background: #f5f5f5; }
.relation-step-dots { min-height: 32px; margin-bottom: 10px; padding: 2px 0 6px; display: flex; align-items: center; justify-content: center; gap: 7px; overflow-x: auto; }
.relation-step-dot { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border: 1px solid #d9d9d9; border-radius: 50%; background: #fff; color: #999; font-size: 12px; }
.relation-step-dot.active { border-color: #1890ff; background: #1890ff; color: #fff; }
.relation-step-dot.done { border-color: #91d5ff; background: #e6f7ff; color: #1890ff; }
.relation-config-card { display: none; margin-bottom: 0; border: 1px solid #e8e8e8; background: #fff; }
.relation-config-card.active { display: block; animation: relation-card-in .18s ease; }
@keyframes relation-card-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.relation-config-card > header { min-height: 52px; padding: 10px 14px; border-bottom: 1px solid #e8e8e8; background: #fafafa; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.relation-config-card > header strong, .relation-config-card > header span { display: block; }
.relation-config-card > header span { margin-top: 3px; color: #999; font-size: 12px; }
.relation-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 13px 14px; }
.relation-step-foot { align-items: center; }
.relation-step-spacer { flex: 1; }
.config-product-head { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e8e8e8; border-bottom: 0; background: #fafafa; }
.config-product-head span, .config-product-head small { color: #888; }
.config-scope-table { table-layout: fixed; }
.config-scope-table th, .config-scope-table td { text-align: left; }
.config-scope-table td:last-child { color: #333; font-weight: 600; }
.config-object-status { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px 0; }
.config-shared-hint { padding-bottom: 12px; }
.dosage-config { border: 1px solid #e8e8e8; border-radius: 4px; overflow: hidden; }
.dosage-config-title { padding: 11px 14px; background: #fafafa; border-bottom: 1px solid #e8e8e8; font-weight: 700; }
.dosage-row { min-height: 48px; display: grid; grid-template-columns: 22px 150px minmax(130px,1fr) 150px; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #eee; cursor: pointer; }
.dosage-row:last-child { border-bottom: 0; }
.dosage-row > span:nth-of-type(2) { color: #777; }
.dosage-row .control { min-height: 32px; }
.dosage-row .control:disabled { background: #f5f5f5; color: #aaa; }
.crop-search-line { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.crop-search-field { width: 360px; }
.crop-search-select { position: relative; }
.crop-search-select .control { padding-left: 34px; padding-right: 34px; }
.crop-search-icon { position: absolute; z-index: 2; left: 10px; top: 8px; font-size: 15px; line-height: 20px; }
.crop-search-clear { position: absolute; z-index: 2; right: 7px; top: 5px; width: 26px; height: 26px; border: 0; background: transparent; color: #999; cursor: pointer; font-size: 18px; }
.crop-search-dropdown { display: none; position: absolute; z-index: 90; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; border: 1px solid #d9d9d9; border-radius: 3px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.crop-search-dropdown.show { display: block; }
.crop-search-option { width: 100%; min-height: 54px; padding: 8px 12px; border: 0; border-bottom: 1px solid #f0f0f0; background: #fff; display: grid; grid-template-columns: 110px minmax(0,1fr) 80px; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.crop-search-option:hover { background: #e6f7ff; }
.crop-search-option span, .crop-search-option small { overflow: hidden; color: #999; text-overflow: ellipsis; white-space: nowrap; }
.crop-search-empty { padding: 18px; color: #999; text-align: center; }
.sync-banner { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 15px; margin-bottom: 14px; background: #eef8f3; border: 1px solid #cbe6da; }
.sync-banner strong { color: var(--brand-dark); }
.prototype-home { max-width: 1160px; margin: 0 auto; padding: 38px 24px; }
.prototype-home h1 { font-size: 28px; margin: 0 0 9px; }
.prototype-home > p { color: var(--muted); margin: 0 0 24px; }
.home-flow { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: #fff; margin-bottom: 18px; }
.flow-step { padding: 17px 15px; border-right: 1px solid var(--line); }
.flow-step:last-child { border: 0; }
.flow-step b { display: block; margin-bottom: 6px; }
.flow-step span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-links { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 12px; }
.home-link { min-height: 126px; background: #fff; border: 1px solid var(--line); padding: 18px; text-decoration: none; }
.home-link:hover { border-color: var(--brand); }
.home-link.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.home-link b { font-size: 17px; display: block; margin-bottom: 8px; }
.home-link span { color: var(--muted); line-height: 1.6; }
.home-link.primary span { color: rgba(255,255,255,.85); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); padding: 11px 18px; background: #20372f; color: #fff; opacity: 0; pointer-events: none; transition: .2s; z-index: 300; border-radius: 4px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 190px minmax(680px, 1fr); }
  .workspace { grid-template-columns: 1fr; }
  .permission-panel { position: static; }
  .object-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .shared-pest-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Match the current management system. New quick-maintenance controls sit on top
   of this shell instead of replacing the established page structure. */
:root {
  --brand: #1890ff;
  --brand-dark: #096dd9;
  --brand-soft: #e6f7ff;
  --ink: #333;
  --muted: #8c8c8c;
  --line: #e8e8e8;
  --canvas: #f0f2f5;
  --nav: #fff;
}
body { color: #333; background: #f0f2f5; }
.layout { grid-template-columns: 240px minmax(760px, 1fr); }
.sidebar { background: #fff; color: #555; border-right: 1px solid #e8e8e8; box-shadow: 2px 0 6px rgba(0,0,0,.04); }
.logo { height: 56px; background: #fff; color: #444; border-bottom: 1px solid #eee; padding: 0 18px; font-size: 15px; }
.logo-mark { width: 26px; height: 26px; border-radius: 3px; background: #1890ff; color: #fff; }
.menu { padding: 8px 0 20px; }
.menu-label { padding: 14px 20px 6px; color: #aaa; }
.menu a { margin: 0; padding: 11px 20px 11px 48px; color: #555; border-radius: 0; }
.menu a:hover { background: #f5f9fc; color: #1890ff; }
.menu a.active { color: #1890ff; background: #e6f7ff; border-right: 3px solid #1890ff; font-weight: 400; }
.topbar { height: 56px; padding: 0 18px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.topbar strong { font-size: 14px; font-weight: 400; color: #666; }
.content { padding: 16px 22px 44px; max-width: none; }
.page-head { background: #fff; border: 1px solid #eee; padding: 14px 18px; margin-bottom: 14px; align-items: center; }
.page-head h1 { font-size: 17px; }
.page-head p { font-size: 12px; margin-top: 4px; }
.panel { border: 0; border-radius: 3px; }
.panel-head { min-height: 48px; }
.btn { border-radius: 3px; }
.btn.primary { background: #1890ff; border-color: #1890ff; }
.btn.primary:hover { background: #40a9ff; border-color: #40a9ff; }
.context-strip { background: #fafafa; border-color: #e8e8e8; }
.context-item { border-color: #e8e8e8; }
.category-tab.active { color: #1890ff; border-color: #1890ff; }
.object-check.selected { background: #f0f8ff; border-color: #91caff; }
.tag.green { color: #389e0d; background: #f6ffed; border-color: #b7eb8f; }
.drawer { width: min(720px, 92vw); }
.notice.success, .sync-banner { background: #f0f8ff; border-color: #bae7ff; color: #096dd9; }
.workspace { display: block; }
.permission-panel { position: fixed; z-index: 80; right: 0; top: 170px; width: 268px; box-shadow: 0 5px 18px rgba(0,0,0,.14); transition: transform .2s ease; }
.permission-panel.collapsed { transform: translateX(268px); }
.permission-toggle { position: absolute; left: -42px; top: 0; width: 42px; height: 42px; border: 0; border-radius: 4px 0 0 4px; background: #1890ff; color: #fff; cursor: pointer; font-size: 18px; box-shadow: -2px 3px 10px rgba(0,0,0,.12); }
.admin-tabs { height: 48px; display: flex; align-items: end; gap: 2px; padding: 0 20px; background: #f5f6f7; border-bottom: 1px solid #e8e8e8; }
.admin-tab { height: 38px; min-width: 110px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e8e8e8; border-bottom: 0; color: #777; text-decoration: none; }
.admin-tab.active { color: #1890ff; }
.breadcrumb { height: 48px; padding: 0 22px; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #eee; color: #999; font-size: 13px; }
.config-actions { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.btn.orange { background: #ff922b; border-color: #ff922b; color: #fff; }
.btn.quick-maintain { background: #f59637; border-color: #f59637; color: #fff; }
.btn.quick-maintain:hover { background: #e8882e; border-color: #e8882e; color: #fff; }
.feature-callout { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 8px 3px 4px; border: 1px solid #ffd19d; border-radius: 3px; background: #fff8ef; color: #b85f0a; font-size: 12px; white-space: nowrap; }
.feature-callout strong { height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 2px; background: #f59637; color: #fff; font-size: 12px; }
.feature-callout i { color: #f59637; font-size: 18px; font-style: normal; font-weight: 700; line-height: 1; }
.config-panel { background: #fff; border-radius: 6px; padding: 18px 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.config-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 490px; background: #fff; border-radius: 6px; overflow: hidden; }
.phase-list { background: #fafafa; border-right: 1px solid #eee; }
.phase-list-title { padding: 16px; color: #999; border-bottom: 1px solid #eee; }
.phase-item { min-height: 43px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: #666; cursor: pointer; }
.phase-item.active { color: #1890ff; background: #e6f7ff; }
.phase-work { padding: 16px; min-width: 0; }
.phase-work-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.empty-cell { height: 150px; text-align: center; color: #bbb; }
.readonly-control { background: #f5f5f5; color: #777; }
.tree-multi { position: relative; }
.tree-multi-control { min-height: 36px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 3px 34px 3px 6px; border: 1px solid #d9d9d9; border-radius: 3px; background: #fff; cursor: text; transition: border-color .15s, box-shadow .15s; }
.tree-multi.open .tree-multi-control { border-color: #40a9ff; box-shadow: 0 0 0 2px rgba(24,144,255,.18); }
.tree-multi-values { display: contents; }
.tree-multi-tag { max-width: 160px; height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 0 6px; border: 1px solid #e8e8e8; border-radius: 2px; background: #fafafa; color: #555; }
.tree-multi-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-multi-tag button { width: 14px; padding: 0; border: 0; background: transparent; color: #999; cursor: pointer; line-height: 1; }
.tree-multi-control input { flex: 1 1 130px; min-width: 90px; height: 26px; padding: 0 3px; border: 0; outline: 0; background: transparent; }
.tree-multi-control input::placeholder { color: #bfbfbf; }
.tree-multi-arrow { position: absolute; right: 8px; top: 7px; width: 22px; height: 22px; padding: 0; border: 0; background: transparent; color: #999; cursor: pointer; transition: transform .15s; }
.tree-multi.open .tree-multi-arrow { transform: rotate(180deg); }
.tree-multi-dropdown { display: none; position: absolute; z-index: 120; top: calc(100% + 4px); left: 0; right: 0; max-height: 300px; overflow-y: auto; padding: 7px 0; border-radius: 3px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.tree-multi.open .tree-multi-dropdown { display: block; }
.tree-root-row, .tree-group-row, .tree-option { min-height: 32px; display: flex; align-items: center; gap: 7px; padding: 5px 12px; }
.tree-root-row { color: #888; }
.tree-group-row { padding-left: 30px; color: #888; cursor: pointer; }
.tree-caret { width: 12px; color: #777; font-size: 11px; }
.tree-group.collapsed .tree-caret { transform: rotate(-90deg); }
.tree-group.collapsed .tree-group-options { display: none; }
.tree-option { width: 100%; padding-left: 55px; border: 0; background: transparent; color: #555; text-align: left; cursor: pointer; }
.tree-option:hover { background: #e6f7ff; }
.tree-option.selected { color: #1890ff; background: #f0f8ff; }
.tree-option::after { content: ''; margin-left: auto; }
.tree-option.selected::after { content: '✓'; font-weight: 700; }
.tree-empty { display: none; padding: 22px 12px; color: #aaa; text-align: center; }
.tree-empty.show { display: block; }
.solution-home { max-width: 1180px; padding-top: 24px; }
.solution-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.solution-brand { display: flex; align-items: center; gap: 8px; color: #0958d9; font-size: 13px; font-weight: 700; }
.solution-return { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border-radius: 4px; background: #f59637; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 2px 5px rgba(245,150,55,.24); }
.solution-return:hover { background: #e8882e; }
.solution-home h1 { margin: 0 0 5px; color: #17313e; font-size: 26px; line-height: 1.35; }
.solution-intro { margin: 0 0 24px !important; color: #74837c !important; font-size: 13px; }
.solution-process { border: 1px solid #d9e1dd; border-radius: 8px; background: #fff; overflow: hidden; }
.solution-process-head { padding: 16px 20px; border-bottom: 1px solid #d9e1dd; background: #fafafa; }
.solution-process-head h2 { margin: 0 0 3px; font-size: 17px; }
.solution-process-head p { margin: 0; color: #74837c; font-size: 13px; }
.solution-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid #d9e1dd; }
.solution-step { min-height: 126px; padding: 18px; border-right: 1px solid #d9e1dd; }
.solution-step:nth-child(3n) { border-right: 0; }
.solution-step:nth-child(n+4) { border-top: 1px solid #d9e1dd; }
.solution-step span { display: block; margin-bottom: 8px; color: #0a8f63; font-size: 12px; font-weight: 700; }
.solution-step b { display: block; margin-bottom: 5px; font-size: 15px; }
.solution-step p { margin: 0; color: #74837c; font-size: 12px; line-height: 1.65; }
.solution-step.is-new { position: relative; background: #fff8ef; box-shadow: inset 0 0 0 2px #f59637; }
.solution-step.is-new span { color: #d66f0c; }
.solution-step.is-new em, .solution-branch.is-new em { position: absolute; top: 10px; right: 12px; padding: 2px 7px; border-radius: 3px; background: #f59637; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; }
.solution-branches { display: grid; grid-template-columns: 190px repeat(3,minmax(0,1fr)); align-items: stretch; }
.solution-branch-title { display: flex; align-items: center; padding: 18px 20px; background: #f7faf8; font-weight: 700; }
.solution-branch { padding: 16px 20px; border-left: 1px solid #d9e1dd; }
.solution-branch b { display: block; margin-bottom: 4px; }
.solution-branch p { margin: 0; color: #74837c; font-size: 13px; line-height: 1.65; }
.solution-branch.is-new { position: relative; padding-top: 42px; background: #fff8ef; box-shadow: inset 0 0 0 2px #f59637; }
.solution-links { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.solution-link { min-height: 104px; padding: 18px; border: 1px solid #d9e1dd; background: #fff; text-decoration: none; }
.solution-link:hover { border-color: #1890ff; }
.solution-link.primary { border-color: #1890ff; background: #1890ff; color: #fff; }
.solution-link b { display: block; margin-bottom: 7px; font-size: 16px; }
.solution-link span { color: #74837c; font-size: 13px; line-height: 1.6; }
.solution-link.primary span { color: rgba(255,255,255,.86); }
@media (max-width: 850px) {
  .solution-home { padding: 18px 14px; }
  .solution-topline { align-items: flex-start; }
  .solution-steps { grid-template-columns: 1fr 1fr; }
  .solution-step:nth-child(3n) { border-right: 1px solid #d9e1dd; }
  .solution-step:nth-child(2n) { border-right: 0; }
  .solution-step:nth-child(n+3) { border-top: 1px solid #d9e1dd; }
  .solution-branches { grid-template-columns: 1fr; }
  .solution-branch { border-left: 0; border-top: 1px solid #d9e1dd; }
  .solution-links { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 190px minmax(680px, 1fr); }
  .permission-panel { position: fixed; }
}
