/* M8 functional views only; existing city artwork and character geometry are unchanged. */
#toggle-night-sky{background:#354e47;color:#fff0ca;border:1px solid #a98e59;border-radius:6px;padding:10px 14px}
#toggle-night-sky{flex-shrink:0;margin-left:auto}#knowledge-sky{position:absolute;inset:94px 0 0;overflow:auto;background:#17263c;color:#edf4ff;padding:24px;z-index:4}#knowledge-sky[hidden]{display:none}.knowledge-shell{max-width:1080px;margin:auto}.knowledge-night #filter-form,.knowledge-night .hall-status,.knowledge-night #hall-viewport,.knowledge-night .hall-view-tools,.knowledge-night #empty-state{visibility:hidden}.knowledge-shell h2,.knowledge-shell h3{color:#fff}.knowledge-shell button{background:#f6e5bb;color:#263340;border:1px solid #d3bd87;border-radius:5px;padding:9px 14px}.knowledge-shell label{display:block;font-weight:600}.knowledge-shell select{display:block;width:100%;background:#f5f2e9;color:#17263c;border:1px solid #a9b9ce;padding:9px;border-radius:4px;margin:7px 0 12px}.knowledge-shell button:disabled{opacity:.5;cursor:not-allowed}.knowledge-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px}.knowledge-legend{display:flex;flex-wrap:wrap;gap:10px 24px;list-style:none;padding:0}.knowledge-legend li{display:flex;align-items:center}.knowledge-color{display:inline-block;flex:none;background:var(--relation-color);width:15px;height:15px;border:1px solid #e3edf7;border-radius:50%;margin-right:8px;vertical-align:middle}.knowledge-graph-scroll{border:1px solid #56677d;border-radius:8px;background:radial-gradient(ellipse at center,#253c58,#111c2e);overflow:auto}#star-map-graph{display:block;width:100%;min-width:480px;max-height:680px}.knowledge-edges path{fill:none;stroke-width:2;opacity:.72}.knowledge-nodes circle{fill:#f7edcc;stroke:#b3c7de;stroke-width:2}.knowledge-nodes text{fill:#17263c;text-anchor:middle;font-size:15px;font-weight:700}.knowledge-shell table{width:100%;border-collapse:collapse}.knowledge-shell th,.knowledge-shell td{text-align:left;padding:10px;border-bottom:1px solid #546378}.knowledge-connect{border-top:1px solid #61748a;margin-top:25px;padding-top:15px}.knowledge-connect .audit-list li{border-color:#61748a}.knowledge-stamps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.knowledge-stamp{border:2px dashed #b9a980;border-radius:12px;padding:15px;opacity:.7;background:#eee2c3}.knowledge-stamp.is-earned{border-style:solid;border-color:#597563;background:#dce5c7;opacity:1}.knowledge-stamp>span{font-size:34px}.knowledge-stamp h3{font-size:19px}.knowledge-stamp p{font-size:13px}#avatar-selected-stamp{position:absolute;left:50%;top:-74px;transform:translateX(-50%);min-width:28px;height:28px;border:2px solid #f6d78a;border-radius:50%;background:#283f50;color:#fff1be;text-align:center;line-height:23px;font-size:21px;pointer-events:none}#avatar-selected-stamp[hidden]{display:none}
@media(max-width:650px){.knowledge-stamps{grid-template-columns:1fr 1fr}.knowledge-filters{grid-template-columns:1fr;gap:0}#knowledge-sky{padding:16px}.knowledge-shell .workbench-heading{flex-wrap:wrap}.knowledge-legend{display:block}.knowledge-legend li{margin:8px 0}#toggle-night-sky{max-width:120px;font-size:11px;padding:8px}.knowledge-shell td,.knowledge-shell th{font-size:12px;padding:7px}}
@media(max-width:600px){#knowledge-sky{top:84px}}
