/* Development screens: one queue, one catalogue, one detail panel. */
body.map-cockpit #managementBody:is([data-management-tab="research"],[data-management-tab="focus"]){padding:14px;min-height:0;overflow:hidden!important}
body.map-cockpit #managementBody .research-clean-workspace{display:grid;grid-template-columns:minmax(0,1fr);height:100%;min-height:0;gap:16px;align-items:stretch;overflow:hidden}
body.map-cockpit #managementBody .research-clean-workspace:has(>.research-detail-panel){grid-template-columns:minmax(0,1fr) 300px}
body.map-cockpit #managementBody .research-clean-layout{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);height:100%;min-width:0;min-height:0;gap:12px;overflow:hidden}
.research-command-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:static;background:none;padding:0;min-height:38px;border:0;box-shadow:none}
.research-command-head>div{display:flex;gap:12px;align-items:baseline}.research-command-head b{font-size:16px;white-space:nowrap}.research-command-head small{white-space:nowrap}.research-command-head nav{display:flex;gap:8px}
body.map-cockpit #managementBody .research-command-head button{padding:7px 12px;background:#243c49;border-color:#667f8b60;white-space:nowrap}
body.map-cockpit #managementBody .research-clean-layout .research-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0}
body.map-cockpit #managementBody .research-clean-layout .research-slot{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;position:relative;min-height:65px;padding:11px 13px;margin:0;text-align:left;background:#203744;border:1px solid #627c8b60;overflow:hidden}
.research-clean-layout .research-slot b{display:block;font-size:13px;line-height:1.4}.research-clean-layout .research-slot small{display:block}.research-clean-layout .research-slot.empty{border-style:dashed;opacity:.8}.research-queue-progress{position:absolute;left:0;bottom:0;height:3px;background:#9bb7be}
.research-catalogue-toolbar{display:flex;align-items:center;gap:10px;min-width:0}.research-catalogue-toolbar label{white-space:nowrap}.research-catalogue-toolbar select{width:180px;max-width:45%;margin:0}.research-catalogue-toolbar>button{margin-left:auto}.research-catalogue-toolbar>small{white-space:nowrap}
body.map-cockpit #managementBody .research-catalogue{position:relative;min-height:0;height:100%;overflow:auto;padding:0 16px 20px;border:1px solid #617c8d4a;border-radius:6px;background:#182e3a!important;background-image:none!important;scrollbar-gutter:stable;scroll-padding:16px}
body.map-cockpit #managementBody .research-era>h3{display:flex;align-items:baseline;gap:12px;font-size:20px;font-variant-numeric:tabular-nums;margin:18px 0 12px;padding-bottom:9px;color:#c5d6dd;border-bottom:1px solid #526f7d50}.research-era>h3 small{font-weight:400;letter-spacing:1px}
.research-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.research-era{margin:0;padding:0;border:0;background:none}.research-era>summary{cursor:pointer;padding:16px 0 12px;color:#c8dce5;font-size:16px;line-height:1.5;border-bottom:1px solid #607b8940;margin-bottom:12px}.research-era>summary small{margin-left:12px;font-weight:400}
body.map-cockpit #managementBody[data-management-tab="focus"] .full-focus-canvas{background-color:#182e3a!important;border-color:#617c8d60;background-image:linear-gradient(#a8c4d008 1px,transparent 1px),linear-gradient(90deg,#a8c4d008 1px,transparent 1px)!important}
body.map-cockpit #managementBody[data-management-tab="focus"] .full-focus-node{background:#29414d!important;border-color:#77919b85;color:#dfebf1}
body.map-cockpit #managementBody[data-management-tab="focus"] .full-focus-node.focus-selected{background:#3e5359!important;border-color:#bdc5b5!important;outline-color:#8fa69e!important;box-shadow:none!important}
body.map-cockpit #managementBody[data-management-tab="focus"] .focus-detail-action button{background:#496575;border-color:#89a7b6;color:#e5eef2}
body.map-cockpit #managementBody .research-catalogue .tech-node{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:9px;height:auto;min-height:110px;margin:0;padding:14px;text-align:left;border:1px solid #617e8a70;background:#263e4b;border-radius:5px;box-shadow:none;opacity:1;color:#dce6eb}
.research-catalogue .tech-node .tech-branch{position:static;font-style:normal;font-size:11px;color:#9fb8c4;padding:0;line-height:1.4}.research-catalogue .tech-node>b{font-size:14px;line-height:1.5;word-break:normal}.research-catalogue .tech-node>small{display:flex;justify-content:space-between;gap:8px}
.research-card-state{white-space:nowrap;color:#c1d7de}.research-catalogue .tech-node.locked .research-card-state{color:#9babb3}
body.map-cockpit #managementBody .research-catalogue .tech-node.done{background:#243a3f;border-color:#607e7b70}.research-catalogue .tech-node.done .research-card-state{color:#a4c5b9}
body.map-cockpit #managementBody .research-catalogue .tech-node.running{border-color:#b9ad7a;background:#364549}.research-catalogue .tech-node.running .research-card-state{color:#e1cd95}
body.map-cockpit #managementBody .research-catalogue .tech-node.research-selected{border:1px solid #c1dbe6;box-shadow:inset 3px 0 #b3d1df;background:#34515f}
body.map-cockpit #managementBody .research-detail-panel{display:flex;flex-direction:column;position:relative;top:auto;bottom:auto;height:100%;max-height:none;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;border:1px solid #637c8c66;border-radius:6px;background:#203744;box-shadow:none;z-index:auto}
.research-detail-scroll{flex:1;min-height:0;overflow:auto;padding:20px;scrollbar-gutter:stable}.research-detail-eyebrow{display:block;padding-right:26px;letter-spacing:1px}
body.map-cockpit #managementBody .research-detail-panel h2{font-size:21px;line-height:1.5;margin:10px 0 14px}.research-time-summary{padding:10px 12px;border-left:2px solid #a5b6b8;background:#19313c;color:#d1e1e7}
body.map-cockpit #managementBody .research-detail-panel h3{font-size:14px;margin:20px 0 10px}
body.map-cockpit #managementBody .research-detail-panel .research-unlock-groups{display:grid;grid-template-columns:1fr;gap:10px;margin:0}.research-detail-panel .research-unlock-groups section{padding:0 0 10px;border:0;border-bottom:1px solid #65808b3d;background:none}.research-detail-panel .research-unlock-groups b,.research-detail-panel .research-unlock-groups small{display:block;line-height:1.7}.research-detail-panel .research-unlock-groups b{font-size:13px;font-weight:500;color:#d1e2e9}
.research-requirements button{display:block;width:100%;margin:6px 0;text-align:left;white-space:normal;background:#243d4a;border:1px solid #5d7b8b66;padding:9px}
.research-detail-action{flex:none;border-top:1px solid #607e8c60;background:#263f4c;padding:13px 16px}.research-detail-action>small{display:block;margin-bottom:9px}.research-detail-action>button{width:100%;background:#496575;border:1px solid #89a7b6;min-height:42px!important}.research-detail-action>button:disabled{opacity:.65}
body.map-cockpit #managementBody .research-detail-panel .research-detail-close{position:absolute;right:10px;top:10px;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;font-size:19px;float:none;background:transparent;border:0;color:#b7ccd6}
.research-supplement{border-top:1px solid #637e8955;margin-top:16px;padding-top:12px}.research-supplement summary{cursor:pointer;font-size:12px!important;color:#b0c5d0!important}.research-supplement>div,.research-supplement>small,.research-supplement>p{margin-top:12px}
body.map-cockpit #managementBody .research-speed-breakdown>div{display:grid;grid-template-columns:1fr;gap:8px}.research-speed-breakdown>div>span{display:flex;justify-content:space-between;gap:8px;flex-direction:row-reverse;background:none;padding:0;font-size:12px}.research-speed-breakdown>small{display:block}
body.map-cockpit #managementBody[data-management-tab="focus"] .focus-workspace{grid-template-columns:minmax(0,1fr) 310px;gap:16px}
body.map-cockpit #managementBody[data-management-tab="focus"] .management-grid>.focus-board{grid-template-columns:minmax(0,1fr);gap:12px}
body.map-cockpit #managementBody[data-management-tab="focus"] .focus-subtree-nav{display:none}
body.map-cockpit #managementBody[data-management-tab="focus"] .focus-directory-open>.focus-board{grid-template-columns:154px minmax(0,1fr)}
body.map-cockpit #managementBody[data-management-tab="focus"] .focus-directory-open .focus-subtree-nav{display:flex}
body.map-cockpit #managementBody[data-management-tab="focus"] .full-focus-tools{display:flex;flex-wrap:wrap;padding:0;background:none;gap:8px;border:0;margin-bottom:8px}
body.map-cockpit #managementBody[data-management-tab="focus"] .full-focus-tools input{flex:1 1 140px;min-width:120px}
.focus-view-controls{gap:3px}.focus-view-controls button{white-space:nowrap}.focus-view-controls [data-focus-home]{font-size:11px!important;padding:5px 8px}
.focus-board-status{margin-bottom:8px}.focus-board-status>span{font-size:11px!important;display:block!important}.focus-state-advice{margin:0 0 10px;background:transparent;border:0}.focus-state-advice>summary{padding:6px 0;color:#a9bdc8}
body.map-cockpit .focus-detail-scroll{padding:20px}.focus-detail-scroll>h2{color:#e3edf2}.focus-detail .focus-authenticity{font-size:11px!important;color:#96acb9!important}
body.map-cockpit #managementBody .focus-detail .focus-time-status{background:#19313c;color:#cedfe6;border-color:#95adb8;font-size:12px;margin:14px 0 20px}
body.map-cockpit #managementBody .focus-detail h3{font-size:14px;margin:18px 0 10px}.focus-detail .focus-rewards span,.focus-detail .condition-list span{background:#2a4350;border-left:2px solid #718d9b;padding:9px 11px}.focus-detail details{background:none;border:0;border-top:1px solid #67839055;border-radius:0;margin-top:16px}.focus-detail details>summary{padding:12px 0;color:#aebfc9;font-size:12px}.focus-detail details[open]>summary{border:0}.focus-detail-action{background:#263f4c!important}
#unitHoverStatus .unit-order-time{display:block;white-space:pre-line;padding-top:8px;margin-top:8px;border-top:1px solid #69889575;color:#e5cf96;font-variant-numeric:tabular-nums;font-size:12px;line-height:1.6}
@media(max-width:1000px){body.map-cockpit #managementBody .research-clean-workspace:has(>.research-detail-panel){grid-template-columns:minmax(0,1fr) 270px}.research-command-head>div{display:block}.research-command-head>div small{display:block}.research-command-head nav{gap:4px}body.map-cockpit #managementBody .research-command-head button{padding:6px 8px}.research-catalogue-toolbar{gap:6px}.research-catalogue-toolbar>small{display:none}}
@media(max-width:780px){body.map-cockpit #managementBody:is([data-management-tab="research"],[data-management-tab="focus"]){overflow:auto!important;padding:10px}body.map-cockpit #managementBody .research-clean-workspace,body.map-cockpit #managementBody .research-clean-workspace:has(>.research-detail-panel){height:auto;min-height:100%;display:flex;flex-direction:column}body.map-cockpit #managementBody .research-clean-workspace .research-clean-layout{flex:none;min-height:500px;height:auto}body.map-cockpit #managementBody .research-catalogue{height:340px}body.map-cockpit #managementBody .research-detail-panel{height:auto;min-height:300px;order:-1}.research-detail-scroll{max-height:300px}.research-command-head{flex-wrap:wrap}.research-command-head nav{margin-left:auto}body.map-cockpit #managementBody[data-management-tab="focus"] .focus-workspace{grid-template-columns:1fr;grid-template-rows:420px minmax(300px,1fr);height:auto}.focus-subtree-nav{max-height:none}body.map-cockpit #managementBody[data-management-tab="focus"] .management-grid>.focus-board{grid-template-rows:1fr}body.map-cockpit #managementBody[data-management-tab="focus"] .focus-directory-open>.focus-board{grid-template-columns:130px minmax(0,1fr)}body.map-cockpit .focus-subtree-nav [data-focus-branches]{display:grid;overflow:visible}.focus-subtree-nav button{width:100%;min-width:0}.research-card-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}
