/* PanKbase house palette, read from pankbase.org CSS.
   Brand colours carry the interface; the data palette is separate and validated
   (lightness band, chroma floor, CVD >= 8, normal-vision >= 15, contrast >= 3:1). */
:root{
  --navy:#16324f; --brand:#219197; --link:#175cd3;
  --ground:#f6f9fd; --surface:#fff; --surface-2:#edf0f7; --tint:#e8f1fb;
  --ink:#1f2937; --ink-2:#4e4e4e; --ink-3:#6b7280; --rule:#d9e6f5; --hair:#e8ecf3;
  --warn:#c78720;
  --t-gene:#0f9a7e; --t-disease:#1f6fc4; --t-chemical:#e0661f; --t-species:#b8336a;
  --t-other:#6b7280;
  --sans:"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --rail:262px; --insp:380px;
}
@media (prefers-color-scheme:dark){:root{
  --navy:#0c1826; --brand:#2fa8ae; --link:#6aa6f0;
  --ground:#121a24; --surface:#18222e; --surface-2:#1f2b39; --tint:#1a2836;
  --ink:#e7edf3; --ink-2:#a9b6c2; --ink-3:#7d8b99; --rule:#2a3846; --hair:#222e3c;
  --warn:#d99b2f;
  --t-gene:#30a67f; --t-disease:#2a71d8; --t-chemical:#b5652f; --t-species:#c23575;
  --t-other:#8593a1;
}}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
/* The height chain has to be unbroken: a percentage height resolves against an auto
   parent as auto, which collapsed the canvas to the SVG default of 300x150 and drew
   the whole graph in the top-left corner. Flex links avoid the percentage entirely. */
/* Vue 2 replaces the mount element with the component's root, so #app is not in
   the DOM after mount and rules written against it never applied. The root itself
   carries the class. dvh first so a mobile browser's collapsing toolbar does not
   leave a gap, with vh as the fallback. */
.shell{height:100vh;height:100dvh;display:flex;flex-direction:column;min-height:0}
body{background:var(--ground);color:var(--ink);font:14px/1.5 var(--sans);
  overflow:hidden}
kbd{font:500 10px var(--mono);background:var(--surface-2);border:1px solid var(--rule);
  border-bottom-width:2px;border-radius:3px;padding:1px 4px;color:var(--ink-2)}
button{font:inherit;cursor:pointer}
.ghost{background:var(--surface);border:1px solid var(--rule);color:var(--ink);
  border-radius:5px;padding:5px 10px}
.ghost:hover{background:var(--tint)}
.primary{background:var(--brand);border:1px solid var(--brand);color:#fff;
  border-radius:5px;padding:6px 12px;font-weight:600}
.primary:disabled{opacity:.45;cursor:not-allowed}
.wide{width:100%;text-align:left}
.linkish{background:none;border:0;color:var(--link);padding:0;
  text-decoration:underline;text-underline-offset:2px}
a{color:var(--link)}

/* header */
.bar{height:48px;flex:none;background:var(--navy);color:#fff;display:flex;
  align-items:center;gap:12px;padding:0 14px}
/* The project's full title lives here, so it must degrade rather than push the
   status and help button off the bar: one line, ellipsis, whole string on hover. */
.brand{font-weight:700;display:flex;align-items:center;gap:8px;min-width:0;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.92rem}
.brand .dot{flex:none}
.dot{width:9px;height:9px;border-radius:50%;background:var(--brand);flex:none}
.bsub{font-size:.76rem;opacity:.72}
.bspacer{flex:1}
.status{font:400 11px var(--mono);opacity:.8}
.bar .ghost{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22);
  color:#fff;padding:3px 9px}

/* layout */
.app{display:grid;grid-template-columns:var(--rail) minmax(0,1fr) var(--insp);
  flex:1;min-height:0}
.rail,.inspector{background:var(--surface);overflow-y:auto;min-height:0}
.rail{border-right:1px solid var(--hair);display:flex;flex-direction:column}
.inspector{border-left:1px solid var(--hair);padding:14px}
.sec{padding:13px 14px;border-bottom:1px solid var(--hair)}
/* The rail is a flex column, so by default every section shrinks to fit and the
   controls get squashed instead of the rail scrolling - opening the ranking panel
   compressed the sections above and below it until their text was unreadable.
   Sections keep their natural height and the rail scrolls; only .grow absorbs any
   slack that is left. */
.rail>.sec{flex:0 0 auto}
.rail>.sec.grow{flex:1 1 auto;min-height:0;border-bottom:0}
.sec.grow{border-bottom:0}
.sec label{display:block;font:700 10.5px var(--sans);letter-spacing:.08em;
  text-transform:uppercase;color:var(--ink-3);margin-bottom:7px}
.sec label.chk{display:flex;gap:7px;align-items:center;text-transform:none;
  letter-spacing:0;font-weight:400;font-size:.82rem;color:var(--ink-2);margin:8px 0 0}
.hint{font-size:.75rem;color:var(--ink-3);margin:7px 0 0;line-height:1.45}
.pinhint{border-bottom:2px solid var(--warn)}

/* search - the main way in, so it is the one control that reads as a control.
   The rules here were written against #q, and the input has a ref, not an id: the
   field rendered with no styling at all for as long as that selector has existed.
   Same for #yslider and #rawCypher below. Classes only, now, and a test refuses any
   id selector that no template defines. */
.searchwrap{position:relative}
.sfield{display:flex;align-items:center;gap:7px;padding:0 9px;height:38px;
  border:1.5px solid var(--rule);border-radius:7px;background:var(--surface);
  transition:border-color .12s,box-shadow .12s}
.sfield:hover{border-color:color-mix(in oklab,var(--brand) 45%,var(--rule))}
.sfield.focused,.sfield:focus-within{border-color:var(--brand);
  box-shadow:0 0 0 3px color-mix(in oklab,var(--brand) 18%,transparent)}
.sfield .sicon{flex:none;color:var(--ink-3)}
.sfield:focus-within .sicon{color:var(--brand)}
.sfield input{flex:1;min-width:0;border:0;background:none;padding:0;
  color:var(--ink);font:400 13.5px var(--sans)}
.sfield input:focus{outline:none}
.sfield input::placeholder{color:var(--ink-3)}
.skey{flex:none;font:500 10px var(--mono);color:var(--ink-3);border:1px solid var(--rule);
  border-radius:3px;padding:1px 5px;background:var(--ground)}
.sclear{flex:none;border:0;background:none;color:var(--ink-3);font-size:17px;
  line-height:1;padding:0 2px;cursor:pointer}
.sclear:hover{color:var(--ink)}

/* Fixed, not absolute: the rail scrolls, and a scroll container clips an absolutely
   positioned child that reaches past it. Coordinates come from the input's own
   rectangle, recomputed on scroll and resize. */
.hits{position:fixed;z-index:60;background:var(--surface);
  border:1px solid var(--rule);border-radius:7px;overflow:auto;
  box-shadow:0 10px 28px rgba(22,50,79,.18)}
.hits button{display:flex;gap:8px;align-items:flex-start;width:100%;
  text-align:left;background:none;border:0;padding:7px 10px;color:var(--ink);
  font:400 13px var(--sans);cursor:pointer}
.hits button:hover,.hits button.on{background:var(--tint)}
.hits button>svg{flex:none;margin-top:3px}
/* Two lines, each clipping on its own. One line with the name competing against a
   right-aligned meta column overflowed instead of shrinking - a flex item will not
   go below its content width without min-width:0 - and the name painted over the
   type and the paper count. */
.hits .snm{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
/* The name is the point of the row, so it wraps rather than being cut: two rows
   both reading "Diabete..." are indistinguishable, which defeats the search. */
.hits .sline{min-width:0}
.hits .sline b{font-weight:600;overflow-wrap:anywhere}
.hits .smeta .pill{margin-left:6px;vertical-align:1px}
/* a hit found through a surface form says which one: "IgA" -> CD79A is the finding,
   not a detail to hide */
.hits .smeta{font:400 10px var(--mono);color:var(--ink-3);overflow-wrap:anywhere}
/* the empty and error panels sit where a row would; give them a row's padding */
.hits .pad{margin:0;padding:9px 11px}


/* years */
.years{display:flex;gap:6px;align-items:center}
.years input{width:100%;padding:5px 7px;border:1px solid var(--rule);border-radius:4px;
  background:var(--ground);color:var(--ink);font:400 12px var(--mono)}
.yslider{width:100%;margin-top:8px;accent-color:var(--brand)}
/* a small segmented control; same shape as .presets but exclusive */
.seg{display:flex;gap:0;margin-top:2px;border:1px solid var(--rule);
  border-radius:5px;overflow:hidden}
.seg button{flex:1;font:400 11px var(--sans);padding:4px 6px;border:0;
  background:var(--surface);color:var(--ink-2);cursor:pointer;white-space:nowrap}
.seg button+button{border-left:1px solid var(--rule)}
.seg button[aria-pressed=true]{background:var(--brand);color:#fff;font-weight:600}

.presets{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}
.presets button{font:400 10.5px var(--mono);padding:3px 7px;border:1px solid var(--rule);
  background:var(--surface);border-radius:3px;color:var(--ink-2)}
.presets button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);
  color:#fff}

/* chips */
.chips{display:flex;gap:5px;flex-wrap:wrap}
.chip{display:flex;gap:5px;align-items:center;font-size:.78rem;padding:3px 8px;
  border:1px solid var(--rule);border-radius:99px;background:var(--surface);
  color:var(--ink-2)}
.chip[aria-pressed=false]{opacity:.4}
.chip i{width:9px;height:9px;border-radius:2px;display:inline-block;flex:none}
.chip svg{flex:none}
/* The legend and the type filter listed the same nine types twice, so the chips now
   carry the glyph the canvas actually draws and the legend section is gone. */
.lbl-note{float:right;font-weight:400;text-transform:none;letter-spacing:0;
  color:var(--ink-3);font-size:9.5px}

/* stage */
.stage{display:flex;flex-direction:column;min-width:0;min-height:0;
  position:relative;overflow:hidden}
.crumbs{height:34px;display:flex;align-items:center;gap:5px;padding:0 12px;
  border-bottom:1px solid var(--hair);background:var(--surface);overflow-x:auto;
  white-space:nowrap;font-size:.78rem;color:var(--ink-3)}
.crumbs button{background:none;border:0;color:var(--link);padding:2px 3px;
  font:inherit;border-radius:3px}
.crumbs button:hover{background:var(--tint)}
.crumbs .sep{color:var(--ink-3);opacity:.6}
.canvaswrap{flex:1;position:relative;min-height:0;min-width:0;
  background:var(--ground);overflow:hidden}
/* the element has a Vue ref, not an id - select it structurally */
.canvaswrap>svg{position:absolute;inset:0;width:100%;height:100%;display:block;
  cursor:grab}
.canvaswrap>svg:active{cursor:grabbing}
.ctools{position:absolute;right:12px;bottom:12px;display:flex;flex-direction:column;
  gap:5px}
.ctools .ghost{width:32px;height:30px;padding:0;font-size:15px;line-height:1}
.empty{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;
  color:var(--ink-3);text-align:center;padding:20px}
/* The first screen of the published build, so it reads as an invitation rather
   than as a graph that failed to draw - which is how a bare canvas was read. */
.empty .start{pointer-events:auto;background:var(--surface);
  border:1px solid var(--hair);border-radius:10px;padding:20px 22px;
  max-width:min(540px,90vw);box-shadow:0 6px 24px rgba(22,50,79,.08)}
.empty .start h2{margin:0 0 4px;font:700 1rem var(--sans);color:var(--navy)}
.empty .start p{margin:0;font-size:.84rem;color:var(--ink-2)}
.empty .start .hint{margin-top:12px;padding-top:11px;
  border-top:1px solid var(--hair);line-height:1.5}
/* label column / buttons column, so the chips line up across groups instead of
   each row starting at its own label's width */
.startgrid{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;
  margin-top:12px;text-align:left;align-items:start}
.stype{display:flex;align-items:center;gap:6px;font:600 .72rem var(--sans);
  color:var(--ink-3);text-transform:uppercase;letter-spacing:.04em;
  padding-top:7px;white-space:nowrap}
.sdot{width:8px;height:8px;border-radius:50%;flex:none}
.startrow{display:flex;flex-wrap:wrap;gap:6px}
.seedbtn{font:600 .82rem var(--sans);padding:6px 12px;border-radius:6px;
  border:1px solid var(--brand);background:var(--surface);color:var(--brand);
  cursor:pointer}
.seedbtn:hover{background:var(--brand);color:#fff}
.empty p{pointer-events:auto;background:var(--surface);border:1px solid var(--hair);
  border-radius:6px;padding:14px 18px;max-width:440px}

/* tooltip */
.tip{position:absolute;z-index:30;pointer-events:none;background:var(--navy);
  color:#fff;border-radius:5px;padding:7px 10px;font-size:.78rem;max-width:320px;
  box-shadow:0 6px 18px rgba(0,0,0,.24);line-height:1.45}
.tip b{color:#fff}
.tip .k{opacity:.72;font:400 10px var(--mono)}

/* cypher drawer */
.cypher{border-top:1px solid var(--hair);background:var(--surface)}
.cyphead{width:100%;display:flex;justify-content:space-between;align-items:center;
  background:none;border:0;padding:8px 12px;color:var(--ink-2);
  font:600 11px var(--sans);letter-spacing:.06em;text-transform:uppercase}
.caret{transition:transform .15s}
.cyphead[aria-expanded=true] .caret{transform:rotate(90deg)}
/* Bounded, so opening the drawer cannot take the canvas's space; it scrolls
   inside itself instead. */
.cyphbody{padding:0 12px 12px;max-height:38vh;overflow-y:auto}
.cyphbody pre{margin:0 0 8px;font:400 11.5px/1.55 var(--mono);background:var(--ground);
  border:1px solid var(--hair);border-radius:5px;padding:9px 11px;overflow:auto;
  max-height:150px;color:var(--ink-2);white-space:pre-wrap}
.rawcypher{width:100%;font:400 11.5px var(--mono);border:1px solid var(--rule);
  border-radius:5px;padding:7px 9px;background:var(--ground);color:var(--ink);
  resize:vertical}
.row{display:flex;gap:9px;align-items:center;margin-top:7px}
.rawout{margin-top:9px;max-height:190px;overflow:auto;border:1px solid var(--hair);
  border-radius:5px}

/* inspector */
.insEmpty{color:var(--ink-3);font-size:.85rem}
.keys{margin:10px 0 0;padding-left:16px;line-height:1.9;font-size:.8rem}
.ihead{display:flex;gap:9px;align-items:flex-start;margin-bottom:3px}
.ihead h2{font-size:1.06rem;margin:0;line-height:1.25;word-break:break-word}
.imeta{font:400 11px var(--mono);color:var(--ink-3);margin-bottom:9px;
  display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.links{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 12px}
.links a{font-size:.74rem;padding:3px 8px;border:1px solid var(--rule);
  border-radius:99px;text-decoration:none;background:var(--surface);color:var(--link)}
.links a:hover{background:var(--tint)}
.links a::after{content:" ↗";font-size:.68rem;opacity:.65}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--hair);margin-bottom:11px}
.tabs button{background:none;border:0;border-bottom:2px solid transparent;
  padding:6px 9px;color:var(--ink-3);font:600 11px var(--sans);
  letter-spacing:.05em;text-transform:uppercase}
.tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:.82rem;
  margin-bottom:12px}
.kv dt{color:var(--ink-3)}
.kv dd{margin:0;font-family:var(--mono);font-size:.78rem;word-break:break-word}
.ilist{list-style:none;margin:0;padding:0}
.ilist li{padding:6px 0;border-bottom:1px solid var(--hair);font-size:.82rem;
  display:flex;gap:8px;align-items:baseline;cursor:pointer}
.ilist li:hover{background:var(--tint)}
.ilist .n{margin-left:auto;font:400 11px var(--mono);color:var(--ink-3)}
.sent{border-left:2px solid var(--brand);padding:7px 0 7px 10px;margin:0 0 10px;
  font-size:.84rem;line-height:1.55;background:var(--ground);border-radius:0 4px 4px 0}
.sent mark{background:color-mix(in oklab,var(--brand) 22%,transparent);
  color:inherit;padding:0 1px;border-radius:2px;font-weight:600}
.sent .src{display:block;margin-top:5px;font:400 10.5px var(--mono);color:var(--ink-3)}
.pill{font:500 10px var(--mono);padding:1px 6px;border-radius:99px;
  background:var(--surface-2);color:var(--ink-2)}
.pill.rel{background:color-mix(in oklab,var(--brand) 18%,transparent);color:var(--brand)}
.warnbox{background:color-mix(in oklab,var(--warn) 12%,transparent);
  border:1px solid color-mix(in oklab,var(--warn) 40%,transparent);
  border-radius:5px;padding:8px 10px;font-size:.78rem;color:var(--ink-2);margin:9px 0}
table.mini{width:100%;border-collapse:collapse;font-size:.78rem}
table.mini th,table.mini td{padding:4px 7px;text-align:left;
  border-bottom:1px solid var(--hair);white-space:nowrap}
table.mini th{font:700 10px var(--mono);color:var(--ink-3);text-transform:uppercase;
  background:var(--surface-2);position:sticky;top:0}
table.mini td.n{text-align:right;font-family:var(--mono)}

/* modal */
.modal{position:fixed;inset:0;background:rgba(10,20,32,.45);display:grid;
  place-items:center;z-index:60}
.sheet{background:var(--surface);border-radius:8px;padding:20px 22px;min-width:320px;
  box-shadow:0 20px 50px rgba(0,0,0,.3)}
.sheet h3{margin:0 0 12px;font-size:1rem}
.sheet table{border-collapse:collapse;font-size:.84rem;margin-bottom:14px}
.sheet td{padding:4px 12px 4px 0}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}
@media (max-width:1180px){:root{--rail:220px;--insp:320px}}

/* ---- added with the interaction fixes ---- */
.canvaswrap .busy{position:absolute;left:12px;top:12px;z-index:25;
  background:var(--surface);border:1px solid var(--rule);border-radius:99px;
  padding:3px 11px;font:500 11px var(--mono);color:var(--ink-3)}
.pathpick{display:flex;flex-direction:column;gap:6px}
.endpoint{display:flex;align-items:center;gap:7px;border:1px solid var(--rule);
  border-radius:5px;padding:5px 8px;margin-bottom:5px;background:var(--ground);
  font-size:.82rem}
.endpoint.set{border-color:var(--brand);background:var(--tint)}
.endpoint .tag{font:700 10px var(--mono);width:14px;color:var(--ink-3)}
.endpoint.set .tag{color:var(--brand)}
.endpoint .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;color:var(--ink-2)}
.endpoint.set .nm{color:var(--ink);font-weight:600}
.endpoint .x{background:none;border:0;color:var(--ink-3);font-size:15px;
  line-height:1;padding:0 2px}
.endpoint .x:hover{color:var(--fail,#9B3724)}

/* The inspector is one unbroken flex column: header blocks keep their height, the
   scrolling region takes whatever is left. An earlier version capped the scroller at
   52vh, which is unrelated to the space actually available and left a dead band under
   short evidence lists. */
.inspector{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.inspector>div{flex:1;min-height:0;display:flex;flex-direction:column}
.inspector>div>.ihead,.inspector>div>.imeta,.inspector>div>.links,
.inspector>div>.row,.inspector>div>.kv,.inspector>div>.warnbox,
.inspector>div>label,.inspector>div>h2,.inspector>div>p,
.inspector>div>.pathlist,.inspector>div>ol{flex:none}
.evid{display:flex;flex-direction:column;min-height:0;flex:1}
.evid>.tabs{flex:none}
.evidscroll{flex:1;min-height:0;overflow-y:auto;padding:0 4px 14px 0}
.tabs{position:sticky;top:0;background:var(--surface);z-index:2}
.tabs .cnt{margin-left:5px;font:400 10px var(--mono);color:var(--ink-3)}
.tabs button[aria-selected=true] .cnt{color:var(--brand)}
/* the node branch's connection list scrolls the same way */
.connwrap{flex:1;min-height:0;display:flex;flex-direction:column}
.connwrap>label{flex:none}
.connwrap>.ilist{flex:1;min-height:0;overflow-y:auto;padding-right:4px}
.ilist li{white-space:normal}
.ilist li a{overflow-wrap:anywhere}
.ilist .n{flex:none;white-space:nowrap}

/* relation polarity, kept distinct from the categorical series colours */
.pill.pos{background:color-mix(in oklab,#0f9a7e 18%,transparent);color:#0b7a63}
.pill.neg{background:color-mix(in oklab,#b8336a 18%,transparent);color:#9e2b5b}
.pill.neutral{background:var(--surface-2);color:var(--ink-2)}
@media (prefers-color-scheme:dark){
  .pill.pos{color:#4cc3a2} .pill.neg{color:#e06a9b}
}
.pathlist{list-style:none;margin:0 0 10px;padding:0}
.pathlist li{display:flex;gap:8px;align-items:center;padding:5px 0;
  border-bottom:1px solid var(--hair);font-size:.86rem}
.pathlist li:last-child{border-bottom:0}
.tsel{width:100%;padding:5px 7px;border:1px solid var(--rule);border-radius:4px;
  background:var(--ground);color:var(--ink);font:400 12px var(--sans)}
.toplist{list-style:none;margin:8px 0 0;padding:0;max-height:min(46vh,340px);
  overflow-y:auto;overscroll-behavior:contain}
.toplist li{display:flex;gap:7px;align-items:center;padding:4px 2px;cursor:pointer;
  border-bottom:1px solid var(--hair);font-size:.8rem}
.toplist li:hover{background:var(--tint)}
.toplist .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.toplist .n{font:500 11px var(--mono);color:var(--ink-3)}
.hits .pill{font:500 9px var(--mono);padding:1px 5px;border-radius:99px;
  background:color-mix(in oklab,var(--brand) 18%,transparent);color:var(--brand)}

/* ---- year strip ---- */
/* A fixed height, deliberately. The strip is the canvas's sibling in a flex
   column: any change to its height re-lays out the graph, so a caption that grew a
   line or a band that appeared made the whole force layout jump. Everything inside
   it is sized to add up to this number. */
/* 11 padding + 22 head + 70 plot + 15 caption. The caption sat outside a 106px
   box and was clipped by overflow:hidden - present in the DOM, invisible. */
.tstrip{flex:0 0 auto;height:124px;box-sizing:border-box;overflow:hidden;
  border-top:1px solid var(--hair);background:var(--surface);padding:7px 12px 4px}
.thead{display:flex;align-items:baseline;gap:10px;margin-bottom:5px}
/* The name is what the strip is about, so it gets the room. A 40% cap truncated
   "Diabetic Nephropathies" to "Diabetic Neph..." while a fixed-width year box sat
   beside it with space to spare; the box shrinks now and the name does not. */
.thead .tt{font-weight:700;font-size:.84rem;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;flex:0 1 auto;min-width:0}
.thead .tsub{font:400 11px var(--mono);color:var(--ink-3)}
.thead .tspacer{flex:1}
.thead .tsel{font:500 11px var(--mono);color:var(--brand);flex:none;
  white-space:nowrap}
.thead .tsub{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.ghost.tiny{padding:2px 8px;font-size:.72rem;border-radius:4px}
/* 44 bars + 1 + 13 band + 16 years. The trim overlay stops above the year
   row and the row sits on top of everything, because the overlay covered the
   labels it was drawn beside. */
.plot{position:relative;height:74px;cursor:crosshair;user-select:none}
.plot .bars{width:100%;height:44px;display:block;overflow:visible}
.bar{fill:var(--ink-3);opacity:.75}
.bar.out{opacity:.2}
.bar.burst{fill:var(--warn)}
.wband{fill:var(--tint)}
.shareline{fill:none;stroke:var(--brand);stroke-width:1.5;opacity:.85}
/* the two ends of the span, dragged like the ends of a clip */
.trim{position:absolute;inset:0 0 16px 0;pointer-events:none;z-index:2}
.trim__band{position:absolute;top:0;bottom:0;pointer-events:auto;cursor:grab;
  border-top:2px solid var(--brand);border-bottom:2px solid var(--brand);
  background:color-mix(in oklab,var(--brand) 7%,transparent)}
.trim__band:active{cursor:grabbing}
.trim__h{position:absolute;top:0;bottom:0;width:14px;margin-left:-7px;
  pointer-events:auto;cursor:ew-resize;display:flex;align-items:flex-start;
  justify-content:center}
.trim__h i{display:block;width:3px;height:100%;border-radius:2px;
  background:var(--brand)}
.trim__h span{position:absolute;top:-1px;font:500 9.5px var(--mono);color:#fff;
  background:var(--brand);border-radius:3px;padding:0 4px;white-space:nowrap;
  opacity:0;transition:opacity .12s}
.trim__h:hover span,.trim__h:active span{opacity:1}
.trim__h.left span{left:6px}
.trim__h.right span{right:6px}
.trim__h:hover i,.trim__h:active i{width:5px}

.ticks{position:relative;height:16px;z-index:3;pointer-events:none}
.ticks span{position:absolute;transform:translateX(-50%);font:400 10px var(--mono);
  background:var(--surface);padding:0 3px;border-radius:2px;
  color:var(--ink-3);top:1px}
.tcursor{position:absolute;top:0;bottom:16px;width:1px;background:var(--brand);
  pointer-events:none}
.tcursor .tbox{position:absolute;top:-2px;left:6px;white-space:nowrap;
  background:var(--navy);color:#fff;font:400 10.5px var(--mono);padding:2px 6px;
  border-radius:3px}
/* one line, clipped, with the full text in the tooltip */
.thint{margin:1px 0 0;font-size:.7rem;color:var(--ink-3);line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:help}

/* ---- error bar ---- */
.errbar{display:flex;align-items:center;gap:10px;padding:8px 12px;flex:none;
  background:color-mix(in oklab,#9B3724 12%,var(--surface));
  border-bottom:1px solid color-mix(in oklab,#9B3724 40%,transparent);
  font-size:.82rem}
.ewhere{font-weight:500;opacity:.8}
.errbar .ei{width:18px;height:18px;border-radius:50%;flex:none;display:grid;
  place-items:center;background:#9B3724;color:#fff;font:700 12px var(--sans)}
.errbar .etext{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.errbar .etext b{color:var(--ink)}
.errbar .etext span{color:var(--ink-2);font-size:.76rem;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
@media (prefers-color-scheme:dark){
  .errbar{background:color-mix(in oklab,#D4735C 14%,var(--surface));
    border-bottom-color:color-mix(in oklab,#D4735C 40%,transparent)}
  .errbar .ei{background:#D4735C;color:#12181f}
}

/* ---- path hops ---- */
/* The hop rows exist so a step can be opened without hitting a one-pixel line on
   the canvas, which was the only way in before. */
.hoplist{list-style:none;margin:0;padding:0}
.hoplist li{padding:7px 8px;border:1px solid var(--hair);border-radius:6px;
  margin-bottom:6px;cursor:pointer;background:var(--bg)}
.hoplist li:hover{background:var(--tint);border-color:var(--brand)}
.hoplist li.on{border-color:var(--brand);
  box-shadow:inset 0 0 0 1px var(--brand);background:var(--tint)}
.hoplist li:focus-visible{outline:2px solid var(--link);outline-offset:1px}
.hoprow{display:flex;gap:6px;align-items:center;font-size:.82rem}
.hoprow .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hoprow .ar{color:var(--ink-3)}
.hoprow .n{margin-left:auto;font:500 11px var(--mono);color:var(--ink-3)}
.hopmeta{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:5px}
.hopmeta .hint{margin:0}
.ghost.back{margin:0 0 10px;font-size:.78rem}

/* the years MeSH has not caught up with, and the polarity composition band */
.lagband{fill:color-mix(in oklab,var(--warn) 9%,transparent)}
.polband{display:block;width:100%;height:13px;margin-top:1px}
.polband .pneg{fill:#1f6fc4}
.polband .ppos{fill:#e0661f}
.swatch{display:inline-block;width:8px;height:8px;border-radius:2px;
  vertical-align:-1px;margin:0 1px}
.swatch.pneg{background:#1f6fc4}
.swatch.ppos{background:#e0661f}

/* what the last Expand did, and the way back out of it */
/* the row for whatever the pointer is on, wherever the pointer is */
.pill.unpin{border:0;cursor:pointer;font:inherit}
.pill.unpin:hover{background:color-mix(in oklab,var(--warn) 30%,transparent)}

.ilist li.on{background:var(--tint);box-shadow:inset 2px 0 0 var(--brand)}
/* A connection row over two lines: the partner, then what is actually asserted.
   A "REL" badge said only that something existed, which is the one thing the
   reader could already see from the edge being solid. */
.ilist .cnm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ilist .cline{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ilist .cmeta{display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.ilist .cmeta .hint{margin:0;font-size:.68rem}
.ilist .cmeta .pill{font:500 9px var(--mono);padding:1px 5px}
/* the list is complete now, so it scrolls rather than being cut at 25 */
.connwrap .ilist{max-height:min(38vh,330px);overflow-y:auto;overscroll-behavior:contain}
/* the remaining partners, by type, each one a way to add just that kind */
.tchip{display:inline-flex;gap:4px;align-items:center;font:400 10.5px var(--mono);
  padding:2px 7px;margin:3px 3px 0 0;border:1px solid var(--rule);border-radius:99px;
  background:var(--surface);color:var(--ink-2);cursor:pointer}
.tchip:hover{border-color:var(--brand);background:var(--tint);color:var(--ink)}

/* the panel when nothing is selected: guidance, not a blank column - and not the
   edge view rendering against a null link, which threw and blanked the whole panel */
.inspector .empty{padding:2px 0;color:var(--ink-2)}
.inspector .empty kbd{font:500 10px var(--mono);border:1px solid var(--rule);
  border-radius:3px;padding:1px 4px;background:var(--ground)}

.undobar{display:flex;gap:8px;align-items:center;margin:0 0 10px;padding:6px 8px;
  border:1px solid color-mix(in oklab,var(--warn) 40%,transparent);border-radius:6px;
  background:color-mix(in oklab,var(--warn) 10%,transparent);
  font-size:.76rem;color:var(--ink-2)}
.undobar span{flex:1}
.undobar .ghost{flex:none}
