.city-command {
  border: 1px solid #456055;
  border-radius: 13px;
  background: linear-gradient(120deg, #1d332d, #17292e);
  overflow: hidden;
  margin-bottom: 15px;
}
.city-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 23px 22px 18px;
}
.city-header .eyebrow {
  font-size: 7px;
  letter-spacing: 1.3px;
}
.city-header h2 {
  font:
    600 27px Manrope,
    sans-serif;
  letter-spacing: -0.8px;
  margin: 8px 0 0;
}
.city-header h2 > span {
  color: #c5e1a4;
}
.city-header > button {
  font-size: 9px;
  color: #afc4af;
  white-space: nowrap;
  border: 1px solid #415c4e;
  border-radius: 6px;
  padding: 8px 10px;
}
.city-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 22px 21px;
  gap: 12px;
}
.city-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid #3c5248;
}
.city-metrics > div:last-child {
  border: 0;
}
.city-metrics small {
  font-size: 6px;
  letter-spacing: 1px;
  color: #829d91;
}
.city-metrics strong {
  font:
    500 19px Manrope,
    sans-serif;
  color: #dae8cf;
  white-space: nowrap;
}
.city-metrics .positive {
  color: #b7d994;
}
.city-metrics .negative {
  color: #dba08a;
}
.city-tabs {
  display: flex;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid #3a5045;
  overflow: auto;
  scrollbar-width: thin;
}
.city-tabs button {
  padding: 13px 10px;
  font-size: 10px;
  white-space: nowrap;
  color: #8fa99a;
  border-bottom: 2px solid transparent;
}
.city-tabs button.active {
  color: #cfdfb2;
  border-color: #bbd797;
  background: #30463380;
}
#city-panel-body {
  padding: 20px 22px;
}
.build-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.build-heading strong,
.research-overview strong {
  font-size: 12px;
  font-weight: 500;
}
.build-heading p,
.research-overview p {
  font-size: 9px;
  color: #829f91;
  margin: 7px 0 0;
}
.build-heading .primary-button {
  font-size: 9px;
  padding: 10px 12px;
}
.construction-row {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 18px;
}
.construction-row > label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 8px;
  color: #9cb4a3;
}
.construction-row select {
  width: 100%;
  font-size: 10px;
  padding: 10px;
}
.construction-row button {
  padding: 11px;
  font-size: 9px;
  white-space: nowrap;
}
#blueprint-details {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #20372e;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 11px 0 16px;
  font-size: 9px;
  color: #a7bf9f;
}
#blueprint-details > span:nth-child(2) {
  color: #809f91;
  font-size: 8px;
}
#blueprint-details strong {
  color: #d1b98a;
  font-size: 8px;
  font-weight: 400;
}
.district-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.district-list button {
  border: 1px solid #3e5949;
  border-radius: 6px;
  padding: 9px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  color: #9fb597;
  background: #263c31;
  text-align: left;
}
.district-list small {
  margin-left: auto;
  color: #7c9988;
  font-size: 7px;
  white-space: nowrap;
}
.district-list .locked {
  background: #192f2d;
  border-color: #2e4940;
  color: #658476;
}
.district-list .selected {
  border-color: #a2bf80;
  background: #385034;
}
.city-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid #3c5345;
  font-size: 8px;
  color: #8eaa92;
}
.city-bottom > button {
  font-size: 8px;
  color: #c0d79f;
  white-space: nowrap;
}
.divine-drawer {
  border: 1px solid #344d42;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #182c2b;
}
.divine-drawer > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 11px;
  color: #bfd2ad;
}
.divine-drawer > summary::-webkit-details-marker {
  display: none;
}
.divine-drawer > summary > small {
  font-size: 8px;
  color: #789788;
}
.divine-drawer > summary > b {
  margin-left: auto;
  font-weight: 400;
}
.divine-drawer .god-panel {
  border: 0;
  border-top: 1px solid #3b5246;
  border-radius: 0;
  margin: 0;
}
.city-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #122725;
  border-top: 1px solid #2f493e;
  padding: 9px 14px;
}
.city-map-toolbar > div {
  display: flex;
  gap: 5px;
}
.city-map-toolbar button {
  font-size: 9px;
  color: #8eaa9a;
  padding: 7px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.city-map-toolbar button.active {
  color: #d0e2ae;
  background: #3a5036;
}
.city-map-toolbar > span {
  font-size: 8px;
  color: #8fa68d;
  line-height: 1.5;
  text-align: right;
}
.city-map-toolbar .placing {
  color: #e1d69f;
}
.research-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.simulation-tag {
  font-size: 6px;
  letter-spacing: 0.8px;
  color: #91a77f;
  background: #2f4431;
  border: 1px solid #47603e;
  border-radius: 4px;
  padding: 6px 8px;
  white-space: nowrap;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #506c4d transparent;
}
.research-project {
  background: #1b312d;
  border: 1px solid #3a5546;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.research-project > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}
.research-project > div > span {
  font-size: 7px;
  color: #a9be96;
}
.research-project > div > b {
  font-size: 6px;
  color: #7e9b87;
  font-weight: 400;
  white-space: nowrap;
}
.research-project h3 {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  margin: 11px 0 6px;
  color: #d0dfc6;
}
.research-project p {
  font-size: 8px;
  line-height: 1.8;
  color: #89a393;
  margin: 0 0 10px;
  flex: 1;
}
.research-project > small {
  font-size: 7px;
  color: #a7c592;
  line-height: 1.7;
  min-height: 25px;
}
.research-project button {
  border: 1px solid #58704c;
  background: #30472e;
  color: #cbdcaf;
  border-radius: 5px;
  font-size: 8px;
  line-height: 1.5;
  padding: 8px 4px;
  margin-top: 9px;
}
.research-project.complete {
  border-color: #7e9d60;
}
.research-project.complete > div > b {
  color: #b9d699;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
  filter: none;
}
.active-research {
  background: #2b4232;
  border: 1px solid #536e43;
  border-radius: 7px;
  margin-bottom: 13px;
  padding: 12px;
}
.active-research > div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #c4d8ab;
}
.active-research b {
  font-size: 10px;
  font-weight: 400;
}
.active-research progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 10px;
  accent-color: #b3d791;
}
.idle-research {
  font-size: 9px;
  color: #7e9b8d;
  border: 1px dashed #3c5747;
  padding: 13px;
  border-radius: 6px;
  margin-bottom: 13px;
}
.city-footnote {
  font-size: 9px;
  line-height: 1.8;
  color: #8aa493;
  margin: 16px 0 0;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.policy-grid label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #405c47;
  padding: 16px 13px;
  border-radius: 8px;
  background: #20372e;
  font-size: 10px;
  color: #a8c19f;
}
.policy-grid strong {
  font:
    500 25px Manrope,
    sans-serif;
  color: #d0e2b6;
}
.policy-grid input {
  margin: 5px 0 3px;
}
.policy-grid small {
  font-size: 8px;
  color: #829d8e;
  line-height: 1.8;
}
.city-help-note {
  font-size: 10px;
  line-height: 1.8;
  background: #1a302c;
  color: #9bb29f;
  padding: 14px;
  border-radius: 7px;
  margin-top: 15px;
}
.pet-form {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px;
  background: #20372f;
  border: 1px solid #3d5745;
  border-radius: 7px;
}
.pet-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 9px;
  color: #a5bfa0;
  min-width: 0;
}
.pet-form label:first-child {
  flex: 1;
}
.pet-form input {
  font-size: 10px;
  width: 100%;
}
.pet-form select {
  font-size: 10px;
}
.pet-form button {
  font-size: 9px;
  white-space: nowrap;
  padding: 11px;
}
.pet-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 13px;
  max-height: 260px;
  overflow: auto;
}
.pet-roster > button {
  display: grid;
  grid-template-columns: 25px 1fr 15px;
  gap: 6px;
  background: #1e352c;
  border: 1px solid #3b5644;
  border-radius: 7px;
  padding: 12px;
  text-align: left;
  align-items: center;
}
.pet-roster > button > span {
  grid-row: span 2;
  font-size: 24px;
  color: #c5bc8d;
}
.pet-roster strong {
  font-size: 11px;
  font-weight: 500;
}
.pet-roster small {
  font-size: 7px;
  color: #8ca58c;
  grid-column: 2;
}
.pet-roster b {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 12px;
  color: #b9ce9e;
  font-weight: 400;
}
.conflict-badge {
  font-size: 8px;
  color: #c4daab;
  border: 1px solid #567447;
  background: #304730;
  padding: 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.conflict-badge.war {
  color: #e4b89a;
  border-color: #97634d;
  background: #563d32;
}
.diplomacy-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
.neighbor-label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 9px;
  color: #b1c4a7;
}
.neighbor-label select {
  width: 100%;
}
.diplomacy-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.diplomacy-buttons button {
  font-size: 9px;
  padding: 10px;
}
.danger-button {
  border: 1px solid #986b51;
  border-radius: 6px;
  background: #573f32;
  color: #e3b89d;
  padding: 11px 13px;
  font-size: 10px;
}
.conflict-numbers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #435b47;
  background: #23392e;
  border-radius: 8px;
  padding: 15px;
}
.conflict-numbers > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #91ad92;
}
.conflict-numbers b {
  font-size: 11px;
  color: #d1dfb8;
  font-weight: 400;
}
.conflict-numbers button {
  font-size: 9px;
  padding: 9px;
}
.city-dialog-title {
  font:
    500 27px Manrope,
    sans-serif;
  margin: 22px 0 !important;
}
.building-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid #415b49;
  border-radius: 8px;
  background: #20372e;
  margin-bottom: 20px;
}
.building-facts > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #94af99;
}
.building-facts b {
  font-size: 12px;
  font-weight: 400;
  color: #d0dfb8;
}
.city-guide-list {
  padding-left: 19px;
  color: #9eb8a1;
  font-size: 12px;
  line-height: 1.8;
}
.city-guide-list li {
  padding-bottom: 11px;
}
.city-guide-list b {
  color: #d1dfbd;
}
.city-command ~ .map-card .canvas-wrap {
  height: 470px;
}
.heading h1 {
  font-size: 33px;
}
@media (min-width: 1100px) {
  .divine-drawer .god-body {
    grid-template-columns: 1fr 1.4fr;
  }
  .divine-drawer .weather-section {
    border-bottom: 0;
    border-right: 1px solid #34483e;
  }
}
@media (max-width: 1100px) {
  .city-header {
    padding: 20px 18px 16px;
  }
  .city-header h2 {
    font-size: 24px;
  }
  .city-metrics {
    padding: 0 18px 18px;
    gap: 8px;
  }
  .city-metrics strong {
    font-size: 15px;
  }
  .city-metrics small {
    font-size: 5px;
  }
  .city-tabs {
    padding: 0 12px;
    gap: 2px;
  }
  .city-tabs button {
    font-size: 9px;
    padding: 12px 8px;
  }
  #city-panel-body {
    padding: 18px;
  }
  .build-heading .primary-button {
    font-size: 8px;
  }
  .district-list button {
    font-size: 7px;
    padding: 9px 6px;
  }
  .district-list small {
    font-size: 6px;
  }
  .construction-row button {
    font-size: 8px;
    padding: 11px 9px;
  }
  .research-grid {
    grid-template-columns: 1fr 1fr;
  }
  .simulation-tag {
    display: none;
  }
  .city-header .eyebrow {
    font-size: 6px;
  }
  .city-map-toolbar > span {
    font-size: 7px;
  }
  .city-bottom {
    padding: 12px 18px;
    font-size: 7px;
  }
}
@media (max-width: 600px) {
  .heading h1 {
    font-size: 25px;
  }
  .city-header {
    padding: 18px 13px 15px;
    align-items: start;
  }
  .city-header h2 {
    font-size: 23px;
  }
  .city-header .eyebrow {
    font-size: 5px;
    letter-spacing: 0.6px;
  }
  .city-header > button {
    font-size: 7px;
    padding: 7px;
  }
  .city-metrics {
    padding: 0 13px 16px;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 15px;
  }
  .city-metrics small {
    font-size: 5px;
  }
  .city-metrics strong {
    font-size: 16px;
  }
  .city-metrics > div:nth-child(3) {
    border: 0;
  }
  .city-tabs {
    gap: 0;
    padding: 0 5px;
  }
  .city-tabs button {
    font-size: 8px;
    padding: 11px 8px;
  }
  #city-panel-body {
    padding: 16px 13px;
  }
  .build-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .build-heading strong {
    font-size: 11px;
  }
  .build-heading .primary-button {
    width: 100%;
    font-size: 9px;
  }
  .construction-row {
    flex-wrap: wrap;
  }
  .construction-row > label {
    flex-basis: 100%;
  }
  .construction-row button {
    flex: 1;
    font-size: 9px;
  }
  .district-list {
    grid-template-columns: 1fr 1fr;
  }
  .district-list button {
    font-size: 8px;
  }
  .district-list small {
    font-size: 7px;
  }
  .city-bottom {
    padding: 12px 13px;
    flex-wrap: wrap;
  }
  .city-map-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
  }
  .city-map-toolbar > div {
    justify-content: center;
  }
  .city-map-toolbar > span {
    text-align: center;
    font-size: 7px;
  }
  .divine-drawer > summary {
    padding: 12px;
    font-size: 10px;
  }
  .divine-drawer > summary > small {
    font-size: 6px;
    line-height: 1.5;
  }
  .city-command ~ .map-card .canvas-wrap {
    height: 350px;
  }
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .policy-grid label {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .policy-grid input,
  .policy-grid small {
    grid-column: span 2;
  }
  .policy-grid strong {
    font-size: 22px;
  }
  .pet-form {
    flex-wrap: wrap;
    padding: 12px;
  }
  .pet-form label:first-child {
    flex-basis: 100%;
  }
  .pet-form button {
    flex: 1;
  }
  .pet-roster {
    grid-template-columns: 1fr;
  }
  .diplomacy-layout {
    grid-template-columns: 1fr;
  }
  .research-grid {
    gap: 7px;
  }
  .research-project {
    padding: 10px;
  }
  .research-project h3 {
    font-size: 11px;
  }
  .research-project > div {
    flex-wrap: wrap;
  }
  .research-overview strong {
    font-size: 11px;
  }
  .research-overview p {
    font-size: 8px;
  }
  .research-project button {
    font-size: 7px;
  }
  .research-project p {
    font-size: 8px;
  }
  .city-help-note {
    font-size: 9px;
  }
}
.city-view .map-note {
  display: none;
}
.city-view .map-legend {
  font-size: 7px;
  background: #e7edc9c9;
}
.city-command .city-tabs button:focus-visible,
.divine-drawer summary:focus-visible {
  outline: 2px solid #bfda9e;
  outline-offset: -3px;
}
.policy-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}
