/* Scoped HUD popover; leaves the chart and navigation usable. */
.vc-anchor{cursor:pointer;border-radius:5px;outline-offset:4px}.vc-anchor:hover{color:#f4d299}.vc-anchor:focus-visible{outline:2px solid #ebc17a}.vc-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 4px;margin-left:5px;border-radius:20px;background:#e5bc77;color:#162d38;font:700 11px/1 sans-serif;vertical-align:middle}.vc-badge[hidden],.vc-popover[hidden]{display:none!important}
.vc-popover{position:fixed;z-index:1600;display:flex;flex-direction:column;box-sizing:border-box;max-height:calc(100dvh - 16px);border:1px solid #54727a;border-radius:14px;background:#102b37;color:#e6eee9;box-shadow:0 12px 40px #04141db3;font:13px/1.5 "Microsoft YaHei",system-ui,sans-serif;overflow:hidden;text-align:left}.vc-popover *{box-sizing:border-box}.vc-popover button,.vc-popover input,.vc-popover select{font:inherit}.vc-popover button{cursor:pointer;min-height:33px;padding:5px 11px;border:1px solid #537782;border-radius:7px;background:#224652;color:#f0f3e9}.vc-popover button:hover:not(:disabled){background:#315b66;border-color:#9dc8c6}.vc-popover button:disabled{opacity:.55;cursor:not-allowed}.vc-popover button[data-action="sell"]:disabled{background:#26343c;border-color:#3d4c54;color:#8b989e;filter:grayscale(1)}.vc-popover :focus-visible{outline:2px solid #f1cb8c;outline-offset:2px}.vc-head{display:flex;align-items:center;justify-content:space-between;padding:14px 15px 10px;border-bottom:1px solid #34515c;gap:12px}.vc-head strong{font-size:18px;color:#f0d39c;letter-spacing:.04em}.vc-head small{display:block;color:#aac4c7;font-size:12px;margin-top:3px}
.vc-totals .vc-total-sep{margin:0 7px;color:#55737f}
.vc-totals .vc-total-value,.vc-totals .vc-total-energy{font-variant-numeric:tabular-nums;transition:color .3s ease,text-shadow .3s ease}
.vc-totals .is-changed{color:#5be7a9;text-shadow:0 0 8px rgba(91,231,169,.55)}.vc-head button{font-size:13px;line-height:1;min-width:72px;min-height:44px;padding:3px 10px;white-space:nowrap;flex:none}.vc-message{color:#f4d69d;padding:8px 14px;overflow-wrap:anywhere;flex-shrink:0}.vc-message:empty{display:none}.vc-content{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 14px;scrollbar-width:thin;scrollbar-color:#54727a #102b37}.vc-fish{display:flex;flex-wrap:nowrap;align-items:center;gap:7px;padding:9px 0;border-bottom:1px solid #304d58;font-size:12px;white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.vc-fish .vc-name{font-size:13px;color:#edf0db;flex:none;max-width:9em;overflow:hidden;text-overflow:ellipsis}.vc-fish .vc-fact{color:#b9cdd0;flex:none}.vc-fish .vc-sep{color:#55737f;font-style:normal;flex:none}.vc-fish .vc-stock{flex:none;font-size:15px;font-weight:700;color:#8f1f1a;letter-spacing:.02em}.vc-fish button{flex:none;font-size:12px;min-height:29px;padding:4px 8px}.vc-art svg{display:block;width:52px;height:40px}.vc-species b{font-size:14px;color:#edf0db}.vc-species small{display:block;font-size:11px;color:#aec2c1;overflow-wrap:anywhere}.vc-quantity{font-size:10px;color:#aac4c7}.vc-popover input,.vc-popover select{width:100%;min-width:0;min-height:34px;border:1px solid #577982;border-radius:6px;background:#0b212d;color:#edf3ee;padding:5px 7px}.vc-row-actions{grid-column:1/-1;display:flex;gap:6px;align-items:center}.vc-row-actions span{font-size:11px;color:#9dc8c6;flex:1;overflow-wrap:anywhere}.vc-row-actions button{font-size:12px;padding:5px 9px}.vc-note{font-size:11px;color:#b5c6c4;line-height:1.6;margin:9px 0}.vc-empty{padding:16px 2px;color:#b5c6c4}
/* ---- hold capacity strip: one tiny square per cargo unit ---- */
.vc-capacity{margin:12px 0 10px;padding:9px 10px 10px;border:1px solid #34515c;border-radius:10px;background:#0d2530}
.vc-capacity-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:11px;color:#a9c2c6}
.vc-capacity-head b{font-size:13px;color:#f0d39c;font-variant-numeric:tabular-nums}
.vc-capacity-grid{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:3px}
.vc-cell{display:block;aspect-ratio:1/1;border:1px solid #4b7481;border-radius:2px;background:transparent}
.vc-cell.is-used{background:#e5bc77;border-color:#f0d39c;box-shadow:0 0 4px rgba(229,188,119,.45)}

/* ---- species cards: four per row, four lines each ---- */
.vc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:4px 0 12px}
.vc-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:9px 9px 8px;border:1px solid #3d5f6b;border-radius:9px;background:#16333f}
.vc-card-top{display:flex;align-items:center;gap:5px;min-width:0}
.vc-card-top .vc-card-icon,.vc-card-top svg{display:block;flex:none;width:26px;height:20px}
.vc-card-name{flex:1 1 auto;min-width:0;font-size:12px;color:#edf0db;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vc-card-qty{flex:none;font-size:15px;font-weight:700;color:#f3d48f;font-variant-numeric:tabular-nums}
/* 占仓 has its own line so the unit squares never squeeze the price/energy row. */
.vc-card-hold{display:flex;align-items:center;gap:4px;margin:0;font-size:10.5px;color:#b9cdd0}
.vc-card-hold>div{display:flex;align-items:center;gap:3px;min-width:0}
.vc-card-hold dt{color:#8fabaf;font-size:10px;white-space:nowrap;margin:0}
.vc-card-hold dd{margin:0;display:flex;align-items:center}
.vc-card-facts{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 8px;margin:0;font-size:10.5px;color:#b9cdd0}
.vc-card-facts>div{display:flex;align-items:center;gap:3px;min-width:0}
.vc-card-facts dt{color:#8fabaf;font-size:10px;white-space:nowrap}
.vc-card-facts dd{margin:0;color:#dfeaea;white-space:nowrap;font-variant-numeric:tabular-nums}
.vc-units{display:inline-flex;gap:2px;align-items:center}
.vc-units i{display:block;width:7px;height:7px;border-radius:1px;background:#69d7cf;box-shadow:0 0 3px rgba(105,215,207,.4)}
.vc-card-actions{display:flex;gap:5px;margin-top:auto}
.vc-card-actions button{flex:1 1 0;min-width:0;font-size:11px;min-height:27px;padding:3px 4px;white-space:nowrap}
@media(max-width:640px){.vc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vc-capacity-grid{grid-template-columns:repeat(15,minmax(0,1fr))}}
@media(max-width:430px){.vc-card{padding:7px;gap:5px}.vc-card-name{font-size:11px}.vc-card-facts,.vc-card-hold{font-size:10px;gap:1px 6px}.vc-card-actions button{font-size:10.5px;padding:3px 2px}}
.vc-compose{margin:14px 0;padding:12px;border:1px solid #8c805d;border-radius:9px;background:#1c3b45}.vc-compose>b{color:#eed09a}.vc-compose label{display:block;font-size:12px;color:#c7d7d0;margin-top:8px}.vc-fields{display:flex;gap:10px}.vc-fields label{flex:1;min-width:0}.vc-total{font-size:14px;color:#f4d69d;margin:10px 0}.vc-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.vc-offers{margin:15px 0}.vc-offers h3{font-size:13px;color:#f0d39c;margin:0 0 8px}.vc-offer{padding:11px;margin-bottom:9px;background:#183b47;border:1px solid #42616b;border-radius:9px;overflow-wrap:anywhere}.vc-offer p{margin:6px 0}.vc-offer small{color:#adc3c3;font-size:11px}.vc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid #34515c;color:#a7bdbd;font-size:10px;flex-shrink:0}.vc-foot button{flex:none;font-size:11px}
@media(max-width:430px){.vc-popover{border-radius:10px}.vc-head{padding:11px 12px}.vc-content{padding:0 11px}.vc-fish{gap:5px;font-size:11px}.vc-fish .vc-name{font-size:12px;max-width:6.5em}.vc-fish .vc-stock{font-size:13px}.vc-fish button{font-size:11px;padding:4px 6px;min-height:27px}.vc-foot{padding:9px 11px}}
@media(prefers-reduced-motion:reduce){.vc-popover *{scroll-behavior:auto!important}}
