/* Dedicated research windows reuse the existing city research controller. */
html body dialog.research-window{box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:18px;border:12px solid transparent;border-image:url('/assets/rustic-v1045/production.webp') 14 18 14 18 stretch;background:#201913 radial-gradient(ellipse at 50% 0%,#423428,#171310 80%);background-clip:padding-box;color:#f6e3bb;font-family:var(--entry-font,"DFKai-SB",serif);box-shadow:0 18px 50px #000a;overflow:auto}
.research-window::backdrop{background:#000a}
.research-window .research-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 12px;border:1px solid #756653;background:linear-gradient(#38332c,#191714);position:sticky;top:0;z-index:1}
html body .research-window h2{margin:0;color:#f6e3bb;font-size:24px;letter-spacing:.12em}
html body .research-window button,#researchWindowEntry button{min-height:36px;padding:6px 14px;border:1px solid #a78a60;border-radius:3px;background:#38281d url('/assets/rustic-v1045/button.webp') center/100% 100%;color:#f6e3bb;font:inherit;cursor:pointer}
html body .research-window button:disabled{opacity:.5;cursor:default}
.research-window .research-header button{font-size:24px;padding:0;width:38px;flex:none}
html body .research-window #militaryFacilityPanel{padding:12px 0;border:0;background:none;max-height:none;width:auto}
.research-window #militaryFacilityPanel>h3{display:none}
.research-window p{font-size:14px;line-height:1.7;color:#ddc295}
html body dialog.research-window #militaryFacilityPanel :is(p,span,strong,small){color:#f6e3bb!important;text-shadow:none!important}
html body dialog.research-window #militaryFacilityPanel p{font-size:14px!important;line-height:1.7!important}
html body dialog.research-window #militaryFacilityPanel .facility-line{padding:14px!important;min-height:76px;box-sizing:border-box}
html body dialog.research-window #militaryFacilityPanel .facility-line small{color:#ddc295!important;font-size:14px!important;line-height:1.6!important}
.research-window .facility-list{display:grid;gap:10px}
.research-window .facility-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #806543;background:#191410}
.research-window .facility-line>span{min-width:0;flex:1}
.research-window .facility-line strong{color:#f6e3bb;font-size:17px}
.research-window .facility-line small{display:block;margin-top:6px;line-height:1.6;color:#ddc295}
.research-window .facility-line button{flex:none;min-width:96px}
#citySideInfo .building-action-row:has(> #researchWindowEntry:not([hidden])){flex-wrap:wrap!important}
#researchWindowEntry{display:flex;flex:0 0 100%;order:2;justify-content:center}
#researchWindowEntry[hidden]{display:none!important}
html body #researchWindowEntry button{padding:4px 8px;min-height:32px;font-size:14px;white-space:nowrap}
@media(max-width:600px){html body dialog.research-window{padding:8px;width:calc(100vw - 16px)}html body .research-window h2{font-size:19px}.research-window .facility-line{flex-wrap:wrap;padding:10px}.research-window .facility-line>span{flex-basis:100%}}