.tech-tree {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.era-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1.1rem 0;
}
#panelBody .era-menu button {
  padding: .3rem .55rem;
  color: #36523d;
  border: 1px solid #c5cbb7;
  background: #edf0e3;
}
#panelBody .era-menu button[aria-pressed='true'] {
  background: #374f40;
  color: #fff;
}
.tech-tree > .card { border-top: 3px solid #849777; }
.tech-tree > .card[data-status='locked'] { border-top-color: #b5afa0; }
.tech-tree > .card[data-status='done'] { border-top-color: #577f75; }
.requirements { margin: .65rem 0; }
#panelBody .requirements button {
  margin: .12rem .2rem .12rem 0;
  padding: .1rem .35rem;
  font-size: .78rem;
  color: #36523d;
  background: #e6eadb;
}
.tech-tree progress {
  width: min(9rem, 50%);
}
.messages p {
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid #ccd0bf;
}
.card button {
  margin-top: 0.35rem;
}
#panelBody > label {
  margin: 0.65rem 0;
  max-width: 24rem;
}
#panelBody > .row {
  margin: 0.65rem 0;
}
#hotbar .item-icon {
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
}
#hotbar small {
  color: #d0bb8c;
}
@media (max-width: 680px) {
  .tech-tree {
    grid-template-columns: 1fr;
  }
  #hotbar .item-icon {
    display: none;
  }
}
.flight-step {
  border-inline-start: 4px solid #a88648;
  padding: 1rem 1.25rem;
  margin-block: 1rem;
}
.flight-step small { font-weight: 650; }
#panelBody .flight-step h3 { margin-top: .3rem; }
#panelBody details > summary { cursor: pointer; }
.bridge-guide {
  max-width: 82rem;
  margin-inline: auto;
  background: #1b303a;
  color: #f3e5c7;
}
.bridge-guide h2 { margin: .25rem 0; font: 1.45rem Gloock, serif; }
.bridge-guide button { margin-top: .5rem; }
.bridge-guide button + button { margin-inline-start: .45rem; }
.resident-groups {display:grid;gap:.45rem;margin:1rem 0;}
.resident-group {background:#f8f7ed;border:1px solid #c5cbb7;border-radius:.3rem;}
.resident-group > summary {padding:.65rem .85rem;color:#304b38;font-weight:650;}
.resident-group > div {padding:0 .85rem .5rem;}
.resident {border-top:1px solid #d7daca;padding:.4rem 0;}
.resident summary span {display:inline-block;margin-left:1rem;color:#495749;}
.resident button {margin-left:.4rem;}

.site-stats .stats-summary,.site-stats .stats-place header,.stats-tools {display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}
.stats-summary {padding:.8rem 1rem;background:#e2e9dc;border-left:3px solid #607d65;color:#23392c}
.stats-tools {margin:1rem 0 .35rem}
.stats-tools label {display:flex;gap:.5rem;align-items:center}
.stats-world h4 {margin:1.1rem 0 .4rem;color:#485f4b}
.stats-place {padding:.8rem .95rem;margin-bottom:.5rem;border:1px solid #cbd0c0;border-radius:.4rem;background:#fbf9f2;color:#27382e}
.stats-place small {display:block;color:#58685c;margin-top:.2rem}
.stats-place p {font-size:.86rem;margin:.45rem 0 0;color:#394a3f}
.stats-place p b {color:#3f5b44;margin-right:.35rem}
.stats-counts {display:flex;gap:1rem;margin:0}
.stats-counts div {display:flex;flex-direction:column-reverse}
.stats-counts dt {color:#506155;font-size:.76rem}
.stats-counts dd {margin:0;font-size:1.13rem;font-variant-numeric:tabular-nums}
@media(max-width:520px){.stats-tools label{align-items:flex-start;flex-direction:column}.stats-tools select{max-width:70vw}}
