.modalBody {
  padding-top: 4px;
  display: flex;
  width: 100%;
}

.modalContent {
  background: var(--details-card-bg);
  border: var(--details-card-border);
  border-radius: 12px;
}

.modalHeader {
  background: var(--header-tab-bg);
  border-bottom: var(--card-details-section-title-border);
}

.modalTitle {
  color: white;
  text-shadow: var(--map-tab-text-shadow);
}

.areaCard {
  background: var(--details-card-bg);
  border: var(--card-details-item-border);
  box-shadow: var(--player-card-box-shadow);
  padding: 10px;
}

.areaHeader {
  margin-bottom: 4px;
}

.areaCaption { letter-spacing: 0.04em; }

.factionBlock {
  padding: 6px 6px 6px 6px;
  background: var(--card-details-item-bg);
  border-radius: 6px;
}

.factionHeader {
  margin-bottom: 12px;
  margin-top: 6px;
  margin-left: 6px;
}


.unitInfo {
  align-items: center;
}

.unitIconWrap {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.counterGroup {
  align-items: center;
}

.countValue {
  width: 18px;
  text-align: center;
}

.tilePreviewBox {
  padding: 10px;
  border-radius: 8px;
  background: var(--card-details-item-bg);
  border: var(--card-details-item-border);
  overflow: hidden;
  height: 345px;
  width: 345px;
}

.tilePreviewRow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.dualPaneGrid {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.leftPane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arrowWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.unitTile {
  background: var(--card-details-item-bg);
  border: var(--card-details-item-border);
  border-radius: 6px;
  padding: 6px;
}

.unitTileHeader { margin-bottom: 6px; }

.unitTileCounters {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: center;
}


/* Context rows under a unit tile when unit appears in multiple areas */
.contextRow {
  width: 100%;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  column-gap: 10px;
}

.contextLabel {
  width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


