/* nx-kit Tier B · charts */
.nx-pc { width: min(22rem, 100%); color: #22c55e; }
.nx-pc.is-down { color: #ef4444; }
.nx-pc-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .4rem; }
.nx-pc-head strong { color: var(--text); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nx-pc-head span { font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.nx-pc svg { display: block; width: 100%; height: 8rem; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.nx-pc-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nx-pc-x { stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0; }
.nx-pc-dot { fill: currentColor; stroke: var(--bg); stroke-width: 2; opacity: 0; }
.nx-pc.is-reading .nx-pc-x, .nx-pc.is-reading .nx-pc-dot { opacity: 1; }
.nx-pc-ranges { display: flex; gap: .25rem; margin-top: .5rem; }
.nx-pc-ranges button { flex: 1; padding: .35rem 0; border-radius: 8px; font-size: .75rem; font-weight: 800; color: var(--muted); transition: background-color .2s, color .2s; }
.nx-pc-ranges button.is-active { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }

.nx-sb { width: min(22rem, 100%); }
.nx-sb-read { display: flex; align-items: baseline; gap: .5rem; }
.nx-sb-read strong { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-sb-read span { color: var(--muted); font-size: .82rem; }
.nx-sb-cols { display: flex; align-items: flex-end; gap: .45rem; height: 8.5rem; margin: .7rem 0 .4rem; }
.nx-sb-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: default; }
.nx-sb-stack { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; border-radius: 6px; transition: filter .2s; }
.nx-sb-stack i { display: block; border-radius: 4px; height: 0; transition: height .55s cubic-bezier(.3, 1.2, .5, 1); }
.nx-sb-col small { color: var(--muted); font-size: .66rem; font-weight: 700; }
.nx-sb-cols:hover .nx-sb-col:not(:hover) .nx-sb-stack { filter: saturate(.3) opacity(.45); }
.nx-sb-key { display: flex; flex-wrap: wrap; gap: .35rem; }
.nx-sb-key button { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); transition: opacity .2s; }
.nx-sb-key button i { width: .55rem; height: .55rem; border-radius: 3px; }
.nx-sb-key button.is-off { opacity: .4; text-decoration: line-through; }

.nx-bc { width: min(20rem, 100%); padding: 1rem; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--text) 6%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); cursor: pointer; outline: none; }
.nx-bc:focus-visible { box-shadow: inset 0 0 0 1.5px var(--purple); }
.nx-bc-top small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.nx-bc-top strong { display: block; font-size: 1.5rem; font-weight: 800; }
.nx-bc-bar { display: flex; gap: 3px; height: .75rem; margin-top: .7rem; }
.nx-bc-bar i { border-radius: 4px; transition: opacity .25s, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.nx-bc[data-lit] .nx-bc-bar i:not(.is-lit) { opacity: .25; }
.nx-bc-bar i.is-lit { transform: scaleY(1.45); }
.nx-bc-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s cubic-bezier(.2, .8, .2, 1), opacity .25s, margin .3s; }
.nx-bc.is-open .nx-bc-key { max-height: 14rem; opacity: 1; margin-top: .8rem; }
.nx-bc-key li { display: flex; align-items: center; gap: .55rem; padding: .35rem .4rem; border-radius: 8px; font-size: .82rem; cursor: default; }
.nx-bc-key li:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.nx-bc-key li i { width: .6rem; height: .6rem; border-radius: 3px; flex: 0 0 auto; }
.nx-bc-key li b { margin-left: auto; font-variant-numeric: tabular-nums; }

.nx-pf { display: inline-flex; font: 800 2.2rem/1.1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: color .4s; }
.nx-pf span { display: inline-block; }
.nx-pf span.is-new { animation: nx-pf-in .45s calc(var(--i) * 45ms) both cubic-bezier(.2, .8, .2, 1); }
.nx-pf.is-up { color: #22c55e; } .nx-pf.is-down { color: #ef4444; }

.nx-heat { position: relative; width: 100%; height: 9rem; cursor: pointer; touch-action: pan-y; }
.nx-heat canvas { display: block; }

.nx-swarm { width: min(22rem, 100%); }
.nx-swarm-read { font-size: .85rem; color: var(--muted); }
.nx-swarm-read strong { color: var(--text); font-size: 1.3rem; font-weight: 800; margin-right: .2rem; }
.nx-swarm-cols { position: relative; display: flex; height: 8rem; margin-top: .4rem; }
.nx-swarm-cols::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
.nx-swarm-col { position: relative; flex: 1; cursor: default; }
.nx-swarm-col i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 999px; background: color-mix(in srgb, var(--purple) 80%, var(--text)); transform: translate(var(--x), var(--y)); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), background-color .2s; }
.nx-swarm-col:hover i { transform: translate(calc(var(--x) * 1.6), calc(var(--y) * 1.35)) scale(1.5); background: var(--text); }
.nx-swarm-axis { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); font-weight: 700; }

.nx-hr { width: min(22rem, 100%); user-select: none; }
.nx-hr-head { display: flex; align-items: baseline; gap: .4rem; }
.nx-hr-head strong { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-hr-head small { color: var(--muted); font-weight: 700; }
.nx-hr-head em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nx-hr-heart { align-self: center; color: #ef4444; font-size: 1.3rem; animation: nx-beat 1s ease-in-out infinite; }
@keyframes nx-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.nx-hr svg { display: block; width: 100%; height: 5.5rem; margin-top: .5rem; cursor: ew-resize; touch-action: pan-y; overflow: visible; }
.nx-hr path { fill: none; stroke: #ef4444; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.nx-hr line { stroke: var(--text); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
/* Business Overview (guild/business.ejs) kit panel */
.biz-kit { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.biz-kit > .biz-panel-head { grid-column: 1 / -1; }
.biz-kit .nx-pc, .biz-kit .nx-bc { width: 100%; }
@media (max-width: 900px) { .biz-kit { grid-template-columns: minmax(0, 1fr); } }
