/* Stellar Empire 0.6.72: identical ship-card sections across the grid. */
#overlay .shipyard-compact-grid.grid3{
 display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))!important;
 grid-auto-flow:row dense!important;
 grid-auto-rows:max-content!important;
 align-items:stretch!important;
 gap:8px!important;
 width:100%!important;min-width:0!important;
}
#overlay .shipyard-compact-grid>.shipyard-compact-card{
 box-sizing:border-box!important;
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:112px minmax(31px,auto) minmax(40px,auto)
    140px minmax(60px,auto) minmax(100px,auto) minmax(39px,auto)!important;
 align-items:start!important;
 align-self:stretch!important;
 align-content:stretch!important;
 gap:6px!important;
 height:100%!important;
 margin:0!important;
 padding:9px!important;
 min-width:0!important;
}
@supports(grid-template-rows:subgrid){
 #overlay .shipyard-compact-grid>.shipyard-compact-card{
  /* Seven identical vertical tracks for all cards in each row. */
  grid-row:span 7!important;
  grid-template-rows:subgrid!important;
  height:auto!important;
 }
}
#overlay .shipyard-compact-card>.stellar-picture,
#overlay .shipyard-compact-card>.stellar-ship-art{
 width:100%!important;
 height:112px!important;min-height:112px!important;max-height:112px!important;
 flex:none!important;margin:0!important;
 justify-self:stretch!important;align-self:stretch!important;
}
#overlay .shipyard-compact-card>.shipyard-compact-heading{
 display:flex!important;
 align-items:start!important;
 justify-content:flex-start!important;
 min-width:0!important;
 margin:0!important;padding:0!important;
}
#overlay .shipyard-compact-card>.shipyard-compact-heading h3{
 margin:0!important;line-height:1.2!important;
 overflow-wrap:anywhere!important;
}
#overlay .shipyard-compact-card>.shipyard-compact-heading small{
 display:none!important;
}
#overlay .shipyard-compact-card>.shipyard-compact-description{
 display:block!important;
 align-self:start!important;
 width:100%!important;
 height:auto!important;
 min-height:0!important;max-height:none!important;
 font-size:11px!important;
 line-height:1.4!important;
 margin:0!important;padding:0!important;
 white-space:normal!important;
 overflow:visible!important;
 overflow-wrap:anywhere!important;
}
#overlay .shipyard-compact-card>.shipyard-stats{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:repeat(3,44px)!important;
 align-self:start!important;
 gap:4px!important;
 width:100%!important;
 height:140px!important;min-height:140px!important;max-height:140px!important;
 margin:0!important;padding:0!important;
}
#overlay .shipyard-compact-card .shipyard-stats>.shipyard-stat-tile{
 height:44px!important;min-height:44px!important;max-height:44px!important;
 width:100%!important;
}
#overlay .shipyard-compact-card .shipyard-stats>.shipyard-stat-none{
 border:1px solid rgba(99,139,163,.3)!important;
 background:linear-gradient(135deg,rgba(12,35,53,.52),rgba(17,38,58,.38))!important;
 opacity:.75;
}
#overlay .shipyard-compact-card .shipyard-stats>.shipyard-stat-none dt,
#overlay .shipyard-compact-card .shipyard-stats>.shipyard-stat-none dd{
 color:#9aafbd!important;
}
#overlay .shipyard-compact-card>.shipyard-compact-requirements,
#overlay .shipyard-compact-card>.shipyard-compact-cost{
 display:grid!important;
 grid-template-rows:min-content 1fr!important;
 align-content:start!important;
 align-self:stretch!important;
 gap:5px!important;
 width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;
 overflow:visible!important;
}
#overlay .shipyard-compact-card :is(.shipyard-compact-requirements,.shipyard-compact-cost)>strong{
 display:block!important;min-height:14px!important;
 margin:0!important;line-height:1.3!important;
 font-size:11px!important;
}
#overlay .shipyard-compact-card .shipyard-compact-requirements ul{
 display:flex!important;
 flex-wrap:wrap!important;
 align-content:start!important;
 align-self:start!important;
 gap:5px!important;
 width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;
}
#overlay .shipyard-compact-card .shipyard-compact-requirements li{
 min-height:23px!important;
 margin:0!important;padding:4px 6px!important;
 white-space:normal!important;
 line-height:1.25!important;
 overflow-wrap:anywhere!important;
}
#overlay .shipyard-compact-card .shipyard-compact-cost .shipyard-costs{
 align-self:start!important;width:100%!important;min-width:0!important;
 margin:0!important;
}
#overlay .shipyard-compact-card .shipyard-compact-cost .modal-cost{
 box-sizing:border-box!important;
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-auto-flow:row!important;
 align-content:start!important;
 align-items:stretch!important;
 gap:5px!important;
 width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;
}
#overlay .shipyard-compact-card .shipyard-compact-cost .modal-cost>span{
 box-sizing:border-box!important;
 display:flex!important;
 justify-content:flex-start!important;
 align-items:center!important;
 gap:3px!important;
 min-height:28px!important;
 min-width:0!important;width:100%!important;
 margin:0!important;padding:5px 6px!important;
 font-size:10px!important;
 line-height:1.25!important;
 overflow-wrap:anywhere!important;
 white-space:normal!important;
}
#overlay .shipyard-compact-card>.shipyard-actions{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:6px!important;
 align-self:end!important;
 align-content:end!important;
 min-height:39px!important;
 width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;
}
#overlay .shipyard-compact-card .shipyard-actions>button{
 box-sizing:border-box!important;
 min-height:38px!important;
 min-width:0!important;width:100%!important;
 margin:0!important;padding:6px!important;
 font-size:11px!important;line-height:1.3!important;
 white-space:normal!important;
 text-align:center!important;
 overflow-wrap:anywhere!important;
}
#overlay .shipyard-compact-card .shipyard-actions>button:only-child{
 grid-column:1/-1!important;
}
@media(max-width:760px){
 #overlay .shipyard-compact-grid.grid3{
  grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))!important;
  gap:8px!important;
 }
 #overlay .shipyard-compact-grid>.shipyard-compact-card{
  grid-template-rows:100px minmax(31px,auto) minmax(40px,auto)
    134px minmax(60px,auto) minmax(100px,auto) minmax(39px,auto)!important;
  gap:5px!important;padding:7px!important;
 }
 #overlay .shipyard-compact-card>.stellar-picture,
 #overlay .shipyard-compact-card>.stellar-ship-art{
  height:100px!important;min-height:100px!important;max-height:100px!important;
 }
 #overlay .shipyard-compact-card>.shipyard-stats{
  grid-template-rows:repeat(3,42px)!important;
  height:134px!important;min-height:134px!important;max-height:134px!important;
 }
 #overlay .shipyard-compact-card .shipyard-stats>.shipyard-stat-tile{
  height:42px!important;min-height:42px!important;max-height:42px!important;
 }
}
@media(max-width:440px){
 #overlay .shipyard-compact-grid.grid3{grid-template-columns:1fr!important}
 #overlay .shipyard-compact-grid>.shipyard-compact-card{
  grid-template-rows:116px minmax(31px,auto) minmax(40px,auto)
    134px minmax(60px,auto) minmax(100px,auto) minmax(39px,auto)!important;
 }
 #overlay .shipyard-compact-card>.stellar-picture,
 #overlay .shipyard-compact-card>.stellar-ship-art{
  height:116px!important;min-height:116px!important;max-height:116px!important;
 }
}
@supports(grid-template-rows:subgrid){
 #overlay .shipyard-compact-grid>.shipyard-compact-card{
  grid-row:span 7!important;
  grid-template-rows:subgrid!important;
 }
}
