/* 图表选择、阅读摘要与紧凑筛选。保留现有坐标及主题 token。 */
:root .at-controls-compact { gap:8px; min-width:0; grid-template-columns:minmax(0,1fr); }
:root .at-controls-compact .at-control-row,:root .at-controls-compact .at-direction-filters,:root .at-refine { min-width:0; max-width:100%; }
:root .at-controls-compact .at-control-row { gap:12px 18px; }
:root .at-controls-compact .at-direction-filters { gap:6px; }
:root .at-controls-compact .at-direction-filters button { padding:7px 12px; min-height:38px; font-size:13px; }
:root .at-controls-compact .at-mode { flex-shrink:0; }
:root .at-controls-compact .at-mode button { padding:7px 12px; min-height:34px; font-size:13px; }
.at-refine { font-size:12px; color:var(--muted); }
.at-refine>summary { display:list-item; width:fit-content; cursor:pointer; padding:5px 0; }
.at-refine[open]>summary { color:var(--blue); }
:root .at-refine .at-search { margin:9px 0 2px; max-width:560px; min-width:0; }
.at-selection-summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 24px; border-top:1px solid var(--line); background:var(--surface); animation:atlas-selection-enter .18s ease-out; }
.at-selection-summary>div { min-width:0; }
.at-selection-summary span { display:inline-block; margin-right:9px; font-size:11px; color:var(--muted); }
.at-selection-summary strong { font-size:16px; font-weight:650; }
.at-selection-summary p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:4px; max-width:78ch; color:var(--muted); font-size:12px; line-height:1.75; }
.at-selection-summary button { flex:none; border:1px solid var(--line); background:var(--surface-raised); color:var(--blue); border-radius:6px; padding:8px 11px; font-size:12px; }
:root .at-space-tooltip { width:230px; max-width:calc(100% - 24px); white-space:normal; }
:root .at-space-tooltip small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.55; font-size:10px; margin-top:3px; }
:root .at-space-tooltip strong { line-height:1.4; }
:root .af-company-compact { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 0; }
:root .af-company-compact .af-company-select { font-size:12px; color:var(--muted); }
:root .af-company-compact .af-company-select select { max-width:min(280px,52vw); min-height:38px; background:var(--surface); color:var(--ink); border-color:var(--line); }
.af-company-context { display:flex; align-items:center; gap:10px; min-width:0; }
.af-company-context .nx-logo { width:30px; height:30px; flex:none; }
.af-company-context strong { display:block; font-size:14px; }
.af-company-context small { display:block; font-size:11px; color:var(--muted); line-height:1.6; }
:root .af-filters { gap:12px; margin-top:0; padding-block:0 16px; }
:root .af-tools { padding-block:18px 12px; }
.af-selection-hint { padding:12px 25px; font-size:12px; color:var(--muted); border-top:1px solid var(--line); }
.af-selection-summary { margin:0; padding:20px 25px; border-top:1px solid var(--line); background:var(--surface-tint); animation:atlas-selection-enter .18s ease-out; scroll-margin-top:100px; }
.af-selection-summary>div>span { font-size:11px; color:var(--muted); }
.af-selection-summary h3 { margin-top:4px; font-size:18px; line-height:1.5; overflow-wrap:anywhere; }
.af-selection-summary h3 i { color:var(--blue); font-style:normal; padding-inline:5px; }
.af-selection-people { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.af-selection-people button { display:grid; grid-template-columns:30px 1fr; gap:0 8px; text-align:left; padding:9px 12px; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--ink); min-width:150px; }
.af-selection-people button>span { grid-row:span 2; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--surface-tint); color:var(--blue); font-size:10px; }
.af-selection-people strong { font-size:12px; }
.af-selection-people small { color:var(--muted); font-size:10px; }
.af-selection-people button:hover { border-color:var(--blue); }
.af-selection-actions { display:flex; gap:20px; margin-top:14px; }
.af-selection-actions button { padding:0; background:transparent; border:0; font-size:12px; color:var(--blue); }
.af-page[data-selected-edge] .af-graph-edge:not(.is-selected) { opacity:.2; }
.af-page[data-selected-edge] .af-graph-edge:not(.is-selected):is(:hover,:focus) { opacity:.85; }
.af-page[data-selected-edge] .af-graph-edge:not(.is-selected) .af-edge-pulse { animation-play-state:paused; opacity:0; }
.af-page[data-selected-edge] .af-graph-node.is-selected .af-node-label { text-decoration:underline; text-underline-offset:4px; }
.af-graph-edge { transition:opacity .18s ease-out; }
.af-page[data-playback=off] .af-edge-pulse { animation-play-state:paused; }
.af-unobserved { padding:35px; margin:8px 0 24px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.af-unobserved h2 { font-size:24px; }
.af-unobserved p { max-width:60ch; color:var(--muted); font-size:14px; margin-top:12px; }
.af-unobserved button { background:var(--action); color:var(--on-action); border:0; border-radius:6px; padding:10px 15px; font-size:13px; margin-top:20px; }
.af-leader-card h3 button { width:100%; display:flex; justify-content:space-between; gap:10px; text-align:left; padding:0; font:inherit; color:inherit; background:transparent; border:0; }
.af-leader-card h3 button>span { font-size:15px; opacity:.7; }
.af-leader-card h3 button:hover { text-decoration:underline; text-underline-offset:5px; }
.af-leader-card:focus-within { outline:2px solid var(--blue); outline-offset:3px; }
@keyframes atlas-selection-enter { from{opacity:.4} to{opacity:1} }
@media(max-width:700px){
  :root .at-controls-compact .at-control-row { align-items:stretch; }
  :root .at-controls-compact .at-mode { width:100%; }
  :root .at-controls-compact .at-mode button { flex:1; }
  .at-selection-summary { padding:15px; align-items:flex-start; gap:12px; }
  .at-selection-summary button { font-size:11px; padding:6px 8px; }
  .at-selection-summary p { -webkit-line-clamp:3; }
  :root .af-company-compact { flex-wrap:wrap; gap:12px; }
  .af-company-context { width:100%; }
  :root .af-company-compact .af-company-select { justify-content:space-between; width:100%; }
  :root .af-company-compact .af-company-select select { max-width:70%; flex:1; }
  .af-selection-summary { padding:17px; }
  .af-selection-summary h3 { font-size:16px; }
  .af-selection-people button { min-width:0; flex:1 1 150px; }
  .af-unobserved { padding:24px; }
}
@media(prefers-reduced-motion:reduce){
  .at-selection-summary,.af-selection-summary { animation:none; }
  .af-graph-edge { transition:none; }
  .af-edge-pulse { animation:none!important; }
}
