/* GRUMPY//NET v2 0.46.0 — Nova Grumps › 🌌 Starmap (smp-; mockups 46/47). Navy, solid backgrounds (Grumpscapes show
   through anything see-through near the bottom). The 3D box (.smp-host) is moved back into .smp-slot after each redraw. */
.smp-w{display:grid;grid-template-columns:200px minmax(0,1fr) 316px;gap:10px;height:clamp(480px,calc(100vh - 342px),820px);min-width:0}
.smp-rail,.smp-drw{border-radius:14px;border:1px solid #1f3a50;background:#08111a;padding:12px;overflow:auto;display:flex;flex-direction:column;gap:6px;min-width:0;scrollbar-width:thin}
.smp-rail h5,.smp-drw h5{margin:6px 0 2px;font:800 11px var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:#7f9fb3}
.smp-drw h5 small{font-weight:800;color:#cfe6f3;margin-left:4px}
.smp-tg{display:flex;align-items:center;gap:8px;min-height:30px;flex:none;padding:0 8px;border-radius:9px;border:1px solid #1f3a50;background:#0a1621;font:700 13px var(--f-body);color:#d6e9f4;cursor:pointer;text-align:left}
.smp-tg .sw{width:12px;height:12px;border-radius:3px;flex:none}.smp-tg small{margin-left:auto;color:#8fb3c9;font-weight:800}
.smp-tg.off{opacity:.45}.smp-tg.off .sw{background:#33495a!important}
.smp-tg:hover,.smp-chip:hover,.smp-b:hover{border-color:var(--orange)}
.smp-pl{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.smp-chip{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 8px;border-radius:99px;border:1px solid #2c5470;background:#0c1c2b;color:#dff1fb;font:700 12px var(--f-body);cursor:pointer;white-space:nowrap}
.smp-pl .smp-chip{justify-content:flex-start;font-size:11.5px;padding:0 7px;border-radius:9px}
.smp-chip.off{opacity:.45;text-decoration:line-through}
.smp-busy{display:flex;flex-direction:column;gap:3px}
.smp-busy button{display:flex;align-items:center;gap:6px;min-height:30px;padding:0 6px;border-radius:8px;border:0;background:none;color:#cfe6f3;font:700 12.5px var(--f-body);text-align:left;cursor:pointer;min-width:0}
.smp-busy button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smp-busy button:hover{background:#0f2233}.smp-busy small{margin-left:auto;color:#8fb3c9;font-weight:700;white-space:nowrap}
.smp-fine{margin:4px 0;font:600 12px var(--f-body);color:#8fb3c9}
/* the map box */
.smp-box{position:relative;border-radius:14px;border:1px solid #1f3a50;overflow:hidden;background:#05090d;min-width:0}
.smp-slot,.smp-host{position:absolute;inset:0}
.smp-canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;touch-action:none}
.smp-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.smp-sl{position:absolute;left:0;top:0;pointer-events:auto;cursor:pointer;display:flex;flex-direction:column;align-items:center;padding:2px 7px;border-radius:7px;background:rgba(5,12,18,.78);border:1px solid rgba(129,193,209,.28);white-space:nowrap;color:inherit;font:inherit}
.smp-sl b{font:700 11px var(--f-body);color:#cfe6f3}.smp-sl small{font:600 9.5px var(--f-body);color:#7f9fb3}
.smp-sl.k-planet b{font:400 10px 'Press Start 2P',monospace;color:#e6f6ff}.smp-sl.k-star b{color:#ffd28f}
.smp-sl.k-belt{border-style:dashed;background:rgba(5,12,18,.6)}.smp-sl.k-belt b,.smp-sl.k-cluster b{color:#b7c9cf}.smp-sl.k-gate b{color:#d9c2ff}
.smp-sl.k-lz b{color:#ffcf8a}.smp-sl.k-station b{color:#e8f3f7}
.smp-sl.sel{border-color:#fff;box-shadow:0 0 0 1px #fff,0 0 10px rgba(237,153,74,.55)}
.smp-cs{display:flex;gap:3px;margin-top:2px}
.smp-c{font:800 10px var(--f-body);font-style:normal;padding:0 4px;border-radius:5px;color:#04101c}
.smp-c.c-ship{background:#5aa9ff}.smp-c.c-base{background:#5fd38a}.smp-c.c-hq{background:#b48cff}.smp-c.c-op{background:#ffb547}.smp-c.c-mk{background:#ff6b6b}
.smp-top{position:absolute;left:10px;right:10px;top:10px;display:flex;gap:8px;align-items:center;pointer-events:none;z-index:2}.smp-top>*{pointer-events:auto}
.smp-crumb{white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis;font:700 13px var(--f-body);color:#9fc0d4;padding:6px 10px;border-radius:10px;background:rgba(5,12,18,.88);border:1px solid #1f3a50}.smp-crumb b{color:#fff}
.smp-sys{display:inline-flex;padding:3px;border-radius:11px;background:rgba(5,12,18,.9);border:1px solid #1f3a50;flex:none}
.smp-sys button{white-space:nowrap;height:30px;padding:0 11px;border-radius:8px;border:0;background:none;color:#9fc0d4;font:700 13px var(--f-body);cursor:pointer}
.smp-sys button.on{background:#81c1d1;color:#04101c}.smp-sys button small{opacity:.8;margin-left:5px;font-weight:700}
.smp-q{height:34px;width:220px;min-width:0;border-radius:10px;border:1px solid #1f3a50;background:rgba(5,12,18,.92);color:#fff;padding:0 10px;font:600 13px var(--f-body)}
.smp-b{white-space:nowrap;height:32px;padding:0 11px;border-radius:9px;border:1px solid #2c5470;background:#0f2233;color:#dff1fb;font:700 12.5px var(--f-body);cursor:pointer;display:inline-flex;align-items:center;gap:5px;text-decoration:none}
.smp-b.or{background:var(--orange);border-color:var(--orange);color:#1a0d02}
.smp-b.on{background:#173a26;border-color:#3fae6c;color:#c9f5d9}
.smp-b.hq{border-color:#6a52a8;background:#1c1433;color:#e2d4ff}
.smp-b:disabled{opacity:.5;cursor:default}
.smp-b:focus-visible,.smp-tg:focus-visible,.smp-chip:focus-visible,.smp-sys button:focus-visible,.smp-sl:focus-visible,.smp-li:focus-visible{outline:2px solid #fff;outline-offset:2px}
.smp-bot{position:absolute;left:10px;right:10px;bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:8px;pointer-events:none;font:700 11px var(--f-body);color:#7f9fb3;z-index:2}
.smp-turn{display:flex;gap:6px;align-items:center;pointer-events:auto}.smp-turn em{font-style:normal;margin-left:6px}
.smp-warn{padding:4px 8px;border-radius:8px;background:rgba(5,12,18,.88);border:1px solid #3a2a12;color:#ffcf8a;white-space:nowrap}
/* ☰ List */
.smp-box.list{display:flex;flex-direction:column}
.smp-box.list .smp-top{position:static;padding:10px 10px 0}
.smp-list{flex:1;overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;align-content:start}
.smp-lg{display:flex;flex-direction:column;gap:2px;border-radius:12px;border:1px solid #1f3a50;background:#08111a;padding:6px}
.smp-li{display:flex;align-items:center;gap:6px;min-height:30px;padding:0 6px;border:0;border-radius:8px;background:none;color:#e6f6ff;font:700 13px var(--f-body);cursor:pointer;text-align:left}
.smp-li.deep{padding-left:18px;font-weight:600;font-size:12.5px;color:#cfe6f3}
.smp-li small{color:#7f9fb3;font-size:11px}.smp-li span{margin-left:auto;display:flex;gap:3px}
.smp-li:hover{background:#0f2233}.smp-li.on{background:#1a2b3b;box-shadow:inset 0 0 0 1px var(--orange)}
/* the drawer */
.smp-path{font:600 12px var(--f-body);color:#8fb3c9}
.smp-loc{margin:0;font:800 19px var(--f-body);color:#fff}.smp-loc small{font:700 12px var(--f-body);color:#8fb3c9}
.smp-cnts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:4px 0}
.smp-cnts span{border-radius:10px;border:1px solid #1f3a50;background:#0a1621;padding:5px 7px;font:700 11px var(--f-body);color:#8fb3c9}.smp-cnts b{display:block;font:800 16px var(--f-body)}
.smp-card{position:relative;display:block;border-radius:10px;border:1px solid #4a3512;background:#1a1208;padding:7px 28px 7px 9px;font:600 12px var(--f-body);color:#ffdca8;text-decoration:none}
.smp-card b{display:block;color:#fff;font-size:13.5px}
.smp-card em{font-style:normal;color:#9fe0b4}
a.smp-card:hover{border-color:var(--orange)}
.smp-card.hq{border-color:#4b3a7a;background:#160f26;color:#d9c8ff}
.smp-card.mk{border-color:#6b2a2a;background:#1d0d0d;color:#ffc9c9}.smp-card.mk span{display:block}
.smp-x{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:6px;border:1px solid #5a3a3a;background:#2a1414;color:#ffc9c9;cursor:pointer;font:700 11px var(--f-body);display:inline-flex;align-items:center;justify-content:center}
.smp-li2 .smp-x{position:static;margin-left:auto;flex:none}
.smp-surf{display:flex;flex-wrap:wrap;gap:5px}
.smp-ppl{display:flex;flex-direction:column;gap:3px}
.smp-li2{display:flex;align-items:center;gap:6px;min-height:26px;font:600 12.5px var(--f-body);color:#d6e9f4;text-decoration:none;min-width:0}
.smp-li2 b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smp-li2 small{margin-left:auto;color:#7f9fb3;font-weight:600;white-space:nowrap}
a.smp-li2:hover b{text-decoration:underline}
.smp-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:8px}
.smp-park,.smp-mkadd{display:flex;gap:5px;width:100%}
.smp-park select,.smp-mkadd input{flex:1;min-width:0;height:32px;border-radius:9px;border:1px solid #2c5470;background:#0a1621;color:#fff;font:600 12.5px var(--f-body);padding:0 8px}
.smp-drw .nv-msg{margin:6px 0 0}
/* elsewhere on the Nova pages */
.n2-where{margin:6px 0;font:600 13px var(--f-body);color:#cfe6f3}.n2-where a{color:#ffcf8a;margin-left:6px}
.n3-base{color:#9fe0b4!important;text-decoration:none}
.n3-pk{background:#0f2a3d!important;color:#bfe0ff!important}
a.n3-chip{text-decoration:none}

@media (max-width:1180px){ .smp-w{grid-template-columns:180px minmax(0,1fr) 280px} .smp-q{width:150px} .smp-turn em{display:none} }
@media (max-width:980px){
  .smp-w{grid-template-columns:minmax(0,1fr);height:auto}
  .smp-rail{order:2;flex-direction:row;flex-wrap:wrap;align-items:center}.smp-rail h5{width:100%}.smp-busy{flex-direction:row;flex-wrap:wrap}.smp-pl{display:flex;flex-wrap:wrap}
  .smp-box{order:1;height:clamp(420px,62vh,620px)}.smp-drw{order:3}
}
@media (max-width:760px){
  .smp-box{display:flex;flex-direction:column;height:auto}
  .smp-top{position:static;flex-wrap:wrap;padding:8px}.smp-q{width:100%;margin-left:0;order:3}.smp-crumb{max-width:100%;order:4}
  .smp-slot{position:relative;inset:auto;height:420px;flex:none}
  .smp-bot{position:static;padding:8px;flex-wrap:wrap}.smp-turn em,.smp-slt{display:none}
  .smp-rail h5:first-child~h5:nth-of-type(3),.smp-busy{display:none}
  .smp-list{grid-template-columns:minmax(0,1fr);max-height:none}
}

/* 0.46.1: 🔍 find a place: a small pop-up under the box (nothing until you type; at most 8 places + 3 members) */
.smp-qw{position:relative;margin-left:auto;flex:none;min-width:0}
.smp-qw .smp-q{display:block}
.smp-qres{position:absolute;right:0;top:calc(100% + 6px);width:340px;max-width:calc(100vw - 40px);max-height:min(372px,60vh);overflow-y:auto;z-index:5;padding:5px;border-radius:12px;border:1px solid #2c5470;background:#06111a;box-shadow:0 14px 34px rgba(0,0,0,.6);scrollbar-width:thin}
.smp-qres[hidden]{display:none}
.smp-qr{display:flex;align-items:center;gap:9px;width:100%;padding:6px 8px;border:0;border-radius:8px;background:none;color:#dff1fb;text-align:left;cursor:pointer;font:inherit}
.smp-qr:hover,.smp-qr.on{background:#11283a}.smp-qr.on{box-shadow:inset 0 0 0 1px #81c1d1}
.smp-qi{flex:none;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;background:#0c1c2b;border:1px solid #23415a;font-size:14px}
.smp-qt{min-width:0;flex:1}.smp-qt b{display:block;font:700 13px var(--f-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smp-qt b i{font-style:normal;font-weight:700;color:#81c1d1;font-size:11px;margin-left:4px}
.smp-qt small{display:block;font:600 11px var(--f-body);color:#8fb1c4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smp-qr em{flex:none;font:800 10.5px var(--f-body);font-style:normal;color:#ffcf9a;background:#2a1806;border:1px solid #6b3e12;border-radius:6px;padding:1px 6px}
.smp-qno{margin:4px 8px;font:600 12px var(--f-body);color:#8fb1c4}
@media (max-width:1180px){ .smp-qw .smp-q{width:150px} }
@media (max-width:760px){ .smp-qw{order:3;width:100%;margin-left:0}.smp-qw .smp-q{width:100%}.smp-qres{left:0;right:0;width:auto;max-width:none} }

/* 0.47.0: Dan's icons (round badges, js/ui/novaicon.js) in place of emoji; the org's chips = dark with a coloured edge */
.smp-c{display:inline-flex;align-items:center;gap:3px;padding:1px 5px 1px 1px;border-radius:99px;background:#06111a;border:1px solid;color:#fff;font:800 10.5px var(--f-body)}
.smp-c.c-ship{background:#06111a;border-color:#5aa9ff;color:#a9d0ff}.smp-c.c-base{background:#06111a;border-color:#5fd38a;color:#a6ecc0}.smp-c.c-hq{background:#06111a;border-color:#b48cff;color:#d9c6ff;padding-right:1px}.smp-c.c-op{background:#06111a;border-color:#ffb547;color:#ffd79a}.smp-c.c-mk{background:#06111a;border-color:#ff6b6b;color:#ffb3b3}
.smp-c .nic{border:0;box-shadow:none}
.smp-tg .nic{margin:-3px 0}.smp-tg.off .nic{filter:grayscale(1);opacity:.6}
.smp-chip .nic,.smp-b .nic{margin:-2px 0}
.smp-sys small{display:inline-flex;align-items:center;gap:2px}.smp-sys small .nic{border:0;box-shadow:none;background:none}
.smp-cnts span{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.smp-cnts b{width:100%}
.smp-card b .nic{margin:-3px 4px -3px 0}
.smp-li2 .nic{margin-right:4px}.smp-li2 small a{color:inherit}
.smp-loc .nic{margin-right:4px}
.smp-qi{width:auto;height:auto;border:0;background:none;border-radius:0}
.smp-qr em{display:inline-flex;align-items:center;gap:4px;padding:1px 6px 1px 1px;border-radius:99px;background:#06111a;color:#dff1fb}
.smp-qr em.t-hq{border-color:#b48cff}.smp-qr em.t-base{border-color:#5fd38a}.smp-qr em.t-ship{border-color:#5aa9ff}.smp-qr em .nic{border:0;box-shadow:none}
.smp-busy small{display:inline-flex;gap:3px}
/* 0.47.0: marker types (⚠ danger · 📦 cargo · ⛏ mining · ♻ salvage · ✚ medical · 📍 note) */
.smp-mkadd{flex-wrap:wrap}
.smp-mkt{display:flex;gap:4px;width:100%;margin-bottom:4px}
.smp-mkt button{display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:8px;border:1px solid #1f3a50;background:#0a1621;cursor:pointer;opacity:.6}
.smp-mkt button.on{opacity:1;border-color:#fff;background:#122638}
.smp-mkt button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.smp-sys small .nic{--s:15px}.smp-sys small{gap:1px}.smp-sys button{padding:0 9px}
.smp-busy small .smp-c{padding:0 4px 0 0;gap:1px}.smp-busy small .smp-c .nic{--s:15px}.smp-busy small{gap:2px}
.smp-busy button span{min-width:48px}
.smp-crumb{min-width:90px;flex:0 1 auto}
@media (max-width:1500px) and (min-width:1181px){ .smp-qw .smp-q{width:180px} }
.smp-sys button.on small .nic{background:#04101c}
