/* The ripperdoc's body chart (plugins/nfbody.js): a wireframe body with its implant slots, and a side panel. */
.nfb-wrap { position: fixed; inset: 0; z-index: 1140; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(2, 4, 10, 0.72); }
.nfb-frame { width: min(900px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px;
    background: #0d1219; border: 1px solid #263244; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(94, 231, 255, 0.1);
    color: #dfe9f3; font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif; }
.nfb-top { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; background: linear-gradient(#18202b, #121821);
    border-bottom: 1px solid #263244; }
.nfb-title { font: bold 14px "Consolas", monospace; letter-spacing: 3px; color: #5ee7ff; }
.nfb-doc { flex: 1; min-width: 0; color: #9fb3c8; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nfb-credits { color: #ffd166; font: 13px "Consolas", monospace; }
.nfb-note { padding: 6px 14px; font: 13px "Consolas", monospace; }
.nfb-note.ok { color: #6dffa8; background: rgba(109, 255, 168, 0.08); }
.nfb-note.bad { color: #ff6b5c; background: rgba(255, 107, 92, 0.08); }
.nfb-body { display: flex; gap: 14px; padding: 14px; min-height: 0; overflow-y: auto; }
.nfb-fig { position: relative; flex: none; width: 260px; }
.nfb-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 6px rgba(94, 231, 255, 0.35)); }
.nfb-spot { position: absolute; transform: translate(-7px, -50%); display: flex; align-items: center; gap: 5px; padding: 0; border: 0;
    background: none; cursor: pointer; color: #9fb3c8; }
.nfb-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #5f7584; background: #0d1219; box-shadow: 0 0 0 3px rgba(13, 18, 25, 0.7); }
.nfb-spot.full .nfb-dot { border-color: #5ee7ff; background: #5ee7ff; box-shadow: 0 0 10px #5ee7ff; }
.nfb-spot.on .nfb-dot { border-color: #ff3ea5; background: #ff3ea5; box-shadow: 0 0 12px #ff3ea5; }
.nfb-spot-label { font: 11px "Consolas", monospace; letter-spacing: 1px; text-transform: uppercase; background: rgba(13, 18, 25, 0.8);
    padding: 1px 4px; border-radius: 3px; white-space: nowrap; }
.nfb-spot:hover .nfb-spot-label, .nfb-spot.on .nfb-spot-label { color: #fff; }
.nfb-strain { margin-top: 8px; }
.nfb-strain-label { display: flex; justify-content: space-between; font: 11px "Consolas", monospace; letter-spacing: 2px; color: #7f93a6; }
.nfb-strain-label .over { color: #ff6b5c; }
.nfb-bar { position: relative; height: 8px; margin-top: 3px; border-radius: 4px; background: #1a2230; overflow: hidden; }
.nfb-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #5ee7ff, #8a7dff); }
.nfb-seg { position: absolute; top: 0; bottom: 0; }
.nfb-seg.more { background: #ffd166; }
.nfb-seg.over { background: #ff6b5c; }
.nfb-seg.less { background: repeating-linear-gradient(45deg, #5ee7ff 0 3px, transparent 3px 6px); }
.nfb-side { flex: 1; min-width: 0; }
.nfb-hint { margin-top: 40px; color: #7f93a6; text-align: center; font-size: 16px; }
.nfb-slot-name { font: bold 18px "Consolas", monospace; letter-spacing: 3px; color: #ff3ea5; }
.nfb-muted { color: #7f93a6; font-size: 14px; }
.nfb-sub { margin: 12px 0 4px; font: 11px "Consolas", monospace; letter-spacing: 2px; color: #5ee7ff; }
.nfb-card { margin-top: 8px; padding: 9px 11px; border-radius: 7px; background: #121a25; border: 1px solid #263244; }
.nfb-card.preview { border-color: #5ee7ff55; box-shadow: inset 0 0 20px rgba(94, 231, 255, 0.05); }
.nfb-card-name { font-weight: bold; font-size: 16px; }
.nfb-card-mods { color: #9fd8ff; font: 12px "Consolas", monospace; margin: 2px 0; }
.nfb-card-desc { color: #a9b6c4; font-size: 14px; margin: 4px 0; }
.nfb-ar { display: inline-block; margin: 3px 0; padding: 1px 6px; border-radius: 3px; font: 11px "Consolas", monospace; letter-spacing: 1px;
    color: #0d1219; background: #ffd166; }
.nfb-options { display: flex; flex-direction: column; gap: 3px; }
.nfb-opt { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 5px; border: 1px solid transparent;
    background: #141c27; color: #dfe9f3; cursor: pointer; font: 14px "Rajdhani", "Segoe UI", sans-serif; text-align: left; }
.nfb-opt:hover { border-color: #2f3a4a; }
.nfb-opt.on { border-color: #ff3ea5; background: #1d1622; }
.nfb-opt-tag { color: #ffd166; font: 12px "Consolas", monospace; white-space: nowrap; }
.nfb-stats { width: 100%; margin: 8px 0 4px; border-collapse: collapse; font: 13px "Consolas", monospace; }
.nfb-stats th { text-align: right; color: #5f7584; font-weight: normal; font-size: 11px; letter-spacing: 1px; }
.nfb-stats td { padding: 2px 4px; border-top: 1px solid #1d2633; }
.nfb-stats td.num { text-align: right; }
.nfb-stats td.up { color: #6dffa8; }
.nfb-stats td.down { color: #ff6b5c; }
.nfb-cost { margin: 6px 0; color: #ffd166; font: 12px "Consolas", monospace; }
.nfb-why { color: #ff6b5c; font-size: 14px; margin-bottom: 4px; }
.nfb-btn { margin-top: 6px; padding: 6px 14px; border-radius: 6px; border: 1px solid #2f3a4a; background: #1a212c; color: #dfe9f3; cursor: pointer;
    font: bold 14px "Rajdhani", "Segoe UI", sans-serif; letter-spacing: 1px; }
.nfb-btn:disabled { opacity: 0.45; cursor: default; }
.nfb-btn.go:not(:disabled) { border-color: #5ee7ff; color: #5ee7ff; }
.nfb-btn.go:not(:disabled):hover { background: #5ee7ff; color: #0d1219; }
.nfb-btn.bad:not(:disabled) { border-color: #ff6b5c88; color: #ff8f84; }
.nfb-btn.x { margin: 0; width: 30px; height: 28px; padding: 0; }
@media (max-width: 640px) {
    .nfb-wrap { padding: 6px; }
    .nfb-body { flex-direction: column; align-items: center; }
    .nfb-fig { width: min(220px, 70vw); }
    .nfb-side { width: 100%; }
}
