/* Stellar Empire 0.6.62 — in-card construction/research progress.
   Only uncompleted image area is darkened by 30%; completed area reveals bottom-up. */
#overlay .compact-build-menu .building-card .stellar-quick-description,
#overlay .dialog.nav-research .research-tile .stellar-quick-description{
 display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;
 overflow:hidden;max-height:none!important;font-size:clamp(10px,.93vw,12px)!important;
 line-height:1.35;color:#c4ddeb;text-wrap:pretty;white-space:normal;
}
#overlay .compact-build-menu .building-card{
 gap:5px;min-height:0;justify-content:flex-start;
}
#overlay .compact-build-menu .stellar-has-project{
 opacity:1!important;border-color:#82cff0!important;box-shadow:0 0 0 1px #4796c755,inset 0 0 22px #18416888;
}
#overlay .compact-build-menu .planned-building.stellar-has-project .stellar-building-art,
#overlay .compact-build-menu .planned-building.stellar-has-project .stellar-picture{
 opacity:1!important;filter:none!important;
}
.stellar-project-art{
 position:relative;isolation:isolate;width:100%;min-width:0;
 display:block;overflow:hidden;border-radius:9px;
}
.stellar-project-art > :is(.stellar-building-art,.stellar-picture,.stellar-upload-picture,img){
 display:block;width:100%;min-width:0;
}
.stellar-project-art::after{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
 background:linear-gradient(to top,
  transparent 0%,transparent var(--project-reveal,0%),
  rgba(0,0,0,.30) var(--project-reveal,0%),rgba(0,0,0,.30) 100%);
 transition:background .2s ease;
}
.stellar-project-percent{
 position:absolute;z-index:3;top:7px;right:7px;
 display:inline-flex;align-items:center;justify-content:center;
 min-height:29px;padding:4px 9px;border-radius:8px;
 background:#071627e8;border:1px solid #79c9f6;color:#fff!important;
 font-weight:900;font-size:clamp(12px,1.1vw,16px)!important;
 line-height:1;font-variant-numeric:tabular-nums;
 box-shadow:0 1px 10px #020710a0;text-shadow:0 1px 4px #000;
}
.stellar-project-meter{
 position:absolute;z-index:3;bottom:0;left:0;right:0;height:6px;
 background:#051727d9;overflow:hidden;
}
.stellar-project-meter [data-progress-fill]{
 display:block;height:100%;width:0;
 background:linear-gradient(90deg,#8c70ff,#58c8ff,#a8f5fa);
 box-shadow:0 0 9px #9bdfff9a;
}
#overlay .compact-build-menu .stellar-project-art > .stellar-building-art,
#overlay .compact-build-menu .stellar-project-art > .stellar-picture{
 width:100%;height:clamp(75px,11vh,112px);
}
#overlay .compact-build-menu .stellar-project-art :is(img,.stellar-picture-image){
 width:100%;height:100%;object-fit:cover;
}
#overlay .dialog.nav-research .research-tile > .stellar-project-art{
 align-self:stretch;min-height:130px;height:100%;
}
#overlay .dialog.nav-research .research-tile .stellar-project-art > img{
 display:block;width:100%;height:100%!important;min-height:130px;max-height:200px;
 object-fit:cover;border-radius:8px;
}
#overlay .dialog.nav-research .research-tile .stellar-quick-description{
 -webkit-line-clamp:3;font-size:clamp(10px,.9vw,13px)!important;
}
#overlay .dialog.nav-research .research-tile.stellar-has-project{
 border-color:#7dcbf2;box-shadow:0 0 0 1px #54c7f746;
}
.stellar-queue-preview{
 border:1px solid #527ca4;background:linear-gradient(130deg,#0c2139,#17273f);
 border-radius:12px;padding:11px;margin:0 0 12px;box-shadow:inset 0 1px #c3e8ff15;
}
.stellar-queue-top{
 display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;
}
.stellar-queue-top>div{display:grid;gap:4px;min-width:0}
.stellar-queue-top strong{color:#d4f2ff;font-size:clamp(13px,1.3vw,17px)}
.stellar-queue-top small{color:#a8c8e0;font-size:11px}
.stellar-queue-open{min-height:31px;padding:7px 10px!important;font-size:11px!important}
.stellar-queue-jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));gap:6px;margin-top:9px}
.stellar-queue-job{
 display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;
 gap:4px 8px;border:1px solid #3c6180;border-radius:8px;padding:7px 8px;background:#0a1c2db8;
}
.stellar-queue-job.is-building{border-color:#61b4d8}
.stellar-queue-position{
 display:grid;place-items:center;width:23px;height:23px;border-radius:50%;
 background:#2b597d;color:#fff;font-size:12px;font-weight:900;
}
.stellar-queue-job-text{min-width:0;display:flex;flex-direction:column;gap:3px}
.stellar-queue-job-text strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stellar-queue-job-text small{font-size:10px;color:#a7c4d8}
.stellar-queue-job-percent{color:#cff7ff;font-size:12px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.stellar-queue-job-track{grid-column:2/-1;height:4px;background:#283f57;border-radius:4px;overflow:hidden}
.stellar-queue-job-track [data-progress-fill],
.stellar-research-active-track [data-progress-fill]{
 height:100%;display:block;background:linear-gradient(90deg,#a17cff,#5fd8f5);transition:width .35s linear;
}
.stellar-queue-empty{margin:6px 0 0;color:#b8d3e5;font-size:12px}
#overlay .dialog.nav-research .research-summary{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.stellar-research-active{
 flex:1 1 280px;min-width:0;display:grid;
 grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;
 border:1px solid #6187b1;border-radius:10px;padding:10px;
 background:linear-gradient(105deg,#132949,#1b2547);font-size:12px;
}
.stellar-research-active>strong{color:#dcefff}
.stellar-research-active>span{font-weight:900;color:#c7eaff;font-variant-numeric:tabular-nums}
.stellar-research-active-track{grid-column:1/-1;height:7px;background:#071829;border-radius:5px;overflow:hidden}
.stellar-research-active>small{grid-column:1/-1;color:#acc9e0}
.stellar-research-free{font-size:12px;color:#b7dacf}
@media(max-width:680px){
 #overlay .compact-build-menu .stellar-quick-description{-webkit-line-clamp:3}
 #overlay .dialog.nav-research .research-tile > .stellar-project-art{min-height:0;height:auto}
 #overlay .dialog.nav-research .research-tile .stellar-project-art > img{
  min-height:0;max-height:none;height:clamp(72px,18vw,120px)!important;
 }
 .stellar-queue-jobs{grid-template-columns:1fr}
 .stellar-project-percent{top:5px;right:5px;min-height:24px;padding:3px 6px;font-size:12px!important}
 #overlay .dialog.nav-research .research-tile .stellar-quick-description{-webkit-line-clamp:3}
}

/* Projects in disabled catalog slots still need fully legible status and photos. */
#overlay .compact-build-menu .building-card.stellar-has-project:disabled{opacity:1!important;filter:none!important}
#overlay .compact-build-menu .building-card.stellar-has-project:disabled .stellar-project-art{filter:none!important}
