/* v0.6.82: interactive, individually selectable tech/dependency atlas
   and exact-rule encyclopedic Galactic Catalog. Mobile-first with sticky
   desktop detail pane, tactile buttons, keyboard and screen-reader labels.
*/
#overlay .dialog.nav-tech-tree{width:min(100%,78rem);max-width:100%}
#overlay .dialog:has(.knowledge-v082-catalog-detail){width:min(100%,64rem);max-width:100%}
.knowledge-v082,.knowledge-v082-gallery{color:#e2e9fd;--knowledge-border:#53698c;--knowledge-accent:#b79aff}
.knowledge-v082,.knowledge-v082 *,.knowledge-v082-gallery,.knowledge-v082-gallery *{box-sizing:border-box}
.knowledge-v082{display:grid;gap:14px;min-width:0;max-width:100%}
.knowledge-v082-header{
 display:flex;justify-content:space-between;gap:14px;align-items:start;
 border-radius:14px;padding:19px 20px;
 border:1px solid #73739c;
 background:radial-gradient(ellipse at 90% 0%,#48345d,#212c50 55%,#0c263b);
}
.knowledge-v082-header small{display:block;color:#9cd8ec;font-size:10px;font-weight:800;letter-spacing:.13em}
.knowledge-v082-header h2{color:#fff;font-size:clamp(22px,3vw,34px);line-height:1.2;margin:5px 0 10px}
.knowledge-v082-header p{font-size:12px;line-height:1.55;color:#c0d8ed;max-width:67ch;margin:0}
.knowledge-v082-header-actions button{border:1px solid #a4a8da;background:#293755;color:#e6edff;
 border-radius:8px;padding:9px 11px;cursor:pointer;font-size:12px}
.knowledge-v082-toolbar{display:grid;grid-template-columns:1fr 1.3fr;gap:10px}
.knowledge-v082-toolbar label,.knowledge-v082-gallery-search{display:grid;gap:6px;color:#b9cfea;font-size:12px}
.knowledge-v082-toolbar select,.knowledge-v082-toolbar input,.knowledge-v082-gallery-search input{
 width:100%;min-width:0;max-width:100%;min-height:44px;
 background:#10213b;border:1px solid #7a89b5;border-radius:8px;
 padding:10px 12px;color:#fff;font-size:13px
}
.knowledge-v082-toolbar input:focus,.knowledge-v082-toolbar select:focus,
.knowledge-v082-gallery-search input:focus{outline:2px solid #b2a0ff;outline-offset:1px}
.knowledge-v082-categories{display:flex;gap:6px;flex-wrap:wrap}
.knowledge-v082-categories button{
 min-height:39px;background:#182f48;border:1px solid #567aa0;
 border-radius:8px;color:#d7e4ff;font-size:12px;padding:7px 10px;cursor:pointer
}
.knowledge-v082-categories button[aria-pressed="true"]{
 color:#fff;background:linear-gradient(135deg,#56428c,#2a5580);
 border-color:#c1b1ff;box-shadow:0 0 10px #8e80d439
}
.knowledge-v082-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,.91fr);
 gap:12px;align-items:start;min-width:0}
.knowledge-v082-list{display:grid;gap:12px;min-width:0}
.knowledge-v082-node-group{display:grid;gap:9px;padding:11px;
 border:1px solid #4d6a8b;border-radius:11px;
 background:#0e2136;min-width:0}
.knowledge-v082-node-group[hidden]{display:none}
.knowledge-v082-node-group h3{font-size:14px;color:#e9e1ff;margin:2px 0;
 display:flex;gap:7px;align-items:center}
.knowledge-v082-node-group h3 small{font-size:10px;font-weight:500;color:#a5bdd3}
.knowledge-v082-node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:7px;min-width:0}
.knowledge-v082-node{
 min-width:0;min-height:82px;
 display:flex;gap:7px;text-align:left;align-items:center;
 background:#172d46;border:1px solid #4a6990;border-radius:9px;
 padding:7px 8px;color:#e5f2ff;cursor:pointer;position:relative
}
.knowledge-v082-node[hidden]{display:none}
.knowledge-v082-node:hover,.knowledge-v082-node:focus-visible{
 background:#26395c;border-color:#bfa4ff;outline:1px solid #aa9ce4
}
.knowledge-v082-node.chosen{
 background:#342d59;border:2px solid #b9a6fa;padding:6px 7px;
 box-shadow:inset 0 0 16px #a67fff29
}
.knowledge-v082-node-art{flex:none;width:55px;height:55px;display:grid;
 place-items:center;overflow:hidden;border-radius:7px;background:#10233e}
.knowledge-v082-node-art img,
.knowledge-v082-node-art .stellar-picture,
.knowledge-v082-node-art .stellar-picture-image{
 display:block;width:100%;height:100%;max-width:100%;object-fit:cover}
.knowledge-v082-symbol{font-size:35px;color:#c4a8ff;line-height:1}
.knowledge-v082-node-info{display:grid;align-content:center;gap:5px;min-width:0;flex:1}
.knowledge-v082-node-info strong{display:block;font-size:12px;line-height:1.3;color:#fff;
 overflow-wrap:anywhere}
.knowledge-v082-node-info small{font-size:10px;line-height:1.4;color:#acc8e2}
.knowledge-v082-node-info small.ready{color:#8ee2c4}
.knowledge-v082-node-info small.pending{color:#e5be84}
.knowledge-v082-chevron{font-size:20px;color:#aab5d9}
.knowledge-v082-selected{position:sticky;top:8px;min-width:0;
 max-height:min(81vh,1020px);overflow:auto;
 background:linear-gradient(143deg,#192a4b,#121e33);
 border:1px solid #806fab;border-radius:12px;
 box-shadow:0 10px 28px #030b1870;scrollbar-width:thin}
.knowledge-v082-detail{display:grid;gap:13px;padding:14px;min-width:0}
.knowledge-v082-detail-hero{display:flex;gap:11px;align-items:flex-start;
 padding-bottom:12px;border-bottom:1px solid #657098}
.knowledge-v082-detail-art{width:88px;height:88px;flex:none;background:#101d35;
 display:grid;place-items:center;overflow:hidden;border-radius:9px;border:1px solid #56739b}
.knowledge-v082-detail-art img,.knowledge-v082-detail-art .stellar-picture,
.knowledge-v082-detail-art .stellar-picture-image{width:100%;height:100%;object-fit:cover;display:block}
.knowledge-v082-detail-hero>div:last-child{display:grid;gap:5px;min-width:0}
.knowledge-v082-detail-hero small{color:#b4b9e8;font-size:10px;letter-spacing:.04em}
.knowledge-v082-detail-hero h3{font-size:clamp(16px,2vw,22px);
 line-height:1.25;color:#fff;margin:0;overflow-wrap:anywhere}
.knowledge-v082-detail-hero p{font-size:12px;color:#c3d8ed;line-height:1.55;margin:0}
.knowledge-v082-detail-hero p.knowledge-v082-quick{color:#a7dfd6}
.knowledge-v082-meta{font-size:11px;line-height:1.55;color:#b8cbe4;margin:0}
.knowledge-v082-meta strong{color:#fff}
.knowledge-v082-subtitle{font-size:13px;font-weight:800;color:#e0d8fc;margin:0}
.knowledge-v082-levels{display:flex;gap:4px;flex-wrap:wrap}
.knowledge-v082-levels button{flex:0 0 35px;min-height:35px;padding:5px;background:#1b3455;
 border:1px solid #567ba4;color:#e4f3ff;border-radius:7px;cursor:pointer;font-size:12px}
.knowledge-v082-levels button.active,.knowledge-v082-levels button[aria-pressed="true"]{
 background:#5d488e;border-color:#c5b0ff;color:#fff;font-weight:900}
.knowledge-v082-cost,.knowledge-v082-need,.knowledge-v082-unlocks,
.knowledge-v082-manual{
 display:grid;gap:9px;background:#101f35;border:1px solid #50698d;
 border-radius:9px;padding:12px;min-width:0}
.knowledge-v082-cost>strong,.knowledge-v082-need h4,.knowledge-v082-unlocks h4{
 font-size:13px;color:#e5e2ff;margin:0}
.knowledge-v082-costs{display:flex;gap:5px;flex-wrap:wrap}
.knowledge-v082-costs>span{font-size:11px;padding:6px 7px;background:#203858;
 border:1px solid #53729b;border-radius:7px;color:#cce4f6}
.knowledge-v082-costs strong{color:#fff}
.knowledge-v082-costs .knowledge-v082-credit{background:#3a3354;border-color:#9181c2}
.knowledge-v082-cost>p{font-size:12px;color:#c4e9ec;margin:0;line-height:1.5}
.knowledge-v082-requirements{display:grid;gap:6px}
.knowledge-v082-requirement{display:grid;gap:3px;background:#1a2a40;
 border:1px solid #5b6f8a;border-radius:7px;padding:7px 9px}
.knowledge-v082-requirement.met{border-left:3px solid #51bda0}
.knowledge-v082-requirement.missing{border-left:3px solid #e9aa67}
.knowledge-v082-requirement button,.knowledge-v082-requirement>span{
 appearance:none;background:transparent;padding:0;border:0;color:#eef8ff;
 text-align:left;font-size:12px;font-weight:700;cursor:pointer}
.knowledge-v082-requirement button:hover{text-decoration:underline;color:#cfc2ff}
.knowledge-v082-requirement small{font-size:10px;color:#bdcde1;line-height:1.45}
.knowledge-v082-pill{display:inline-block;width:max-content;max-width:100%;
 font-size:11px;padding:5px 7px;border-radius:5px;font-weight:750}
.knowledge-v082-pill.ready{background:#16463e;border:1px solid #4fbc97;color:#b9ffe0}
.knowledge-v082-pill.pending{background:#4e382c;border:1px solid #d1a575;color:#ffdfaa}
.knowledge-v082-unlocks>p{font-size:11px;color:#bdcfe4;margin:0;line-height:1.4}
.knowledge-v082-links{display:flex;gap:5px;flex-wrap:wrap}
.knowledge-v082-links button{display:grid;gap:4px;text-align:left;border-radius:7px;
 border:1px solid #668ab7;background:#263554;color:#f6f6ff;padding:7px 9px;
 font-size:11px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.knowledge-v082-links button small{color:#adcae5;font-size:10px}
.knowledge-v082-links button:hover{background:#3d396a}
.knowledge-v082-manual>summary{cursor:pointer;color:#d3e5fb;font-size:12px;font-weight:750}
.knowledge-v082-manual section{display:grid;gap:5px;margin-top:8px}
.knowledge-v082-manual section strong{font-size:11px;color:#c6baff}
.knowledge-v082-manual section p{font-size:11px;line-height:1.55;margin:0;color:#bdd1e7}
.knowledge-v082-detail-actions{display:flex;gap:8px;flex-wrap:wrap}
.knowledge-v082-detail-actions button{min-height:38px;flex:1;font-size:12px;
 border:1px solid #8b9ac1;color:#e9f5ff;border-radius:8px;background:#293c65;
 padding:7px 9px;cursor:pointer}
.knowledge-v082-detail-actions button:hover{background:#473d7b}
.knowledge-v082-detail-actions button.primary{
 background:#5e4a94;border-color:#c4aaf5;color:#fff;font-weight:800}
.knowledge-v082-placeholder{display:grid;gap:8px;padding:20px}
.knowledge-v082-placeholder strong{color:#cdbdff;font-size:15px}
.knowledge-v082-placeholder p{color:#bad0e5;line-height:1.55;font-size:12px}
.knowledge-v082-gallery{display:grid;gap:13px;min-width:0}
.knowledge-v082-gallery-tabs{display:flex;flex-wrap:wrap;gap:6px}
.knowledge-v082-gallery-tabs .gallery-tab{flex:1 1 auto;min-height:41px}
.knowledge-v082-gallery-search{max-width:520px}
.knowledge-v082-catalog-summary{font-size:12px;color:#b8cee8;line-height:1.5}
.knowledge-v082-gallery-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));
 gap:10px;min-width:0}
.knowledge-v082-gallery-card[hidden]{display:none!important}
.knowledge-v082-gallery-card{height:100%;min-width:0}
.knowledge-v082-gallery-card .gallery-card-art{
 display:grid;place-items:center;min-height:140px;overflow:hidden}
.knowledge-v082-gallery-card .gallery-card-art img,
.knowledge-v082-gallery-card .stellar-picture,
.knowledge-v082-gallery-card .stellar-picture-image{
 display:block;width:100%;height:100%;object-fit:cover}
.knowledge-v082-gallery-card .knowledge-v082-symbol{font-size:68px}
.knowledge-v082-gallery-card .gallery-card-info{min-height:92px}
.knowledge-v082-gallery-card .gallery-card-info span{font-size:11px;line-height:1.5}
.knowledge-v082-catalog-detail{display:grid;gap:10px;min-width:0}
.knowledge-v082-catalog-art{max-height:255px;display:grid;place-items:center;
 border-radius:10px;border:1px solid #607ba9;background:#0b1d32;overflow:hidden}
.knowledge-v082-catalog-art img,.knowledge-v082-catalog-art .stellar-picture,
.knowledge-v082-catalog-art .stellar-picture-image{
 display:block;width:100%;height:100%;max-height:255px;object-fit:contain}
.knowledge-v082-catalog-detail>.knowledge-v082-detail{
 border:1px solid #587fa6;border-radius:10px;background:#12253d}
.knowledge-v082-catalog-detail .knowledge-v082-detail-hero .knowledge-v082-detail-art{display:none}
@media(max-width:900px){
 .knowledge-v082-main{grid-template-columns:minmax(0,1fr)}
 .knowledge-v082-selected{position:static;max-height:none}
 .knowledge-v082-node-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .knowledge-v082-header{padding:12px;display:grid}
 .knowledge-v082-header-actions button{width:100%}
 .knowledge-v082-toolbar{grid-template-columns:minmax(0,1fr)}
 .knowledge-v082-node-group{padding:8px}
 .knowledge-v082-node-grid{gap:6px}
 .knowledge-v082-node{min-height:79px;padding:6px;gap:5px}
 .knowledge-v082-node.chosen{padding:5px}
 .knowledge-v082-node-art{width:45px;height:45px}
 .knowledge-v082-node-info strong{font-size:11px}
 .knowledge-v082-node-info small{font-size:9px}
 .knowledge-v082-detail{padding:10px}
 .knowledge-v082-detail-art{width:62px;height:62px}
 .knowledge-v082-categories button{flex:1;min-width:90px;font-size:11px}
 .knowledge-v082-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .knowledge-v082-gallery-card .gallery-card-art{min-height:110px;height:125px}
}
@media(max-width:380px){
 .knowledge-v082-node-grid{grid-template-columns:minmax(0,1fr)}
 .knowledge-v082-categories button{min-width:75px}
 .knowledge-v082-gallery-card .gallery-card-art{min-height:95px;height:100px}
}
@media(prefers-reduced-motion:reduce){
 .knowledge-v082 *{scroll-behavior:auto!important;transition:none!important}
}

