/* 项目画像页（web/onto-profile.js，.op-）。配色沿用 style.css 的变量。 */
.op-root{display:flex;flex-direction:column;gap:10px;min-width:0;font-size:13px;color:var(--ink)}
.op-root *:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.op-top{display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.op-top-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;min-width:0}
.op-sep{color:var(--faint)}
.op-spacer{flex:1}
.op-toggle{display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap}
.op-counts{display:inline-flex;flex-wrap:wrap;gap:10px;margin-left:8px}
.op-cnt b{font-size:15px}
.op-cnt-include b,.op-bigbox.op-cnt-include b{color:var(--ok)}
.op-cnt-tbc b,.op-bigbox.op-cnt-tbc b{color:var(--warn)}
.op-cnt-exclude b,.op-bigbox.op-cnt-exclude b{color:var(--muted)}
.op-delta{font-weight:600;color:var(--accent)}
.op-msg{padding:6px 10px;border-radius:6px;border:1px solid var(--line);background:var(--panel)}
.op-msg ul{margin:4px 0 0 18px;padding:0}
.op-msg-err{border-color:var(--err);color:var(--err)}
.op-msg-warn{border-color:var(--warn);color:var(--warn)}
.op-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;align-items:start;min-width:0}
.op-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.op-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:10px 12px;min-width:0}
.op-card h3{margin:0 0 8px;font-size:15px}
.op-card h4{margin:12px 0 6px;font-size:13px}
.op-muted{color:var(--muted);font-size:12px;font-weight:400}
.op-field{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;padding:6px 0;border-bottom:1px solid var(--line2)}
.op-fname{font-weight:600;display:flex;flex-direction:column;gap:2px}
.op-fval{min-width:0}
.op-fval select{max-width:100%;padding:3px 6px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink)}
.op-trust{font-size:11px;font-weight:400;color:var(--muted)}
.op-sub{margin:8px 0 4px;font-size:12px;color:var(--muted)}
.op-mods{display:flex;flex-direction:column;gap:2px}
.op-mod{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.op-mod label{display:inline-flex;gap:4px;align-items:center;cursor:pointer}
.op-deep{font-size:12px;color:var(--muted)}
.op-chips{display:flex;flex-wrap:wrap;gap:4px}
.op-chip{display:inline-flex;align-items:baseline;gap:4px;padding:2px 8px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font-size:12px;cursor:pointer}
.op-chip small{font-size:10px;color:var(--muted)}
.op-chip-on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}
.op-chip-off{text-decoration:line-through;color:var(--muted)}
span.op-chip{cursor:default}
.op-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.op-btn{padding:4px 12px;border:1px solid var(--line);border-radius:6px;background:var(--panel2);color:var(--ink);cursor:pointer;font-size:12px}
.op-btn:hover:not([disabled]){border-color:var(--accent)}
.op-btn[disabled]{opacity:.55;cursor:default}
.op-btn-pri{background:var(--accent);border-color:var(--accent);color:#fff}
.op-btn-ghost{background:none}
.op-qs{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
ul.op-qs{list-style:none;padding-left:0}
.op-q,.op-a{padding:6px 0;border-bottom:1px solid var(--line2)}
.op-qhead{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
.op-tag{font-size:11px;padding:0 6px;border:1px solid var(--line);border-radius:10px;color:var(--muted)}
.op-unl{font-size:12px;color:var(--warn)}
.op-why summary{cursor:pointer;font-size:12px;color:var(--muted)}
.op-why p{margin:4px 0;font-size:12px}
.op-opts{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-top:4px}
.op-opt{display:inline-flex;gap:4px;align-items:center;cursor:pointer}
.op-val{display:inline-block;margin-right:6px;padding:1px 6px;border-radius:4px;background:var(--accent-soft);color:var(--accent)}
.op-src{font-size:11px;padding:0 6px;border-radius:10px;border:1px solid var(--line)}
.op-src-man{border-color:var(--ok);color:var(--ok)}
.op-src-auto{color:var(--muted)}
.op-warn{font-size:12px;color:var(--warn);margin-left:6px}
.op-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin-bottom:8px}
.op-tabbtn{padding:5px 10px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);cursor:pointer;font-size:13px}
.op-tab-on{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.op-big{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.op-bigbox{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.op-bigbox b{font-size:24px}
.op-table{width:100%;border-collapse:collapse}
.op-table th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:4px 6px;border-bottom:1px solid var(--line)}
.op-table td{padding:4px 6px;border-bottom:1px solid var(--line2);vertical-align:top;overflow-wrap:anywhere}
.op-num{text-align:right;white-space:nowrap}
.op-code{font-family:ui-monospace,Menlo,monospace;font-size:12px;white-space:nowrap}
.op-scroll{overflow-x:auto;max-width:100%}
.op-proc{padding:4px 0;border-bottom:1px solid var(--line2)}
.op-proc summary{cursor:pointer}
.op-v{display:inline-block;font-size:11px;padding:0 6px;border-radius:10px;border:1px solid var(--line)}
.op-v-include{border-color:var(--ok);color:var(--ok)}
.op-v-tbc{border-color:var(--warn);color:var(--warn)}
.op-v-exclude{color:var(--muted)}
.op-objs,.op-rules,.op-diff{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px}
.op-objs a,.op-rules a,.op-diff a{color:var(--accent);overflow-wrap:anywhere}
.op-diffbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}
.op-diffbar select{max-width:100%}
@media (max-width:900px){
  .op-grid{grid-template-columns:minmax(0,1fr)}
  .op-field{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:420px){
  .op-big b{font-size:20px}
  .op-counts{margin-left:0}
}
/* ---------- 页面里新加的切换、闪烁、流程按钮 ---------- */
.op-seg{display:inline-flex;gap:0;margin:0 0 8px}
.op-seg .op-btn{border-radius:0}
.op-seg .op-btn:first-child{border-radius:6px 0 0 6px}
.op-seg .op-btn:last-child{border-radius:0 6px 6px 0;border-left:0}
.op-seg-on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}
.op-impbtn{margin-top:4px}
.op-flash{animation:op-flash 1.6s ease-out 1}
@keyframes op-flash{0%{background:var(--accent-soft)}100%{background:transparent}}
.op-procbtn{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;width:100%;padding:4px 0;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer;font-size:13px}
.op-procbtn:hover{color:var(--accent)}
.op-proc-open{padding-bottom:8px}
.op-swim{max-width:100%;overflow:auto}
.op-swim .sl-wrap{max-height:70vh}

/* ---------- 图（web/onto-profile-graph.js，.opg-） ---------- */
.opg-host{min-width:0}
.opg-bom{--opg-inc:var(--ok);--opg-inc-fill:#e6f4ee;--opg-tbc:#c27c00;--opg-tbc-fill:#fff4dc;--opg-exc:#9aa5b5;--opg-exc-fill:#f1f3f6;--opg-other-fill:#eef1f5;--opg-chg:var(--accent);
  display:flex;flex-direction:column;gap:8px;min-width:0}
.opg-chips{display:flex;flex-wrap:wrap;gap:6px}
.opg-chip{position:relative;display:inline-flex;align-items:baseline;gap:4px;padding:3px 10px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);font-size:12px;cursor:pointer}
.opg-chip small{margin-left:4px;font-size:11px;color:var(--muted)}
.opg-chip i{font-style:normal}
.opg-c-inc{color:var(--ok)}.opg-c-tbc{color:var(--warn)}.opg-c-exc{color:var(--muted)}
.opg-chip-on{border-color:var(--accent);background:var(--accent-soft)}
.opg-badge{position:absolute;top:-7px;right:-6px;min-width:16px;padding:0 4px;border-radius:8px;background:var(--accent);color:#fff;font-size:10px;line-height:16px;text-align:center}
.opg-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.opg-main{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:8px;min-width:0}
.op-grid-wide{grid-template-columns:minmax(0,1fr)}
.op-grid-wide>.op-col:last-child{order:-1}
.opg-bom{container-type:inline-size}
@container (max-width:720px){.opg-main{grid-template-columns:minmax(0,1fr)}.opg-panel{max-height:none}}
.opg-stage{position:relative;height:520px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel);touch-action:none;cursor:grab;min-width:0}
.opg-stage:active{cursor:grabbing}
.opg-empty{padding:16px}
.opg-svg{display:block;width:100%;height:100%;font-family:inherit;user-select:none}
.opg-colt{font-size:13px;font-weight:600;fill:var(--ink)}
.opg-colc{font-size:10.5px;fill:var(--muted)}
.opg-colh line{stroke:var(--line)}
.opg-colh-other .opg-colt{fill:var(--muted)}
.opg-e{fill:none;stroke:#b8c2cf;stroke-width:1.2;transition:opacity .12s}
.opg-e-tbc{stroke:var(--opg-tbc);stroke-dasharray:5 3}
.opg-e-exclude{stroke:var(--opg-exc);stroke-dasharray:2 3}
.opg-e.opg-chg{stroke:var(--opg-chg);stroke-width:2}
.opg-n{cursor:pointer;transition:opacity .12s}
.opg-n:focus{outline:none}
.opg-box{stroke-width:1.2}
.opg-n-include .opg-box{fill:var(--opg-inc-fill);stroke:var(--opg-inc)}
.opg-n-tbc .opg-box{fill:var(--opg-tbc-fill);stroke:var(--opg-tbc);stroke-dasharray:5 3;stroke-width:1.6}
.opg-n-exclude{opacity:.55}
.opg-n-exclude .opg-box{fill:var(--opg-exc-fill);stroke:var(--opg-exc)}
.opg-n-other .opg-box{fill:var(--opg-other-fill);stroke:#a7b1bf}
.opg-n-other.opg-n-tbc .opg-box{stroke:var(--opg-tbc)}
.opg-nt{font-size:12px;fill:var(--ink)}
.opg-ns{font-size:10px;fill:var(--muted);font-family:var(--mono)}
.opg-n-other .opg-nt{fill:var(--muted)}
.opg-ring{fill:none;stroke:var(--opg-chg);stroke-width:2;animation:opg-pulse 1.4s ease-in-out 3}
@keyframes opg-pulse{0%,100%{stroke-opacity:1}50%{stroke-opacity:.2}}
.opg-svg.opg-dim .opg-n:not(.opg-on),.opg-svg.opg-dim .opg-e:not(.opg-on){opacity:.18}
.opg-n.opg-on .opg-box{stroke-width:2.2}
.opg-e.opg-on{stroke:var(--accent);stroke-width:2;opacity:1}
.opg-n.opg-sel .opg-box,.opg-n:focus-visible .opg-box{stroke:var(--accent);stroke-width:2.4}
.opg-panel{border:1px solid var(--line);border-radius:8px;background:var(--panel2);padding:8px 10px;min-width:0;max-height:520px;overflow:auto;font-size:12px}
.opg-panel h5{margin:10px 0 4px;font-size:12px}
.opg-ph{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.opg-ph b{font-size:14px;overflow-wrap:anywhere}
.opg-x{margin-left:auto;padding:0 8px}
.opg-id{color:var(--faint);font-size:11px;font-family:var(--mono);overflow-wrap:anywhere;margin-top:2px}
.opg-why,.opg-list{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:3px}
.opg-why li,.opg-list li{overflow-wrap:anywhere}
.opg-dir{color:var(--muted)}
.opg-dps{display:flex;flex-wrap:wrap;gap:4px}
.opg-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.opg-links a{color:var(--accent)}
.opg-legend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:12px;color:var(--muted)}
.opg-legend span{display:inline-flex;align-items:center;gap:4px}
.opg-sw{display:inline-block;width:16px;height:10px;border-radius:3px;border:1px solid}
.opg-sw-include{background:var(--opg-inc-fill);border-color:var(--opg-inc)}
.opg-sw-tbc{background:var(--opg-tbc-fill);border:1.5px dashed var(--opg-tbc)}
.opg-sw-exclude{background:var(--opg-exc-fill);border-color:var(--opg-exc);opacity:.6}
.opg-sw-other{background:var(--opg-other-fill);border-color:#a7b1bf}
.opg-sw-chg{background:none;border:2px solid var(--opg-chg)}
.opg-chgline{color:var(--accent)}
/* 确认点影响图 */
.opg-impact{margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);min-width:0}
.opg-impact p{margin:0 0 6px}
.opg-fanbox{max-width:100%;overflow:auto;border-radius:6px;background:var(--panel)}
.opg-fan{display:block;font-family:inherit}
.opg-fan-e{fill:none;stroke:#b8c2cf;stroke-width:1.4}
.opg-fan-dp rect{fill:var(--accent-soft);stroke:var(--accent);stroke-width:1.4}
.opg-fan-dpt{font-size:13px;font-weight:600;fill:var(--ink)}
.opg-fan-dps{font-size:11px;fill:var(--muted)}
.opg-opt{cursor:pointer}
.opg-opt rect{fill:var(--panel);stroke:var(--line)}
.opg-opt text{font-size:11px;fill:var(--ink)}
.opg-opt:hover rect,.opg-opt:focus rect{stroke:var(--accent)}
.opg-opt:focus{outline:none}
.opg-opt-on rect{fill:var(--accent);stroke:var(--accent)}
.opg-opt-on text{fill:#fff}
.opg-fan-g rect{fill:var(--panel);stroke:var(--line)}
.opg-fan-gh{font-size:12px;font-weight:600;fill:var(--ink)}
.opg-fan-i{font-size:11.5px}
.opg-w-tbc{fill:var(--opg-tbc,#c27c00)}
.opg-w-include{fill:var(--ok);font-weight:600}
.opg-w-exclude{fill:#9aa5b5;text-decoration:line-through}
.opg-fan-more{font-size:11px;fill:var(--muted)}
.opg-impact-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:6px}
@media (max-width:900px){
  .opg-main{grid-template-columns:minmax(0,1fr)}
  .opg-panel{max-height:none}
  .opg-stage{height:440px}
}
@media (max-width:420px){
  .opg-stage{height:380px}
}
