/* 0.48.8.4: compact controls, adjacent deposits, one card surface. */
:root #game-shell :is(.inventory-row4871,.service-card4882,.base-project4871,.treatment-row4871) .item-action4871{
 width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
 max-width:22px!important;max-height:22px!important;flex:0 0 22px!important;
 padding:3px!important;margin:0!important;box-sizing:border-box!important;line-height:1!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
:root #game-shell :is(.inventory-row4871,.service-card4882,.base-project4871,.treatment-row4871) .item-action4871 .action-icon484{
 width:14px!important;height:14px!important;min-width:14px!important;flex:0 0 14px!important;
 margin:0!important;align-self:center!important;
}
/* The object/recipe icon remains top-aligned; only button glyphs are centered. */
:root #game-shell .base-project4871 .material-line4871{
 justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap;gap:4px 5px!important;
 min-height:22px!important;margin:3px 0!important;line-height:1.55;
}
:root #game-shell .material-name4884{flex:0 1 auto;word-break:keep-all;overflow-wrap:anywhere}
:root #game-shell .material-quantity4884{flex:0 0 auto;margin:0!important;font-size:9px!important;color:var(--ui-sub)!important}
/* Legacy .v9-option-list > div paint must not show through the new research cards. */
:root #game-shell #v10-projects,
:root #game-shell #v10-projects > [data-tech-code]{
 background:transparent!important;background-image:none!important;border:0!important;
 box-shadow:none!important;outline:0!important;padding:0!important;
}
:root #game-shell #v10-projects{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:0 0 12px!important}
:root #game-shell #v10-projects > [data-tech-code]{margin:0!important;min-width:0!important}
:root #game-shell #v10-projects > [data-tech-code]::before,
:root #game-shell #v10-projects > [data-tech-code]::after{content:none!important}
:root #game-shell #v10-projects > [data-tech-code] > .service-card4882{margin:0!important}
:root #game-shell .archive-panel4884{
 border:0!important;background:transparent!important;box-shadow:none!important;
 padding:0!important;margin:16px 0 4px!important;min-width:0;
}
:root #game-shell .archive-panel4884 > .section-header{
 border:0!important;background:transparent!important;margin:0 0 8px!important;padding:0!important;
}
:root #game-shell .archive-panel4884 h3{font-size:12px!important;line-height:1.5!important;margin:0!important;color:var(--ui-text)!important}
:root #game-shell .preservation-row4884{margin:0!important;padding:10px!important}
:root #game-shell .preservation-row4884 .service-copy4882{min-width:0!important}
:root #game-shell .preservation-row4884 p{margin:5px 0!important;line-height:1.65!important}
:root #game-shell .preservation-row4884 .card-tail4883{gap:6px!important}
@media(pointer:coarse){
 :root #game-shell :is(.inventory-row4871,.service-card4882,.base-project4871,.treatment-row4871) .item-action4871{
  width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;
  max-width:24px!important;max-height:24px!important;flex-basis:24px!important;
 }
}
/* Remove the old enclosing panel too: only the individual research cards paint. */
:root #game-shell #scene-tech{
 background:transparent!important;background-image:none!important;border:0!important;
 box-shadow:none!important;padding:0!important;margin:0!important;min-width:0!important;
}
:root #game-shell #scene-tech::before,
:root #game-shell #scene-tech::after{content:none!important}
