/* Research belongs to the same quiet mint and slate outpost interface. */
.facility-links{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}
.facility-links button{white-space:nowrap}
.building-grid>.research-building{grid-column:1/-1}
.research-facility{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 28px;margin-bottom:20px}
.research-facility h2{font-size:23px;font-weight:500;line-height:1.6;margin:9px 0}
.research-facility p{font-size:12px;color:var(--muted);line-height:1.9}
.research-facility-status{min-width:245px;padding-left:26px;border-left:1px solid var(--border)}
.research-facility-status>span{font-size:12px;color:var(--muted);display:block}
.research-facility-status b{font-size:19px;font-weight:500;color:var(--mint);margin-left:8px}
.research-facility-status>small{display:block;margin:7px 0 14px;color:var(--subtle);font-size:10px}
.research-upgrade{font-size:10px;white-space:nowrap;padding:9px 12px}
.research-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.research-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);gap:20px;align-items:start}
.research-layout>div,.research-sidebar{min-width:0}
.research-sidebar{display:grid;gap:18px}
.research-projects{padding:25px 26px}
.research-section-heading{margin-bottom:8px}
.research-section-heading h2{font-size:18px;font-weight:500;margin:8px 0}
.research-section-heading p{font-size:11px;color:var(--subtle);line-height:1.8;margin-bottom:20px}
.research-project{display:flex;gap:17px;padding:23px 0;border-top:1px solid var(--border)}
.research-project:last-child{padding-bottom:0}
.research-project-icon{width:40px;height:42px;display:grid;place-items:center;flex-shrink:0;color:var(--mint);background:#172b2b;border:1px solid #2d4944;border-radius:7px}
.research-project-icon svg{width:22px;height:22px}
.research-project-body{flex:1;min-width:0}
.research-project-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.research-project-heading h3{font-size:17px;font-weight:500;margin:0 0 5px}
.research-project-heading p{color:var(--muted);font-size:11px;line-height:1.8}
.research-project-heading>span{font-size:17px;color:var(--mint);white-space:nowrap;font-variant-numeric:tabular-nums}
.research-project-heading small{font-size:11px;color:var(--subtle)}
.research-ranks{display:flex;gap:12px;align-items:center;margin:17px 0;color:var(--subtle);font-size:9px;font-variant-numeric:tabular-nums}
.research-ranks>span{display:flex;align-items:center;gap:6px;flex:1;max-width:90px}
.research-ranks i{display:block;height:4px;flex:1;background:#293641;border-radius:2px}
.research-ranks .done{color:var(--mint)}
.research-ranks .done i{background:#73cbb0}
.research-effect{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:8px 0;font-size:11px}
.research-effect>span{color:var(--subtle);white-space:nowrap}
.research-effect strong{font-weight:400;color:var(--muted);text-align:right}
.research-effect.next strong{color:#b9d9cb}
.research-requirements{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0;font-size:10px;line-height:1.7;color:var(--subtle)}
.research-requirements .met{color:#a1bbae}
.research-requirements .unmet{color:#dfb182}
.research-cost{display:flex;flex-wrap:wrap;gap:7px 12px;font-size:11px;color:var(--muted);line-height:1.8}
.research-cost>span{display:inline-flex;gap:5px;align-items:center}
.research-cost svg{width:14px;height:14px}
.research-project-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:14px}
.research-project-bottom>div{min-width:0}
.research-project-bottom small{display:block;font-size:9px;color:var(--subtle);margin-top:7px;line-height:1.8}
.research-project-bottom button{padding:9px 13px;white-space:nowrap;font-size:11px}
.research-project-reason{margin-top:11px;font-size:10px;color:var(--subtle);line-height:1.8}
.research-project-reason.unavailable,.research-confirm-status.unavailable{color:#ddb589}
.research-project-finished{display:flex;align-items:center;gap:8px;padding:12px 0;color:var(--mint);font-size:11px}
.research-project-finished svg{width:16px;height:16px}
.research-active{padding:24px}
.research-active-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.research-live{font-size:10px;display:flex;align-items:center;gap:6px;color:var(--mint)}
.research-live i,.research-idle-line i{height:5px;width:5px;border-radius:50%;background:currentColor}
.research-live.paused{color:var(--amber)}
.research-active h2{font-size:20px;line-height:1.6;font-weight:500}
.research-active h2>span{font-size:12px;color:var(--subtle);margin-left:10px}
.research-countdown{display:flex;align-items:baseline;gap:12px;margin:24px 0 12px}
.research-countdown strong{font-size:35px;line-height:1.2;color:var(--mint);font-weight:500;font-variant-numeric:tabular-nums}
.research-countdown small{font-size:10px;color:var(--subtle)}
.research-progress{height:5px;background:#2b3943;border-radius:3px;overflow:hidden}
.research-progress>span{height:100%;display:block;background:#7acdb1}
.research-work{display:flex;justify-content:space-between;gap:12px;color:var(--subtle);font-size:9px;margin:10px 0 20px;line-height:1.8}
.research-work b{font-weight:400;white-space:nowrap}
.research-unlock{padding:16px;background:#142621;border:1px solid #2d4940;border-radius:6px;margin:19px 0}
.research-unlock>span{font-size:9px;color:var(--subtle);display:block;margin-bottom:7px}
.research-unlock strong{display:block;color:#bde1cf;font-size:12px;font-weight:400;line-height:1.8}
.research-active-actions{display:flex;justify-content:space-between;align-items:center;gap:16px}
.research-active-actions button{font-size:11px}
.research-cancel{color:var(--subtle)}
.research-cancel:hover{color:var(--amber)}
.research-footnote{font-size:10px;color:var(--subtle);line-height:1.9;margin-top:16px}
.research-station-symbol{display:grid;place-items:center;width:48px;height:48px;margin-bottom:20px;border:1px solid #35524b;background:#182e29;border-radius:8px;color:var(--mint)}
.research-station-symbol svg{height:27px;width:27px}
.research-active.empty h2{margin:10px 0}
.research-active.empty>p{font-size:12px;line-height:1.9;color:var(--muted)}
.research-idle-line{display:flex;align-items:center;gap:8px;color:var(--subtle);font-size:10px;border-top:1px solid var(--border);margin-top:22px;padding-top:17px}
.research-applied{padding:24px}
.research-applied h3{font-size:14px;font-weight:500;margin:9px 0 17px}
.research-effects-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-top:1px solid var(--border);font-size:11px}
.research-effects-list>div>span{display:flex;align-items:center;gap:8px;color:var(--muted)}
.research-applied svg{width:16px;height:16px}
.research-applied strong{font-weight:500;color:#b9d9cb;font-variant-numeric:tabular-nums;white-space:nowrap}
.research-history{padding:24px}
.research-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.research-history h2{font-size:18px;font-weight:500;margin-top:9px}
.research-history-heading>span{font-size:10px;color:var(--subtle);white-space:nowrap}
.research-log{display:flex;gap:13px;padding:18px 0;border-top:1px solid var(--border)}
.research-log>span{height:32px;width:32px;display:grid;place-items:center;color:var(--mint);border:1px solid #2c4340;border-radius:6px;flex-shrink:0}
.research-log.cancel>span{color:var(--amber)}
.research-log>div{flex:1;min-width:0}
.research-log strong{font-size:12px;font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:12px}
.research-log b{font-size:9px;color:var(--mint);font-weight:400;white-space:nowrap}
.research-log.cancel b{color:var(--amber)}
.research-log p{font-size:11px;color:var(--muted);line-height:1.9;margin:7px 0}
.research-log small{font-size:9px;color:var(--subtle)}
.research-history-empty{padding:30px 6px;text-align:center}
.research-history-empty>svg{width:30px;height:30px;color:var(--subtle);margin:0 auto 18px}
.research-history-empty h3{font-size:14px;font-weight:500}
.research-history-empty p{font-size:11px;line-height:1.9;color:var(--muted);margin:10px auto 20px;max-width:300px}
.research-confirm h3{font-size:21px;font-weight:500;margin:12px 0}
.research-confirm>p{font-size:12px;line-height:1.9;color:var(--muted)}
.research-confirm-effect{padding:16px;background:#142621;border:1px solid #315048;border-radius:6px;margin-top:20px}
.research-confirm-effect small{display:block;color:var(--subtle);font-size:10px;margin-bottom:7px}
.research-confirm-effect strong{font-size:14px;font-weight:500;color:#bce1cf;line-height:1.8}
.research-review-cost{padding:18px 0;border-bottom:1px solid var(--border);margin-bottom:14px}
.research-review-cost>span{font-size:10px;display:block;color:var(--subtle);margin-bottom:9px}
.research-confirm-time{font-size:11px;color:var(--muted);margin:16px 0}
.research-confirm-status{font-size:11px;color:var(--mint);line-height:1.9}
.research-cancel-warning{padding:18px;border:1px solid #594630;background:#30271d;border-radius:6px;margin:20px 0}
.research-cancel-warning strong{display:block;color:#e0bc90;font-weight:500;font-size:13px;line-height:1.8;margin-bottom:12px}
.research-cancel-warning p{color:#bcac94;font-size:11px;line-height:1.9;margin-top:12px}
.research-cancel-warning .research-cost{color:#dbc3a4}
@media(max-width:1100px){.research-layout{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr)}.research-facility{padding:24px;gap:24px}.research-facility h2{font-size:21px}.research-facility-status{min-width:230px;padding-left:22px}.research-projects{padding:22px}.research-project{gap:12px}.research-project-icon{width:32px;height:36px}.research-project-bottom{align-items:flex-start;flex-direction:column}.research-project-bottom button{align-self:flex-end}}
@media(max-width:800px){.research-layout{grid-template-columns:1fr}.research-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));grid-row:1;gap:14px}.research-facility{align-items:flex-start}.research-facility-status{min-width:210px}.research-project-bottom{flex-direction:row;align-items:center}.research-project-bottom button{align-self:auto}}
@media(max-width:650px){.research-facility{padding:20px;display:block}.research-facility h2{font-size:19px}.research-facility p{font-size:11px}.research-facility-status{margin-top:20px;padding:17px 0 0;border-left:0;border-top:1px solid var(--border);min-width:0}.research-facility-status>span{font-size:11px}.research-facility-status b{font-size:17px}.research-facility-status>small{font-size:9px}.research-upgrade{font-size:10px}.research-toolbar{gap:10px;margin-bottom:16px}.research-toolbar .growth-tabs button{padding:8px 12px;font-size:11px}.research-sidebar{grid-template-columns:1fr;gap:14px}.research-projects,.research-active,.research-applied,.research-history{padding:19px}.research-section-heading h2{font-size:16px}.research-section-heading p{font-size:10px}.research-project{gap:10px;padding:20px 0}.research-project-icon{width:28px;height:30px;border-radius:5px}.research-project-icon svg{width:17px;height:17px}.research-project-heading{gap:10px}.research-project-heading h3{font-size:15px}.research-project-heading p{font-size:10px}.research-project-heading>span{font-size:14px}.research-project-heading small{font-size:9px}.research-ranks{gap:7px;margin:13px 0}.research-effect{display:block;font-size:10px;padding:6px 0}.research-effect>span{display:block;font-size:9px;margin-bottom:4px}.research-effect strong{display:block;text-align:left;line-height:1.8}.research-requirements{font-size:9px;gap:5px 10px}.research-project-bottom{flex-direction:column;align-items:flex-start;gap:12px}.research-cost{font-size:10px;gap:6px 9px}.research-cost svg{height:12px;width:12px}.research-project-bottom button{align-self:flex-start;font-size:10px;padding:8px 11px}.research-project-reason{font-size:9px}.research-active-top{gap:10px}.research-active h2{font-size:18px}.research-countdown strong{font-size:30px}.research-countdown small{font-size:9px}.research-footnote{font-size:9px}.research-work{font-size:8px}.research-unlock{padding:13px}.research-unlock strong{font-size:11px}.research-active-actions button{font-size:10px}.research-history-heading{display:block}.research-history-heading>span{display:block;margin-top:10px}.research-history h2{font-size:16px}.research-log{gap:10px}.research-log>span{height:26px;width:26px}.research-log>span svg{height:15px;width:15px}.research-log strong{font-size:11px;flex-wrap:wrap;gap:7px}.research-log p{font-size:10px}.research-log small{font-size:8px}.research-confirm h3{font-size:18px}.research-confirm>p{font-size:11px}.research-confirm-effect{padding:14px}.research-confirm-effect strong{font-size:12px}.research-confirm-time,.research-confirm-status{font-size:10px}.research-confirm .dialog-actions{flex-wrap:wrap}.research-confirm .dialog-actions button{font-size:11px}}

@media(max-width:650px){.facility-links{gap:10px}.facility-links button{font-size:9px}.research-building .building-card-top{flex-direction:row;align-items:center}.research-building p{min-height:0}}

/* Branch routes keep each foundation and its advanced topic together. */
.research-layout.branch-mode{grid-template-columns:minmax(0,1fr) 280px;gap:18px}
.research-routes,.research-branch,.research-branch-stage{min-width:0}
.research-routes-heading{margin:0 0 18px}
.research-routes-heading h2{font-size:18px;font-weight:500;margin:8px 0}
.research-routes-heading p{font-size:11px;color:var(--subtle);line-height:1.9;max-width:660px}
.research-branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.research-branch{--branch-accent:#99cdb7;overflow:hidden}
.research-branch.combat{--branch-accent:#d5b797}
.research-branch.production{--branch-accent:#9bbdd4}
.research-branch-heading{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:10px;padding:19px 17px 17px;border-bottom:1px solid var(--border);background:#142129;min-height:125px}
.research-branch-heading>span{color:var(--branch-accent);padding-top:2px}
.research-branch-heading svg{width:22px;height:22px}
.research-branch-heading h2{font-size:15px;font-weight:500;color:var(--branch-accent);margin-bottom:7px}
.research-branch-heading p{font-size:10px;color:var(--muted);line-height:1.9}
.research-branch-heading>b{font-size:13px;color:var(--branch-accent);font-weight:500;white-space:nowrap}
.research-branch-heading small{font-size:9px;color:var(--subtle)}
.research-branch-stage{padding:17px}
.research-stage-label{display:flex;align-items:center;gap:8px;color:var(--subtle);font-size:9px;letter-spacing:.08em;margin-bottom:13px}
.research-stage-label>span{border:1px solid var(--border);border-radius:3px;padding:1px 4px;font-size:8px;letter-spacing:0}
.research-branch-stage.advanced{background:#132027}
.research-branch .research-project{padding:0;display:block;border:0}
.research-branch .research-project-icon{display:none}
.research-branch .research-project-heading{gap:10px}
.research-branch .research-project-heading h3{font-size:15px}
.research-branch .research-project-heading p{font-size:10px;line-height:1.9}
.research-branch .research-project-heading>span{font-size:14px}
.research-branch .research-project-heading small{font-size:9px}
.research-branch .research-ranks{margin:14px 0;gap:8px}
.research-branch .research-effect{display:block;font-size:10px;padding:6px 0}
.research-branch .research-effect>span{display:block;font-size:9px;margin-bottom:4px}
.research-branch .research-effect strong{display:block;text-align:left;line-height:1.8}
.research-branch .research-requirements{display:grid;gap:5px;font-size:9px;margin:11px 0}
.research-branch .research-project-bottom{flex-direction:column;align-items:stretch;gap:12px;margin-top:12px}
.research-branch .research-cost{gap:6px 9px;font-size:10px}
.research-branch .research-cost svg{height:12px;width:12px}
.research-branch .research-project-bottom small{font-size:8px}
.research-branch .research-project-bottom button{align-self:flex-start;font-size:10px;padding:8px 10px;max-width:100%;white-space:normal;text-align:left}
.research-branch .research-project-reason{font-size:9px;margin-top:10px}
.research-branch .research-project-finished{font-size:10px;align-items:flex-start;line-height:1.9}
.research-branch .research-project.locked .research-project-heading>span{color:var(--muted)}
.research-route-connector{display:flex;align-items:center;flex-direction:column;color:#53766c;padding:0 17px;background:linear-gradient(var(--surface),#132027)}
.research-route-connector>span{height:5px;width:1px;background:#3b554e}
.research-route-connector svg{width:15px;height:15px;transform:rotate(90deg)}
.research-effects-list>div{padding:11px 0;font-size:10px}
.research-effects-list strong{font-size:11px}
.branch-mode .research-active,.branch-mode .research-applied{padding:21px}
.branch-mode .research-active-top{gap:8px}
.branch-mode .research-active h2{font-size:18px}
.branch-mode .research-active-actions{gap:10px}
.branch-mode .research-active-actions button{font-size:10px}
.branch-mode .research-countdown{flex-wrap:wrap;gap:7px}
@media(max-width:1200px){.research-layout.branch-mode{grid-template-columns:minmax(0,1fr)}.branch-mode .research-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));grid-row:1;align-items:start}.branch-mode #research-main{grid-row:2}.branch-mode .research-applied .research-footnote{font-size:9px}.branch-mode .research-effects-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.branch-mode .research-effects-list>div{gap:8px;flex-wrap:wrap;align-content:start}.branch-mode .research-effects-list strong{font-size:10px}}
@media(max-width:900px){.research-branches{grid-template-columns:minmax(0,1fr)}.research-branch-heading{min-height:0;padding:20px}.research-branch-stage{padding:20px}.research-branch .research-project-heading h3{font-size:16px}.research-branch .research-project-heading p{max-width:580px}.research-branch .research-project-bottom{flex-direction:row;align-items:center}.research-branch .research-project-bottom button{align-self:auto}.research-branch .research-requirements{display:flex;flex-wrap:wrap;gap:6px 14px}}
@media(max-width:650px){.research-toolbar{align-items:stretch;flex-direction:column;gap:12px}.research-toolbar .growth-tabs{display:flex;max-width:100%}.research-toolbar .growth-tabs button{flex:1;white-space:nowrap;padding:8px 9px;font-size:10px}.research-toolbar .simulation-controls{align-self:flex-end}.research-layout.branch-mode{gap:16px}.branch-mode .research-sidebar{display:contents}.branch-mode #research-current{grid-row:1;min-width:0}.branch-mode #research-main{grid-row:2;min-width:0}.branch-mode #research-applied{grid-row:3;min-width:0}.research-routes-heading h2{font-size:16px}.research-routes-heading p{font-size:10px}.research-branches{gap:16px}.research-branch-heading{padding:18px 17px;gap:9px}.research-branch-heading h2{font-size:14px}.research-branch-stage{padding:17px}.research-branch .research-project-heading h3{font-size:15px}.research-branch .research-project-bottom{flex-direction:column;align-items:flex-start}.research-branch .research-project-bottom button{align-self:flex-start}.research-branch .research-requirements{display:grid;gap:5px}.branch-mode .research-active,.branch-mode .research-applied{padding:19px}.branch-mode .research-effects-list{column-gap:12px}.branch-mode .research-effects-list>div{font-size:9px}.branch-mode .research-effects-list strong{font-size:10px}.research-effects-list svg{width:14px;height:14px}}
