/* Build Kit (spike): same tokens as the atlas, its own layout. */
.bv-body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.bv-imp { display: flex; gap: 6px; flex: 1; max-width: 560px; }
.bv-imp input { flex: 1; min-width: 0; }
.bv { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--bv-l, 58%) minmax(360px, 1fr); position: relative; }
/* drag the line between build and tree; double-click resets */
.bv-rsz { position: absolute; top: 0; bottom: 0; left: calc(var(--bv-l, 58%) - 5px); width: 9px; z-index: 6; cursor: ew-resize; }
.bv-rsz::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; transition: background .15s; }
.bv-rsz:hover::after, .bv-rsz.on::after { background: var(--gold-dim); }
.bv.notree .bv-rsz { display: none; }
.bv.notree { grid-template-columns: 1fr; }
.bv.notree .bv-tree { display: none; }
.bv-left { overflow: auto; padding: 18px 22px 40px; border-right: 1px solid var(--line); }
.bv-head h1 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 2px; color: var(--head); }
.bv-head { margin-bottom: 18px; flex: 1; min-width: 0; }
.bv-top { display: flex; gap: 14px; align-items: flex-start; }
.bv-top #editBtn { margin-top: 6px; flex: none; }
.bv-fold { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; border-radius: 0; padding: 0; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.bv-fold::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.bv-fold:hover, .bv-fold:active { color: var(--head); background: none; border-color: transparent; }
.bv-fold:focus-visible { outline: 1px solid var(--gold-dim, currentColor); outline-offset: 2px; }
.bv.nogear .bv-fold::after { transform: rotate(-45deg); }
.bv.nogear .bv-gear { flex-basis: 100%; }
.bv.nogear .bv-gear > :not(.bv-fold) { display: none; }
.bv-cols { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.bv-cols > div > .caps, .doll-sub .caps { margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.bv-gems { flex: 1; min-width: 300px; }
/* cells shrink on phones so the whole doll (weapon swap included) fits the screen */
.doll { --c: min(48px, calc((100vw - 64px) / 8 - 4px)); display: grid; grid-template-columns: repeat(8, var(--c)); grid-template-rows: repeat(8, var(--c)); gap: 4px; }
.bslot { position: relative; background: var(--inset); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bslot.none { opacity: .45; }
.bslot img { max-width: 92%; max-height: 92%; object-fit: contain; }
.bslot:not(.empty):hover { border-color: var(--accent-dim); background: var(--hover); }
.bslot.r-unique { border-color: #7a4f24; } .bslot.r-rare { border-color: #6b6224; } .bslot.r-magic { border-color: #33407a; }
.socks { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.socks i { width: 9px; height: 9px; border: 1px solid var(--muted); transform: rotate(45deg); background: var(--bg); }
.socks i.full { background: var(--accent-dim); border-color: var(--accent); }
.doll-sub { margin-top: 14px; }
.jrow { display: flex; gap: 4px; margin-bottom: 12px; }
.jrow .bslot { width: min(48px, calc((100vw - 64px) / 8 - 4px)); aspect-ratio: 1; height: auto; }
/* item card */
.tip.bv-item { padding: 0; max-width: 380px; background: #05070ef2; }
.ic-h { text-align: center; padding: 7px 12px; font-family: var(--display); font-size: 15px; line-height: 1.3; border-bottom: 1px solid var(--line2); }
.ic-h.r-unique { color: #d48b43; } .ic-h.r-rare { color: #e5d468; } .ic-h.r-magic { color: #8f9dff; } .ic-h.r-normal { color: var(--text); }
.ic-b { padding: 8px 12px 10px; text-align: center; font-size: 12.5px; line-height: 1.5; color: #9aa3ff; }
.ic-b > div + div { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.ic-p { color: var(--muted); } .ic-p b { color: var(--text); font-weight: 400; }
.ic-r { color: var(--accent); }
.m-ench { color: #b8c9ff; } .m-frac { color: #c9a86a; } .m-desc { color: #c08de0; } .m-craft { color: #9fd8ff; }
.ic-c { color: var(--down); }
/* skills */
#gems { columns: 270px; column-gap: 12px; }
.gcard { break-inside: avoid; border: 1px solid var(--line); background: var(--panel); padding: 7px 10px 8px; margin-bottom: 10px; }
.gcard.off { opacity: .5; }
.gem { display: flex; align-items: center; gap: 7px; line-height: 1.25; padding: 2px 0; }
.gem img { width: 20px; height: 20px; flex: none; }
.gem.lead img { width: 26px; height: 26px; }
.gem.lead .gn { color: var(--head); font-size: 14px; }
.gem.lead + .gem.lead { margin-top: 6px; }
.gem.sup { padding-left: 14px; font-size: 13px; }
.gem.sup .gn { color: var(--text); }
.gem.sup::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none; background: var(--dim); margin-right: -2px; }
.gem.sup.g-str::before { background: #d9605a; } .gem.sup.g-dex::before { background: #6ec46a; } .gem.sup.g-int::before { background: #6c93e8; }
.gem.sup img { display: none; }
.gem.off .gn { text-decoration: line-through; color: var(--dim); }
.gl { margin-left: auto; color: var(--muted); font-size: 12px; }
.gdot { width: 26px; height: 26px; border: 1px solid var(--line2); }
.gsrc { margin-top: 4px; }
.bv-notes { margin-top: 22px; }
.bv-notes pre { white-space: pre-wrap; font: inherit; color: var(--text); }
/* tree */
.bv-tree { position: relative; background: var(--stage-bg); min-width: 0; overflow: hidden; }
#treeSvg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; transform-origin: 0 0; will-change: transform; }
#treeSvg.drag { cursor: grabbing; }
.t-edge { stroke: var(--edge); stroke-width: 9; fill: none; }
.t-edge.on { stroke: var(--edge-on); stroke-width: var(--ew, 20px); }
.tn.on > .nb { transform: scale(var(--as, 1)); }
.t-edge.on.ws1 { stroke: var(--ws1); } .t-edge.on.ws2 { stroke: var(--ws2); }
.t-edge.dim { stroke-opacity: .25; }
.tn .tb { fill: var(--node-off); stroke: none; }
.tn .tf { fill: none; stroke: var(--line2); stroke-width: 6; }
.tn image { opacity: .35; }
.tn.k-notable .tf, .tn.k-keystone .tf { stroke-width: 9; }
.tn.on image { opacity: 1; }
.tn.on .tf { stroke: var(--accent); stroke-width: 10; }
.tn.on.k-notable .tf, .tn.on.k-keystone .tf, .tn.on.k-jewel .tf { stroke: var(--gold); stroke-width: 12; }
.tn.on.ws1 .tf { stroke: var(--ws1); } .tn.on.ws2 .tf { stroke: var(--ws2); }
.tn.dim { opacity: .3; }
.tn.k-small:not(.on) .tb, .tn.k-attr:not(.on) .tb { fill: #121a33; }
.tn.on .tb { fill: #0d1530; }
.tn .ta { fill: var(--bright); font-size: 26px; text-anchor: middle; font-family: var(--body); font-weight: 600; pointer-events: none; }
.tn.mark .tf { stroke: var(--bright); stroke-width: 18; }
.tn:hover .tf { stroke: var(--bright); }
#treeSvg.far .tn:not(.on) image { display: none; }
.t-ascart { opacity: .6; pointer-events: none; }
.t-frame { pointer-events: none; opacity: .5; }
/* class starts are the frame's sockets: no icon, the own one gets a ring */
#tBig .tb.k-start { fill: transparent; stroke: none; }
#tBig .tb.k-start.on { stroke: var(--gold); stroke-width: 12; }
.diffing .t-ascart { opacity: .3; }
.bv-tlegend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 14px; font-size: 12px; color: var(--muted); background: var(--glass); padding: 5px 10px; border: 1px solid var(--line); }
.bv-tlegend b { color: var(--text); font-weight: 600; }
.bv-tlegend .lg1 b { color: var(--ws1); } .bv-tlegend .lg2 b { color: var(--ws2); }
@media (max-width: 1100px) {
  .bv-body { height: auto; overflow: auto; }
  .bv { grid-template-columns: 1fr; }
  .bv-tree { height: 70vh; }
  .bv-rsz { display: none; }
  .bv-left { border-right: 0; }
}
/* editing */
#treeSvg, .bv-left { user-select: none; -webkit-user-select: none; }
#treeSvg.pt { cursor: pointer; }
#treeSvg.drag { cursor: grabbing; }
.t-soff { fill: none; stroke: #121a33; stroke-width: 46; stroke-linecap: round; }
.t-soff.ring { stroke: var(--line2); stroke-width: 58; }
#tBig .tb { fill: var(--node-off); stroke: var(--line2); stroke-width: 9; }
#tBig .tb + image { opacity: .35; pointer-events: none; }
#tBig .tb.on { stroke: var(--gold); stroke-width: 12; }
#tBig .tb.on + image { opacity: 1; }
#tBig .tb.on, #tBig .tb.on + image { transform-box: fill-box; transform-origin: center; transform: scale(var(--as, 1)); }
#tBig .tb.on.ws1 { stroke: var(--ws1); } #tBig .tb.on.ws2 { stroke: var(--ws2); }
#tBig .tb.dim, #tBig .tb.dim + image { opacity: .3; }
#treeSvg.far #tBig .tb:not(.on) + image { display: none; }
.tn.ws1 .tf { stroke: var(--ws1); } .tn.ws2 .tf { stroke: var(--ws2); }
#tHover { fill: none; stroke: var(--bright); stroke-width: 6; pointer-events: none; }
#tMark { fill: none; stroke: var(--gold); stroke-width: 14; pointer-events: none; animation: pulse 0.8s infinite; }
#treeSvg image, #treeSvg text { pointer-events: none; }
.bv-fit { position: absolute; right: 12px; bottom: 10px; background: var(--glass); }
.bslot.ghost img { opacity: .18; filter: grayscale(1); }
body.editing .bslot { cursor: pointer; }
body.editing .bslot.none { opacity: .8; border-style: dashed; border-color: var(--line2); }
body.editing .bslot.none:hover { border-color: var(--gold-dim); }
body.editing .bv-tree { box-shadow: inset 0 0 0 1px var(--gold-dim); }
.ic-alt { color: var(--dim); font-size: 11px; text-align: center; padding: 0 12px 8px; }
.ic-i .ic-alt { padding: 2px 0 0; }
.tip-ed { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line); color: var(--gold); font-size: 11px; }
.bv-pop { position: fixed; z-index: 80; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 10px 30px #000a; padding: 10px; width: 330px; }
.bv-pop textarea { width: 100%; margin: 8px 0; font: 12px/1.4 ui-monospace, monospace; color: var(--text); background: var(--inset); border: 1px solid var(--line2); padding: 6px; resize: vertical; }
.pop-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pop-b button.on { border-color: var(--gold); color: var(--gold); }
.bv-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--panel2); border: 1px solid var(--gold-dim); padding: 8px 14px; font-size: 13px; max-width: 90vw; }

/* gem editing */
.gadd, .gnew { display: none; }
body.editing .gadd { display: block; margin: 6px 0 0 14px; padding: 2px 8px; color: var(--muted); }
body.editing .gnew { display: block; margin-bottom: 10px; }
body.editing .gem { cursor: pointer; }
body.editing .gem:hover .gn { color: var(--gold); }
.gp-row { display: flex; gap: 12px; margin: 8px 0 4px; }
.gp-row label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.gp-row input { width: 58px; }
.gp-s { width: 100%; margin: 8px 0 6px; }
.gp-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; }
.gp-it { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 0; background: none; text-align: left; padding: 4px 6px; color: var(--text); }
.gp-it:hover { background: var(--hover); }
.gp-it img { width: 22px; height: 22px; flex: none; }
.gp-it .gdot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; margin: 0 4px; }
.gp-it.g-str .gdot { background: #d9605a; } .gp-it.g-dex .gdot { background: #6ec46a; } .gp-it.g-int .gdot { background: #6c93e8; }

/* my builds */
.mb-list { display: flex; flex-direction: column; margin-top: 6px; max-height: 360px; overflow-y: auto; }
.mb-row { display: flex; align-items: center; gap: 6px; }
.mb-open { flex: 1; text-align: left; border: 0; border-radius: 0; background: none; padding: 5px 6px; color: var(--text); }
.mb-open:hover { background: var(--hover); }
.mb-del { color: var(--dim); }
.mb-del:hover { color: var(--down); }
.gem .gx { display: none; margin-left: auto; border: 0; background: none; padding: 0 4px; color: var(--down); font-size: 15px; line-height: 1; }
body.editing .gem.sup:hover .gx { display: block; }
.gp-h { font-size: 11px; color: var(--muted); padding: 8px 6px 3px; }
.gp-h:first-child { padding-top: 2px; }

/* loadouts / sets */
.bv-setrow { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bv-sets { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.bv-sets select { max-width: 260px; }
.bv-me { display: inline-flex; align-items: center; gap: 6px; }
.bv-me img { width: 18px; height: 18px; border-radius: 50%; }

/* changes vs another loadout: green added, red removed */
.bv-diff { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.bv-diff b { font-weight: 600; }
.bv-diff .dim { color: var(--dim); }
.d-add { color: var(--up); } .d-del { color: var(--down); }
.d-tag { font-size: 10px; padding: 1px 4px; line-height: 1.3; background: var(--bg); border: 1px solid currentColor; }
.gcard.d-add > .d-tag { color: var(--up); }
.gcard.d-del > .d-tag { color: var(--down); }
.gcard { position: relative; }
.gcard > .d-tag { display: inline-block; margin: 0 0 5px; }
.gcard.d-add { border-color: var(--up); }
.gcard.d-del { border: 1px dashed var(--down); background: none; }
.gem.d-add .gn { color: var(--up) !important; }
.gem.d-add.sup::before { background: var(--up); }
.gem.d-del .gn { color: var(--down) !important; text-decoration: line-through; text-decoration-thickness: 1px; }
.gem.d-del img { opacity: .4; filter: grayscale(1); }
.gem.d-del.sup::before { background: var(--down); }
.t-edge.on.d-add { stroke: var(--up); }
.t-edge.d-del { stroke: var(--down); stroke-width: var(--ew, 20px); stroke-dasharray: 40 26; stroke-opacity: .9; }
.tn.on.d-add .tf { stroke: var(--up) !important; }
.t-gone { fill: none; stroke: var(--down); stroke-width: 14; }
#tBig .tb.on.d-add { stroke: var(--up); }
#tBig .tb.d-del { stroke: var(--down); stroke-width: 12; }

/* weapon sets: yellow and pink, so green/red stay free for the changes view */
:root { --ws1: #ff3fa4; --ws2: #e3cf4a; }   /* set 1 hot pink: the soft pink read as the normal path */
#wsSeg button[data-ws="1"] { color: var(--ws1); } #wsSeg button[data-ws="2"] { color: var(--ws2); }
#wsSeg button[data-ws="1"].on { box-shadow: inset 0 -2px 0 var(--ws1); } #wsSeg button[data-ws="2"].on { box-shadow: inset 0 -2px 0 var(--ws2); }
/* added inside a weapon set: set colour, green outline */
.t-addout { stroke: var(--up); stroke-width: calc(var(--ew, 20px) + 18px); fill: none; }
.t-newring { fill: none; stroke: var(--up); stroke-width: 10; pointer-events: none; }
/* changes view: what didn't change steps back */
.diffing #treeSvg .t-edge.on:not(.d-add):not(.d-keep) { stroke-opacity: .3; }
.diffing .tn.on:not(.d-add) { opacity: .4; }
.diffing #tBig .tb.on:not(.d-add), .diffing #tBig .tb.on:not(.d-add) + image { opacity: .4; }
.diffing .gcard:not(.d-add) .gem:not(.d-add):not(.d-del):not(.pinned) { opacity: .45; }
.diffing .gem:hover { opacity: 1; }
/* tree search */
.bv-find { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--line); padding: 3px 8px 3px 3px; }
.bv-find input { width: 200px; border: 0; background: transparent; }
#tFindN { font-size: 12px; color: var(--muted); min-width: 1ch; }
#treeSvg.searching #tvp > :not(#tHits):not(#tMark):not(#tHover) { opacity: .25; }
.t-hit { fill: none; stroke: var(--gold); stroke-width: 14; pointer-events: none; }

/* pinned notes: a red (i) on the gem, item or node; noted gear is framed */
.pin-i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--down); color: #fff; font: italic 700 10px/1 Georgia, serif; margin-left: 6px; vertical-align: middle; }
.bslot .pin-i { position: absolute; top: 3px; right: 3px; margin: 0; width: 16px; height: 16px; font-size: 11px; }
.bslot.pinned { border-color: var(--down) !important; box-shadow: 0 0 0 1px var(--down); }
.gem.pinned { box-shadow: inset 2px 0 0 var(--down); margin-left: -10px; padding-left: 10px; }
.t-pin { pointer-events: none; }
.t-pin-s { transform: scale(var(--pk, 1)); }  /* same size on screen at any zoom */
.t-pin circle { fill: var(--down); stroke: var(--bg); stroke-width: 4; }
.t-pin text { fill: #fff; font: italic 700 24px Georgia, serif; text-anchor: middle; }
.tip-pins { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.tip-pin { display: flex; gap: 7px; align-items: flex-start; color: var(--text); }
.tip-pin .pin-i { margin: 2px 0 0; }
.pin-list { display: grid; gap: 2px; margin-top: 10px; }
.pin-row { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 8px; align-items: baseline; padding: 5px 6px; cursor: pointer; border: 1px solid transparent; }
.pin-row:hover { border-color: var(--line); background: var(--hover); }
.pin-row .pin-i { margin: 0; align-self: center; }
.pin-row .pin-t { grid-column: 2 / -1; white-space: pre-wrap; color: var(--text); }
.pin-sugs { margin-top: 14px; display: grid; gap: 6px; }
.pin-sug { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 5px 0; border-top: 1px dashed var(--line); }
.pin-sug .pin-t { color: var(--muted); }
.pin-sug button { flex: none; }
.pin-hint { margin-top: 10px; }
.pn-lo { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.pn-btns { margin-top: 10px; gap: 8px; }
.bv-pop textarea#pnT { width: 100%; min-width: 280px; }
.flash { outline: 2px solid var(--down); outline-offset: 2px; transition: outline-color .8s; }
.bv-cmp { position: absolute; right: 64px; bottom: 10px; background: var(--glass); }
.bv-cmp.on { color: var(--up); border-color: var(--up); }

/* PoB's exported stats */
.bv-stats { margin-top: 26px; }
.bv-stats.folded > :not(.st-head) { display: none; }
.bv-stats.folded .bv-fold::after { transform: rotate(-45deg); }
.st-head { margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.st-src { text-transform: none; letter-spacing: 0; color: var(--dim); margin-left: 6px; }
.st-grid { display: grid; gap: 6px; }
.st-grid.stale { opacity: .55; }
.st-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: baseline; }
.st-h { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cells { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.st { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px; }
.st-l { color: var(--muted); font-size: 12px; }
.st b { font-weight: 600; color: var(--head); font-variant-numeric: tabular-nums; }
.st-s { color: var(--dim); font-size: 11px; }
.st-fire b { color: #e0735a; } .st-cold b { color: #6fa8dc; } .st-light b { color: #e3cf4a; } .st-chaos b { color: #c77ad6; }
.st.st-bad b { color: var(--down); }
.st-away { font-size: 13px; }
.st-go { background: none; border: 0; padding: 0; font: inherit; color: var(--gold, var(--head)); text-decoration: underline; cursor: pointer; }
.st-skill { color: var(--head); font-family: var(--display); font-size: 14px; }

/* weapon DPS: on the slot, and at the top of the item card */
.dps-b { position: absolute; top: 3px; display: flex; align-items: baseline; left: 50%; transform: translateX(-50%); padding: 1px 6px; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--gold-dim); color: var(--head); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; z-index: 2; }
.jrow .dps-b { font-size: 10px; padding: 0 3px; top: 1px; }
.ic-dps { padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid var(--line2); font-size: 12.5px; }
.ic-dps-t { font-size: 15px; color: var(--head); } .ic-dps-t b { font-size: 18px; font-weight: 600; }
.dm-fire b { color: #e0735a; } .dm-cold b { color: #6fa8dc; } .dm-lightning b { color: #e3cf4a; } .dm-chaos b { color: #c77ad6; }
.dps-b small { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.dps-b em { font-style: normal; font-size: 10px; margin-left: 4px; }

/* loadout stepping + the quiet tree picker */
.bv-lo { gap: 4px; } .bv-lo > .caps { margin-right: 4px; }
.lo-step { width: 28px; height: 30px; padding: 0; border: 1px solid var(--line2) !important; font-size: 18px; line-height: 1; }
.lo-step:disabled { opacity: .3; cursor: default; }

/* regex fields */
.rx-block { margin-bottom: 22px; }
.rx-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.rx-add { font-size: 11px; padding: 2px 8px; }
.rx-row { display: grid; grid-template-columns: minmax(70px, auto) 1fr auto; gap: 10px; align-items: center; padding: 4px 0; }
.rx-l { color: var(--head); font-size: 13px; }
.rx-v { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text); background: var(--inset); border: 1px solid var(--line); padding: 4px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.rx-v:hover { border-color: var(--line2); }
.rx-block.big .rx-row { grid-template-columns: 1fr auto; }
.rx-block.big .rx-l { grid-column: 1 / -1; }
.rx-block.big .rx-copy { padding: 8px 16px; }
#rxL, #rxT { width: 100%; margin-bottom: 6px; }
#rxT { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* run mode: the left column swaps to the loadout's steps; the tree stays */
body.running .bv-left > :not(#run) { display: none; }
body.running .bv-left { padding-top: 12px; }
.run > * { max-width: 620px; }
.run-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.run-top .lo-step { width: 44px; height: 48px; font-size: 24px; flex: none; }
.run-lo { flex: 1; min-width: 0; text-align: center; }
.run-lo h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 1px 0; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-sec { border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; margin-bottom: 10px; }
.run-sec > .caps { margin-bottom: 6px; }
.run-sec .caps .muted { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.run-sec .rx-block { margin: 0; }
.rn-row { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.rn-row:first-of-type { border-top: 0; }
.rn-row:hover .rn-n { text-decoration: underline; }
.rn-k { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--up); color: #06120b; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.rn-via { color: var(--muted); font-size: 12.5px; }
.rn-n { color: var(--head); font-weight: 600; }
.rn-n.k-keystone { color: var(--gold); }
.rn-set { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.rn-set.s1 { background: var(--ws1); } .rn-set.s2 { background: var(--ws2); }
.rn-asc, .rn-gone { margin-top: 6px; font-size: 13px; }
.rn-asc .caps, .rn-gone .caps { margin-right: 6px; }
.rn-note { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 13.5px; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 14px; }
.rg-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; min-width: 0; font-size: 13px; }
.rg-row > b { color: var(--head); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.rg-row.add > b { color: var(--up); }
.rg-row.gone > b { color: var(--down); text-decoration: line-through; }
.rg-sups { display: flex; gap: 2px; margin-left: auto; flex: none; }
.rg-i { width: 22px; height: 22px; flex: none; display: inline-flex; border: 1px solid transparent; }
.rg-i img { width: 100%; height: 100%; object-fit: contain; }
.rg-row > .rg-i { width: 26px; height: 26px; }
.rg-i.nw { border-color: var(--up); box-shadow: 0 0 0 1px var(--up); }
.rg-i.gone { opacity: .45; border-color: var(--down); }
.rw-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rw-dps { margin-left: auto; font-size: 13px; color: var(--muted); } .rw-dps b { font-size: 18px; color: var(--head); }
/* the list's numbers on the tree, same size on screen at any zoom */
.t-step { pointer-events: none; }
.t-step-s { transform: scale(var(--pk, 1)); }
.t-step circle { fill: var(--up); stroke: var(--bg); stroke-width: 4; }
.t-step text { fill: #06120b; font: 700 20px system-ui, sans-serif; text-anchor: middle; }
/* the tree picker sits on the tree */
.bv-treepick { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 8px; opacity: .6; transition: opacity .15s; z-index: 3; background: var(--glass); border: 1px solid var(--line); padding: 3px 3px 3px 10px; }
.bv-treepick select { border: 0; }
.bv-treepick:hover, .bv-treepick:focus-within { opacity: 1; }
.bv-treepick select { max-width: 200px; color: var(--muted); background: var(--glass); }
@media (max-width: 1100px) {
  body.running .bv-tree { order: -1; height: 48vh; }
}
@media (max-width: 700px) {
  .bv-treepick { top: 52px; left: 12px; right: auto; }
  body.running .bv-tlegend { display: none; }
}
@media (max-width: 700px) {
  body.running .top .bv-imp, body.running #wsSeg, body.running #treeBtn, body.running #codeBtn, body.running #shareBtn, body.running #mineBtn, body.running #resetBtn { display: none; }
}
.rg-row .d-tag { color: var(--up); } .rg-row .d-tag.d-del { color: var(--down); }

@media (max-width: 700px) { .bv-theme > span { display: none; } }
